mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
增加索引
This commit is contained in:
@@ -34,9 +34,13 @@ class CreateTablePostVisit extends Migrator
|
||||
$table->addColumn(ColumnFormat::timestamp('delete_time'));
|
||||
$table->addColumn(ColumnFormat::integer('post_id'));
|
||||
$table->addColumn(ColumnFormat::stringUrl('ip'));
|
||||
$table->addColumn(ColumnFormat::stringNormal('nickname'));
|
||||
$table->addColumn(ColumnFormat::stringNormal('uid'));
|
||||
$table->addColumn(ColumnFormat::stringNormal('nickname'));
|
||||
$table->addColumn(ColumnFormat::stringUrl('avatar'));
|
||||
$table->addIndex('delete_time');
|
||||
$table->addIndex('post_id');
|
||||
$table->addIndex('ip');
|
||||
$table->addIndex('uid');
|
||||
$table->create();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user