about summary refs log tree commit diff
path: root/laravel
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2021-09-30 05:13:10 +0000
committerZach DeCook <zachdecook@librem.one>2021-09-30 05:13:10 +0000
commitf5c28047574a7c8a1d74aaba0f7b21f613f155b6 (patch)
tree224df92a1117cacbd1915413f7306a935e5b4c82 /laravel
parentda953d463678613e1da83bd23a9ca117a8a3289d (diff)
downloadprosongsa-f5c28047574a7c8a1d74aaba0f7b21f613f155b6.tar.gz
* Migration: Drop songs.text column
Diffstat (limited to 'laravel')
-rw-r--r--laravel/database/migrations/2021_09_30_050234_alter_songs_table.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/laravel/database/migrations/2021_09_30_050234_alter_songs_table.php b/laravel/database/migrations/2021_09_30_050234_alter_songs_table.php
new file mode 100644
index 0000000..e7b7393
--- /dev/null
+++ b/laravel/database/migrations/2021_09_30_050234_alter_songs_table.php
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class AlterSongsTable extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('songs', function(Blueprint $table) {
+            $table->dropColumn('text');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('songs', function(Blueprint $table) {
+            $table->text('text');
+        });
+    }
+}