2020_08_12_110547_create_autopost_table.php 1.03 KB
Newer Older
1 2 3
<?php

use Illuminate\Database\Migrations\Migration;
4 5
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
6 7 8 9 10 11 12 13

class CreateAutopostTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
Bagus Pambudi committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27
        Schema::create('swp_autopost', function (Blueprint $table) {
            $table->string('id', 36)->primary();
            $table->string('name');
            $table->string('type');
            $table->string('key_1')->nullable();
            $table->string('key_2')->nullable();
            $table->string('key_3')->nullable();
            $table->string('key_4')->nullable();
            $table->string('key_5')->nullable();
            $table->string('key_6')->nullable();
            $table->string('userid_created', 36)->nullable();
            $table->string('userid_updated', 36)->nullable();
            $table->timestamps();
        });
28 29 30 31 32 33 34 35 36 37
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('swp_autopost');
    }
}