Файл: src/database/migrations/2016_04_14_193607_create_settings_table.php
Строк: 44
<?php
use IlluminateDatabaseMigrationsMigration;
use IlluminateDatabaseSchemaBlueprint;
class CreateSettingsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('Settings', function(Blueprint $table)
{
$table->increments('SettingID');
$table->string('Logo',100);
$table->integer('CurrencyID',false,true);
$table->integer('LanguageID',false,true);
$table->string('Email',100);
$table->string('DefaultContent',100);
$table->string('ColorPalette',7)->default("#FFFFFF");
$table->boolean('isInstalled',100);
$table->integer('enableWatermark',false,true)->length(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
Schema::drop('Settings');
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
}
}