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.

2024_07_16_100000_create_sites_table.php 702B

123456789101112131415161718192021222324252627
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Support\Facades\Schema;
  4. use Statamic\Eloquent\Database\BaseMigration as Migration;
  5. return new class extends Migration
  6. {
  7. public function up()
  8. {
  9. Schema::create($this->prefix('sites'), function (Blueprint $table) {
  10. $table->id();
  11. $table->string('handle')->unique();
  12. $table->string('name');
  13. $table->string('url');
  14. $table->string('locale');
  15. $table->string('lang');
  16. $table->jsonb('attributes');
  17. $table->timestamps();
  18. });
  19. }
  20. public function down()
  21. {
  22. Schema::dropIfExists($this->prefix('sites'));
  23. }
  24. };