2021_02_22_232450_add_abgelehnt_to_film.php 526 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class AddAbgelehntToFilm extends Migration {
  5. /**
  6. * Run the migrations.
  7. *
  8. * @return void
  9. */
  10. public function up()
  11. {
  12. Schema::table('films', function(Blueprint $table)
  13. {
  14. $table->date('abgelehnt')->nullable();
  15. });
  16. }
  17. /**
  18. * Reverse the migrations.
  19. *
  20. * @return void
  21. */
  22. public function down()
  23. {
  24. Schema::table('films', function(Blueprint $table)
  25. {
  26. $table->dropColumn('abgelehnt');
  27. //
  28. });
  29. }
  30. }