]> _ Git - psq.git/commitdiff
Create 2020_04_13_195828_drop_tags_col_from_collections.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 13 Apr 2020 20:00:51 +0000 (22:00 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Mon, 13 Apr 2020 20:00:51 +0000 (22:00 +0200)
database/migrations/2020_04_13_195828_drop_tags_col_from_collections.php [new file with mode: 0644]

diff --git a/database/migrations/2020_04_13_195828_drop_tags_col_from_collections.php b/database/migrations/2020_04_13_195828_drop_tags_col_from_collections.php
new file mode 100644 (file)
index 0000000..665adbb
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class DropTagsColFromCollections extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('collections', function (Blueprint $table) {
+            $table->dropColumn('tags');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('collections', function (Blueprint $table) {
+            $table->json('tags');
+            //
+        });
+    }
+}