diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-26 10:28:49 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-26 10:28:49 -0500 |
| commit | 97e82af677235e991b2f580794fe728358569b0a (patch) | |
| tree | bae52337b76d47e3573efab912af32d9fd6a0371 /laravel/database/migrations | |
| parent | 77f1076c15fbb8bf826a58cb2d556801a82a81ee (diff) | |
| download | prosongsa-97e82af677235e991b2f580794fe728358569b0a.tar.gz | |
* Create songs table
Diffstat (limited to 'laravel/database/migrations')
| -rw-r--r-- | laravel/database/migrations/2018_12_26_145136_create_songs_table.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/laravel/database/migrations/2018_12_26_145136_create_songs_table.php b/laravel/database/migrations/2018_12_26_145136_create_songs_table.php new file mode 100644 index 0000000..7208806 --- /dev/null +++ b/laravel/database/migrations/2018_12_26_145136_create_songs_table.php @@ -0,0 +1,37 @@ +<?php + +use Illuminate\Support\Facades\Schema; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateSongsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('songs', function (Blueprint $table) { + $table->increments('id'); + $table->string('number', 5); + $table->string('title'); + $table->string('author'); + $table->string('verse'); + $table->string('key', 5); + $table->text('text'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('songs'); + } +} |
