Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CreateContentTypeTextsTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | */ |
||
12 | public function up() |
||
13 | { |
||
14 | Schema::create('content_type_texts', function (Blueprint $table) { |
||
15 | $table->bigIncrements('id'); |
||
16 | $table->nullableMorphs('linkable'); |
||
17 | $table->string('locale', 5); |
||
18 | $table->string('group', 75)->nullable(); |
||
19 | $table->string('key', 75)->nullable(); |
||
20 | $table->longText('value')->nullable(); |
||
21 | $table->timestamps(); |
||
22 | $table->softDeletes(); |
||
23 | $table->unique(['linkable_type', 'linkable_id', 'locale', 'group', 'key']); |
||
24 | }); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Reverse the migrations. |
||
29 | */ |
||
30 | public function down() |
||
33 | } |
||
34 | } |
||
35 |