Rofihimam

Untitled

Mar 15th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.29 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Database\Migrations\Migration;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Support\Facades\Schema;
  6.  
  7. class CreateTPercobaan extends Migration
  8. {
  9.     /**
  10.      * Run the migrations.
  11.      *
  12.      * @return void
  13.      */
  14.     public function up()
  15.     {
  16.         Schema::create('t_percobaan', function (Blueprint $table) {
  17.             $table->increments('id');
  18.             $table->string('nama_lengkap', 100);
  19.             $table->bigInteger('nik');
  20.             $table->string('jenis_kelamin', 10);
  21.             $table->string('tempat_lahir', 30);
  22.             $table->date('tanggal_lahir');
  23.             $table->longText('alamat');
  24.             $table->mediumInteger('kode_pos');
  25.             $table->mediumText('agama');
  26.             $table->text('pendidikan');
  27.             $table->text('jenis_pekerjaan');
  28.             $table->string('status_perkawinan', 15);
  29.             $table->char('kewarganegaraan', 5);
  30.             $table->integer('no_paspor');
  31.             $table->string('nama_ayah', 100);
  32.             $table->string('nama_ibu', 100);
  33.             $table->timestamps();
  34.         });
  35.     }
  36.  
  37.     /**
  38.      * Reverse the migrations.
  39.      *
  40.      * @return void
  41.      */
  42.     public function down()
  43.     {
  44.         Schema::dropIfExists('t_percobaan');
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment