DepEsIndicesColumnSeeder.php 830 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Database\Seeders\Developer;
  3. use Database\Seeders\BaseSeeder;
  4. use Txj\Elastic\Facades\Eav;
  5. use Txj\Elastic\Facades\ES;
  6. class DepEsIndicesColumnSeeder extends BaseSeeder
  7. {
  8. public function getColumnData()
  9. {
  10. return [
  11. 'indices_id' => ['type' => 'uBigInt', 'title' => 'ES索引表id'],
  12. 'assemble_id' => ['type' => 'uBigInt', 'title' => '集合id'],
  13. 'property' => ['type' => 'mediumText', 'title' => 'ES mapping的字段属性,如果修改,则需要重新缓存数据'],
  14. ];
  15. }
  16. public function init()
  17. {
  18. }
  19. /**
  20. * Run the database seeds.
  21. *
  22. * @return void
  23. */
  24. public function run()
  25. {
  26. $this->schema = 'dep_es_indices_column';
  27. $this->title = 'ES索引字段表';
  28. $this->start();
  29. }
  30. }