生成数据库迁移文件支持生成更新的迁移文件

This commit is contained in:
augushong
2024-10-15 13:49:23 +08:00
parent afd8b81712
commit b04321e380
3 changed files with 43 additions and 29 deletions

View File

@@ -35,6 +35,6 @@ class {$class_name} extends Migrator
{volist name="table_keys_text" id="vo"}->addIndex('{$vo}',['type'=>'fulltext'])
{/volist}
{volist name="table_keys" id="vo"}->addIndex('{$vo}')
{/volist}->create();
{/volist}->{$method}();
}
}