Skip to content

Commit ecd9405

Browse files
committed
bool as lazy
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent cea1e78 commit ecd9405

3 files changed

Lines changed: 268 additions & 204 deletions

File tree

core/Migrations/Version29000Date20231126110901.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)