| @@ 6-32 (lines=27) @@ | ||
| 3 | use Illuminate\Database\Schema\Blueprint; |
|
| 4 | use Illuminate\Database\Migrations\Migration; |
|
| 5 | ||
| 6 | class CreateConfigurationsTable extends Migration |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * Run the migrations. |
|
| 10 | * |
|
| 11 | * @return void |
|
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::create('configurations', function (Blueprint $table) { |
|
| 16 | $table->increments('id'); |
|
| 17 | $table->string('key', 50)->index(); |
|
| 18 | $table->string('value', 100)->nullable(); |
|
| 19 | $table->timestamps(); |
|
| 20 | }); |
|
| 21 | } |
|
| 22 | ||
| 23 | /** |
|
| 24 | * Reverse the migrations. |
|
| 25 | * |
|
| 26 | * @return void |
|
| 27 | */ |
|
| 28 | public function down() |
|
| 29 | { |
|
| 30 | Schema::drop('configurations'); |
|
| 31 | } |
|
| 32 | } |
|
| 33 | ||
| @@ 6-21 (lines=16) @@ | ||
| 3 | use Illuminate\Database\Migrations\Migration; |
|
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | ||
| 6 | class CreateTagGroupsTable extends Migration |
|
| 7 | { |
|
| 8 | public function up() |
|
| 9 | { |
|
| 10 | Schema::create('tagging_tag_groups', function (Blueprint $table) { |
|
| 11 | $table->increments('id'); |
|
| 12 | $table->string('slug', 255)->index(); |
|
| 13 | $table->string('name', 255); |
|
| 14 | }); |
|
| 15 | } |
|
| 16 | ||
| 17 | public function down() |
|
| 18 | { |
|
| 19 | Schema::drop('tagging_tag_groups'); |
|
| 20 | } |
|
| 21 | } |
|
| 22 | ||