2023_03_15_150022_delete_old_settings_table.php 748 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::dropIfExists('settings_old');
  15. }
  16. /**
  17. * Reverse the migrations.
  18. *
  19. * @return void
  20. */
  21. public function down()
  22. {
  23. Schema::create('settings_old', function (Blueprint $table) {
  24. $table->string('key', 191)->primary();
  25. $table->text('value')->nullable();
  26. $table->string('type');
  27. $table->longText('description')->nullable();
  28. $table->timestamps();
  29. });
  30. }
  31. };