about summary refs log tree commit diff
path: root/laravel/database
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-12-26 10:28:49 -0500
committerZach DeCook <zachdecook@gmail.com>2018-12-26 10:28:49 -0500
commit97e82af677235e991b2f580794fe728358569b0a (patch)
treebae52337b76d47e3573efab912af32d9fd6a0371 /laravel/database
parent77f1076c15fbb8bf826a58cb2d556801a82a81ee (diff)
downloadprosongsa-97e82af677235e991b2f580794fe728358569b0a.tar.gz
* Create songs table
Diffstat (limited to 'laravel/database')
-rw-r--r--laravel/database/migrations/2018_12_26_145136_create_songs_table.php37
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');
+    }
+}