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