| @@ 16-22 (lines=7) @@ | ||
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('cms_tags', function (Blueprint $table) { |
|
| 17 | $table->bigIncrements('id'); |
|
| 18 | $table->string('name'); |
|
| 19 | $table->string('slug')->unique(); |
|
| 20 | $table->text('description')->nullable(); |
|
| 21 | $table->timestamps(); |
|
| 22 | }); |
|
| 23 | ||
| 24 | Schema::create('cms_post_tag', function (Blueprint $table) { |
|
| 25 | $table->unsignedBigInteger('post_id'); |
|
| @@ 14-24 (lines=11) @@ | ||
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('cms_options', function (Blueprint $table) { |
|
| 17 | $table->bigIncrements('id'); |
|
| 18 | $table->string('key')->unique(); |
|
| 19 | $table->string('type'); |
|
| 20 | $table->string('label')->nullable(); |
|
| 21 | $table->text('value')->nullable(); |
|
| 22 | $table->timestamps(); |
|
| 23 | }); |
|
| 24 | } |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Reverse the migrations. |
|