tethys/database/migrations/2019_08_29_090936_create_languages_table.php
Arno Kaimbacher 7641c1dfdf - added nearly all migration files
- added nearly all database seed files
2020-06-10 21:09:22 +02:00

38 lines
869 B
PHP

<?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');
}
}