Files
Global-Jain/database/migrations/2022_01_04_091636_create_countries_table.php
2025-11-05 10:37:10 +05:30

38 lines
889 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCountriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('countries', function (Blueprint $table) {
$table->id();
$table->string('iso')->nullable();
$table->string('name')->nullable();
$table->string('iso3')->nullable();
$table->string('num_code')->nullable();
$table->string('phone_code')->nullable();
$table->string('num_length')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('countries');
}
}