12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Database\Seeders\Developer;
- use Database\Seeders\BaseSeeder;
- use Txj\Elastic\Facades\Eav;
- use Txj\Elastic\Facades\ES;
- class DepEsIndicesColumnSeeder extends BaseSeeder
- {
- public function getColumnData()
- {
- return [
- 'indices_id' => ['type' => 'uBigInt', 'title' => 'ES索引表id'],
- 'assemble_id' => ['type' => 'uBigInt', 'title' => '集合id'],
- 'property' => ['type' => 'mediumText', 'title' => 'ES mapping的字段属性,如果修改,则需要重新缓存数据'],
- ];
- }
- public function init()
- {
- }
- /**
- * Run the database seeds.
- *
- * @return void
- */
- public function run()
- {
- $this->schema = 'dep_es_indices_column';
- $this->title = 'ES索引字段表';
- $this->start();
- }
- }
|