diff options
| author | Camil Staps | 2016-01-04 16:00:32 +0100 | 
|---|---|---|
| committer | Camil Staps | 2016-01-04 16:00:32 +0100 | 
| commit | eda622cb3b37c401f74be60b21d3a9a3fb34c440 (patch) | |
| tree | 9a15d037dfd3438004f34883d50c177c7b190976 /database/migrations/2016_01_04_143647_create_tenses_table.php | |
| parent | Initial commit (diff) | |
Migrations: stems, tenses, roots, verbs, translations
Diffstat (limited to 'database/migrations/2016_01_04_143647_create_tenses_table.php')
| -rw-r--r-- | database/migrations/2016_01_04_143647_create_tenses_table.php | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/database/migrations/2016_01_04_143647_create_tenses_table.php b/database/migrations/2016_01_04_143647_create_tenses_table.php new file mode 100644 index 0000000..e4ed023 --- /dev/null +++ b/database/migrations/2016_01_04_143647_create_tenses_table.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateTensesTable extends Migration +{ +    /** +     * Run the migrations. +     * +     * @return void +     */ +    public function up() +    { +        Schema::create('tenses', function (Blueprint $table) { +            $table->increments('id'); +            $table->string('name', 24)->unique(); +            $table->string('abbreviation', 6)->unique(); +            $table->timestamps(); +        }); +    } + +    /** +     * Reverse the migrations. +     * +     * @return void +     */ +    public function down() +    { +        Schema::drop('tenses'); +    } +} | 
