aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2016_09_05_215803_create_root_kinds.php
diff options
context:
space:
mode:
authorCamil Staps2019-12-30 16:57:13 +0100
committerCamil Staps2020-01-03 19:06:02 +0100
commitad10a6467f76822b9289832eeb0d0ac2038b32d1 (patch)
tree1d78251ad49be1a744dc4573a1b3cf54e295e3a4 /database/migrations/2016_09_05_215803_create_root_kinds.php
parentClarify incorrect parsing message when input is short (diff)
Strip down for simple app for Greek verb λύω
Diffstat (limited to 'database/migrations/2016_09_05_215803_create_root_kinds.php')
-rw-r--r--database/migrations/2016_09_05_215803_create_root_kinds.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/database/migrations/2016_09_05_215803_create_root_kinds.php b/database/migrations/2016_09_05_215803_create_root_kinds.php
deleted file mode 100644
index 2ab1a42..0000000
--- a/database/migrations/2016_09_05_215803_create_root_kinds.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Database\Migrations\Migration;
-
-class CreateRootKinds extends Migration
-{
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('root_kinds', function (Blueprint $table) {
- $table->increments('id');
- $table->boolean('strong');
- $table->string('name')->unique();
- });
-
- Schema::table('roots', function (Blueprint $table) {
- $table->dropColumn('strong');
-
- $table->integer('root_kind_id')->unsigned()->nullable();
- $table->foreign('root_kind_id')->references('id')->on('root_kinds');
- });
- }
-
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::table('roots', function (Blueprint $table) {
- $table->dropForeign(['root_kind_id']);
- $table->dropColumn('root_kind_id');
-
- $table->boolean('strong')->default(1);
- });
-
- Schema::drop('root_kinds');
- }
-}