|
@@ -1,4 +1,5 @@
|
|
|
<?php
|
|
<?php
|
|
|
|
|
+
|
|
|
declare(strict_types=1);
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
use Phinx\Migration\AbstractMigration;
|
|
@@ -39,7 +40,7 @@ class ExtensionEavValue extends AbstractMigration
|
|
|
->addColumn('value_text', 'text', ['comment' => '文本值'])
|
|
->addColumn('value_text', 'text', ['comment' => '文本值'])
|
|
|
->addColumn('value_datetime', 'datetime', ['comment' => '日期时间值'])
|
|
->addColumn('value_datetime', 'datetime', ['comment' => '日期时间值'])
|
|
|
->addIndex(['entity_id', 'attribute_id'], ['name' => 'entity_id_attribute_id'])
|
|
->addIndex(['entity_id', 'attribute_id'], ['name' => 'entity_id_attribute_id'])
|
|
|
- ->addIndex(['entity_id', 'entity_type_id'],['name' => 'idx_entity_id_entity_type_id'])
|
|
|
|
|
|
|
+ ->addIndex(['entity_id', 'entity_type_id'], ['name' => 'idx_entity_id_entity_type_id'])
|
|
|
->addTimestamps('create_time', 'update_time')
|
|
->addTimestamps('create_time', 'update_time')
|
|
|
->addColumn('delete_time', 'timestamp', ['null' => true, 'comment' => '删除时间'])
|
|
->addColumn('delete_time', 'timestamp', ['null' => true, 'comment' => '删除时间'])
|
|
|
->create();
|
|
->create();
|