Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateTableRevHis extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('revisi_history', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('machine_id');
- $table->string('rev')->nullable();
- $table->string('date')->nullable();
- $table->string('change_item')->nullable();
- $table->string('reason')->nullable();
- $table->string('checked')->nullable();
- $table->string('change')->nullable();
- $table->string('gambar1')->nullable();
- $table->string('gambar2')->nullable();
- $table->string('gambar3')->nullable();
- $table->string('gambar4')->nullable();
- $table->string('gambar5')->nullable();
- $table->string('cadangan1')->nullable();
- $table->string('cadangan2')->nullable();
- $table->string('cadangan3')->nullable();
- $table->string('cadangan4')->nullable();
- $table->string('cadangan5')->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('revisi_history');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement