Advertisement
Guest User

2018_02_21_124809_create_table_siswa.php

a guest
Feb 21st, 2018
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.74 KB | None | 0 0
  1. <?php
  2.  
  3. use Illuminate\Support\Facades\Schema;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Database\Migrations\Migration;
  6.  
  7. class CreateTableSiswa extends Migration
  8. {
  9.     /**
  10.      * Run the migrations.
  11.      *
  12.      * @return void
  13.      */
  14.     public function up()
  15.     {
  16.         //
  17.         Schema::create('siswas', function (Blueprint $table) {
  18.             $table->increments('id');
  19.             $table->string('name');
  20.             $table->string('class');
  21.             $table->string('majors');
  22.             $table->timestamps();
  23.         });
  24.     }
  25.  
  26.     /**
  27.      * Reverse the migrations.
  28.      *
  29.      * @return void
  30.      */
  31.     public function down()
  32.     {
  33.         //
  34.         Schema::dropIfExists('siswas');
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement