Commit 71a2fd27 by Aan Choesni Herlingga

create migration categories

parent a8d8c603
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableCategories extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('swp_categories', function (Blueprint $table) {
$table->string('id', 32)->primary();
$table->string('name');
$table->boolean('is_active');
$table->string('userid_created', 32);
$table->string('userid_updated', 32);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('swp_categories', function (Blueprint $table) {
//
});
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment