unioil-loyalty-app/database/migrations/2018_09_20_053949_photo_sli...

42 lines
1.1 KiB
PHP
Executable File

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PhotoSlider extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('photo_slider', function (Blueprint $table) {
$table->increments('photoslider_id');
$table->uuid('photoslider_uuid')->unique();
$table->integer('promotion_id');
$table->string('title', 32);
$table->text('description');
$table->string('image',128);
$table->datetime('date_start');
$table->datetime('date_end');
$table->timestamps();
$table->integer('created_by')->default(0);
$table->integer('updated_by')->default(0);
$table->boolean('is_active')->default(1);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('photo_slider');
}
}