12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateCountryTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('countries', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name')->unique();
- $table->string('iso')->unique();
- $table->string('iso3')->nullable();
- $table->integer('numcode')->nullable();
- $table->integer('phonecode');
- $table->integer('status');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('countries');
- }
- }
|