暫無描述

2021_06_01_000529_create_scales_table.php 524B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateScalesTable extends Migration
  5. {
  6. function up()
  7. {
  8. Schema::create('scales', function (Blueprint $table) {
  9. $table->increments('id');
  10. $table->text('description');
  11. //$table->integer('min_score')->unsigned();
  12. //$table->integer('max_score')->unsigned();
  13. $table->timestamps();
  14. });
  15. }
  16. /**
  17. * Reverse the migrations.
  18. *
  19. * @return void
  20. */
  21. public function down()
  22. {
  23. Schema::drop('scales');
  24. }
  25. }