aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2016_01_04_143639_create_stems_table.php
diff options
context:
space:
mode:
authorCamil Staps2016-01-04 16:00:32 +0100
committerCamil Staps2016-01-04 16:00:32 +0100
commiteda622cb3b37c401f74be60b21d3a9a3fb34c440 (patch)
tree9a15d037dfd3438004f34883d50c177c7b190976 /database/migrations/2016_01_04_143639_create_stems_table.php
parentInitial commit (diff)
Migrations: stems, tenses, roots, verbs, translations
Diffstat (limited to 'database/migrations/2016_01_04_143639_create_stems_table.php')
-rw-r--r--database/migrations/2016_01_04_143639_create_stems_table.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/database/migrations/2016_01_04_143639_create_stems_table.php b/database/migrations/2016_01_04_143639_create_stems_table.php
new file mode 100644
index 0000000..1a2cbe0
--- /dev/null
+++ b/database/migrations/2016_01_04_143639_create_stems_table.php
@@ -0,0 +1,31 @@
+<?php
+
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+
+class CreateStemsTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('stems', function (Blueprint $table) {
+ $table->increments('id');
+ $table->string('name', 24)->unique();
+ $table->timestamps();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::drop('stems');
+ }
+}