aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2023_06_04_015700_create_usertype_enum.php
diff options
context:
space:
mode:
Diffstat (limited to 'database/migrations/2023_06_04_015700_create_usertype_enum.php')
-rw-r--r--database/migrations/2023_06_04_015700_create_usertype_enum.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/database/migrations/2023_06_04_015700_create_usertype_enum.php b/database/migrations/2023_06_04_015700_create_usertype_enum.php
new file mode 100644
index 0000000..066cb7e
--- /dev/null
+++ b/database/migrations/2023_06_04_015700_create_usertype_enum.php
@@ -0,0 +1,28 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateUsertypeEnum extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ DB::statement("CREATE TYPE addresstype AS ENUM('postmaster', 'virtual', 'alias', 'list')");
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ DB::statement("DROP TYPE IF EXISTS usertype");
+ }
+}