aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2023_06_04_020740_create_domains_table.php
diff options
context:
space:
mode:
Diffstat (limited to 'database/migrations/2023_06_04_020740_create_domains_table.php')
-rw-r--r--database/migrations/2023_06_04_020740_create_domains_table.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/database/migrations/2023_06_04_020740_create_domains_table.php b/database/migrations/2023_06_04_020740_create_domains_table.php
new file mode 100644
index 0000000..e018beb
--- /dev/null
+++ b/database/migrations/2023_06_04_020740_create_domains_table.php
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateDomainsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('domains', function (Blueprint $table) {
+ $table->id();
+ $table->string('name', 255)->unique();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('domains');
+ }
+}