| @@ 6-34 (lines=29) @@ | ||
| 3 | use Illuminate\Database\Migrations\Migration; |
|
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | ||
| 6 | class CreateAdminSekolahsTable extends Migration |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * Run the migrations. |
|
| 10 | * |
|
| 11 | * @return void |
|
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::create('admin_sekolahs', function(Blueprint $table) { |
|
| 16 | $table->increments('id'); |
|
| 17 | $table->string('sekolah_id'); |
|
| 18 | $table->string('admin_sekolah_id'); |
|
| 19 | $table->integer('user_id'); |
|
| 20 | $table->timestamps(); |
|
| 21 | $table->softDeletes(); |
|
| 22 | }); |
|
| 23 | } |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Reverse the migrations. |
|
| 27 | * |
|
| 28 | * @return void |
|
| 29 | */ |
|
| 30 | public function down() |
|
| 31 | { |
|
| 32 | Schema::drop('admin_sekolahs'); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||
| @@ 7-34 (lines=28) @@ | ||
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | use Illuminate\Database\Migrations\Migration; |
|
| 6 | ||
| 7 | class CreateJenisSekolahsTable extends Migration |
|
| 8 | { |
|
| 9 | /** |
|
| 10 | * Run the migrations. |
|
| 11 | * |
|
| 12 | * @return void |
|
| 13 | */ |
|
| 14 | public function up() |
|
| 15 | { |
|
| 16 | Schema::create('jenis_sekolahs', function (Blueprint $table) { |
|
| 17 | $table->increments('id'); |
|
| 18 | $table->string('jenis_sekolah'); |
|
| 19 | $table->timestamps(); |
|
| 20 | $table->softDeletes(); |
|
| 21 | $table->integer('user_id')->nullable();; |
|
| 22 | }); |
|
| 23 | } |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Reverse the migrations. |
|
| 27 | * |
|
| 28 | * @return void |
|
| 29 | */ |
|
| 30 | public function down() |
|
| 31 | { |
|
| 32 | Schema::dropIfExists('jenis_sekolahs'); |
|
| 33 | } |
|
| 34 | } |
|
| 35 | ||