mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 10:18:55 +00:00
f390796790
[ci skip] [skip ci]
32 lines
735 B
PHP
32 lines
735 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateCountriesTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('countries', function (Blueprint $table) {
|
|
$table->char('id', 2)->primary()->comment('2 character code.');
|
|
$table->char('iso3', 3)->unique('code3')->comment('3 character code.');
|
|
$table->string('country', 180)->unique('country')->comment('Name of the country.');
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('countries');
|
|
}
|
|
}
|