@@ -42,20 +42,20 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
4242 }
4343
4444 $ table = $ schema ->getTable ('appconfig ' );
45- if ($ table ->hasColumn ('lazy_group ' )) {
45+ if ($ table ->hasColumn ('lazy ' )) {
4646 return null ;
4747 }
4848
49- $ table ->addColumn ('lazy_group ' , Types::STRING , ['length ' => 32 , 'default ' => '' ]);
50- $ table ->addColumn ('sensitive ' , Types::SMALLINT , ['length ' => 1 , 'default ' => ' 0 ' ]);
49+ $ table ->addColumn ('lazy ' , Types::BOOLEAN , ['notnull ' => false , 'default ' => false ]);
50+ $ table ->addColumn ('sensitive ' , Types::BOOLEAN , ['notnull ' => false , 'default ' => false ]);
5151
5252 if ($ table ->hasIndex ('appconfig_config_key_index ' )) {
5353 $ table ->dropIndex ('appconfig_config_key_index ' );
5454 }
5555
56- $ table ->addIndex (['lazy_group ' ], 'ac_lazy_i ' );
57- $ table ->addIndex (['appid ' , 'lazy_group ' ], 'ac_app_lazy_i ' );
58- $ table ->addIndex (['appid ' , 'lazy_group ' , 'configkey ' ], 'ac_app_lazy_key_i ' );
56+ $ table ->addIndex (['lazy ' ], 'ac_lazy_i ' );
57+ $ table ->addIndex (['appid ' , 'lazy ' ], 'ac_app_lazy_i ' );
58+ $ table ->addIndex (['appid ' , 'lazy ' , 'configkey ' ], 'ac_app_lazy_key_i ' );
5959
6060 return $ schema ;
6161 }
0 commit comments