You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
717 B

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