Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class CreateSenseUrlsTable extends Migration |
||
20 | { |
||
21 | /** |
||
22 | * Run the migrations. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function up(): void |
||
27 | { |
||
28 | Schema::create('sense_urls', function (Blueprint $table) { |
||
29 | $table->bigIncrements('id'); |
||
30 | $table->mediumText('address'); |
||
31 | $table->timestamps(); |
||
32 | }); |
||
33 | |||
34 | DB::statement('ALTER TABLE `sense_urls` ADD FULLTEXT sense_urls_address_index(`address`)'); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Reverse the migrations. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function down(): void |
||
45 | } |
||
46 | } |
||
47 |