Nessuna descrizione

2020_10_05_142424_create_scales_table.php 555B

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