Files
kaunter/database/migrations/2020_10_11_034739_create_cawangan_table.php
T
Zakwan Hamdan 60afe5d1ba Initial commit
2020-10-19 10:12:55 +08:00

40 lines
887 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCawanganTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cawangan', function (Blueprint $table) {
$table->id();
$table->String('nama');
$table->String('code');
$table->String('alamat');
$table->String('poskod');
$table->String('daerah');
$table->String('negeri');
$table->String('no_telefon');
$table->String('no_fax');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('cawangan');
}
}