]> _ Git - psq.git/commitdiff
Create 2020_04_14_081506_remove_tags_col_from_pdf_files.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 14 Apr 2020 08:15:48 +0000 (10:15 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 14 Apr 2020 08:15:48 +0000 (10:15 +0200)
database/migrations/2020_04_14_081506_remove_tags_col_from_pdf_files.php [new file with mode: 0644]

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