fix: return null if table exists

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/39651/head
Christopher Ng 2023-08-01 11:41:44 +07:00
parent 7381c80caf
commit d61916621d
1 changed files with 4 additions and 0 deletions

@ -41,6 +41,10 @@ class Version10000Date20230725162149 extends SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if ($schema->hasTable(ReminderMapper::TABLE_NAME)) {
return null;
}
$table = $schema->createTable(ReminderMapper::TABLE_NAME);
$table->addColumn('id', Types::BIGINT, [
'autoincrement' => true,