diff --git a/database/migrations/2016_03_13_225224_CreateSettingsTable.php b/database/migrations/2016_03_13_225224_CreateSettingsTable.php new file mode 100644 index 00000000..5eecb500 --- /dev/null +++ b/database/migrations/2016_03_13_225224_CreateSettingsTable.php @@ -0,0 +1,38 @@ +integer('id', true); + $table->string('key', 64) + ->unique() + ->comment('User readable key for accessing value of this config. Config will be available under this key also in views.'); + $table->text('value') + ->comment('Value of config.'); + $table->boolean('load_into_views') + ->default(true) + ->comment('Use in views directly?') + ->index(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('settings'); + } +}