38 lines
928 B
PHP
38 lines
928 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CodeCivilStatus extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('code_civil_status', function (Blueprint $table) {
|
|
$table->increments('civilstatus_id');
|
|
$table->uuid('civilstatus_uuid')->unique();
|
|
$table->string('code', 10);
|
|
$table->string('description', 64);
|
|
$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('code_civil_status');
|
|
}
|
|
}
|