<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLokasisTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('lokasis', function (Blueprint $table) {
$table->integer('id', true);
$table->string('nama');
$table->string('kode');
$table->string('alamat');
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->default('0000-00-00 00:00:00');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('lokasis');
}
}
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]