lukmanulhakim

Table hrs Migration

Feb 26th, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 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 CreateTableHrs extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('hot_runner', function (Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('machine_id');
  19. $table->string('rev')->nullable();
  20. $table->string('date')->nullable();
  21. $table->string('reason')->nullable();
  22. $table->string('checked')->nullable();
  23. $table->string('change')->nullable();
  24. $table->string('pict1')->nullable();
  25. $table->string('pict2')->nullable();
  26. $table->string('stock1')->nullable();
  27. $table->string('stock2')->nullable();
  28. $table->timestamps();
  29. });
  30. }
  31.  
  32. /**
  33. * Reverse the migrations.
  34. *
  35. * @return void
  36. */
  37. public function down()
  38. {
  39. Schema::dropIfExists('hot_runner');
  40. }
  41. }
Add Comment
Please, Sign In to add comment