refactor: 修改migration文件

This commit is contained in:
2025-03-15 16:55:32 +08:00
parent 2fc6a7c104
commit ec30eae536
4 changed files with 43 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class CreateSysMenu extends Migrator
->addColumn('created_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP', 'comment' => '创建时间'])
->addColumn('updated_at', 'timestamp', ['null' => false, 'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP', 'comment' => '更新时间'])
->addColumn('deleted_at', 'timestamp', ['null' => true, 'comment' => '删除时间'])
->addIndex(['unique_name'], ['unique' => true])
->addIndex(['name'], ['unique' => true, 'name' => 'idx_unique_name'])
->create();
}
}