Backend for songs.zachdecook.com
* Migration: Drop songs.text column
Zach DeCook 2021-09-30
parent da953d4 · commit f5c2804
-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');
+ });
+ }
+}