diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-09-30 05:13:10 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-09-30 05:13:10 +0000 |
| commit | f5c28047574a7c8a1d74aaba0f7b21f613f155b6 (patch) | |
| tree | 224df92a1117cacbd1915413f7306a935e5b4c82 | |
| parent | da953d463678613e1da83bd23a9ca117a8a3289d (diff) | |
| download | prosongsa-f5c28047574a7c8a1d74aaba0f7b21f613f155b6.tar.gz | |
* Migration: Drop songs.text column
| -rw-r--r-- | laravel/database/migrations/2021_09_30_050234_alter_songs_table.php | 32 |
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'); + }); + } +} |
