aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2023_06_04_021458_create_aliases_table.php
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-06-04 13:19:44 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-06-04 13:19:44 +0200
commitdd66a8e2fbe60c18123dd7245ca68b367367a81c (patch)
tree2e43ccdf89653f8d57beff1cee578498fcd4d851 /database/migrations/2023_06_04_021458_create_aliases_table.php
Initial commitHEADmaster
Diffstat (limited to 'database/migrations/2023_06_04_021458_create_aliases_table.php')
-rw-r--r--database/migrations/2023_06_04_021458_create_aliases_table.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/database/migrations/2023_06_04_021458_create_aliases_table.php b/database/migrations/2023_06_04_021458_create_aliases_table.php
new file mode 100644
index 0000000..f7ae8fb
--- /dev/null
+++ b/database/migrations/2023_06_04_021458_create_aliases_table.php
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateAliasesTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('aliases', function (Blueprint $table) {
+ $table->id();
+ $table->foreignId('addresses');
+ $table->string('destination');
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('aliases');
+ }
+}