- added nearly all migration files

- added nearly all database seed files
This commit is contained in:
Arno Kaimbacher 2019-08-29 16:58:35 +02:00
parent 489546ef6e
commit 7641c1dfdf
40 changed files with 1168 additions and 915 deletions

View file

@ -0,0 +1,37 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateLanguagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('languages', function (Blueprint $table) {
$table->increments('id');
$table->string('part2_b', 3);
$table->string('part2_t', 3);
$table->string('part1', 2);
$table->string('scope', 20);
$table->string('type', 20);
$table->string('ref_name', 150);
$table->boolean('active')->default(true);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('languages');
}
}