]> BookStack Code Mirror - bookstack/blob - database/migrations/2015_08_30_125859_create_settings_table.php
Resolves book heading issues in grid view.
[bookstack] / database / migrations / 2015_08_30_125859_create_settings_table.php
1 <?php
2
3 use Illuminate\Database\Schema\Blueprint;
4 use Illuminate\Database\Migrations\Migration;
5
6 class CreateSettingsTable extends Migration
7 {
8     /**
9      * Run the migrations.
10      *
11      * @return void
12      */
13     public function up()
14     {
15         Schema::create('settings', function (Blueprint $table) {
16             $table->string('setting_key')->primary()->indexed();
17             $table->text('value');
18             $table->nullableTimestamps();
19         });
20     }
21
22     /**
23      * Reverse the migrations.
24      *
25      * @return void
26      */
27     public function down()
28     {
29         Schema::drop('settings');
30     }
31 }