osb/database/migrations/2017_06_18_104531_create_ab_static_page_table.php
2018-06-18 21:18:34 +10:00

44 lines
1.0 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAbStaticPageTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ab_static_page', function(Blueprint $table)
{
$table->integer('id')->nullable();
$table->integer('site_id')->nullable();
$table->bigInteger('date_orig')->nullable();
$table->bigInteger('date_last')->nullable();
$table->integer('static_page_category_id')->nullable()->index('cat');
$table->bigInteger('date_start')->nullable()->index('start');
$table->bigInteger('date_expire')->nullable()->index('expire');
$table->integer('sort_order')->nullable();
$table->boolean('active')->nullable();
$table->string('name', 128)->nullable()->index('name');
$table->text('description')->nullable();
$table->unique(['site_id','id'], 'IDS');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('ab_static_page');
}
}