Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateTPercobaan extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('t_percobaan', function (Blueprint $table) {
- $table->increments('id');
- $table->string('nama_lengkap', 100);
- $table->bigInteger('nik');
- $table->string('jenis_kelamin', 10);
- $table->string('tempat_lahir', 30);
- $table->date('tanggal_lahir');
- $table->longText('alamat');
- $table->mediumInteger('kode_pos');
- $table->mediumText('agama');
- $table->text('pendidikan');
- $table->text('jenis_pekerjaan');
- $table->string('status_perkawinan', 15);
- $table->char('kewarganegaraan', 5);
- $table->integer('no_paspor');
- $table->string('nama_ayah', 100);
- $table->string('nama_ibu', 100);
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('t_percobaan');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment