about summary refs log tree commit diff
diff options
context:
space:
mode:
-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');
+        });
+    }
+}