7641c1dfdf
- added nearly all database seed files
38 lines
869 B
PHP
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');
|
|
}
|
|
}
|