Initial commit
This commit is contained in:
42
database/migrations/2025_11_13_063129_create_cty_table.php
Normal file
42
database/migrations/2025_11_13_063129_create_cty_table.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('cty', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamps();
|
||||
|
||||
$table->string('country_name', 150);
|
||||
$table->integer('cq_zone');
|
||||
$table->integer('itu_zone');
|
||||
$table->string('continent', 2);
|
||||
$table->decimal('latitude', 10, 2);
|
||||
$table->decimal('longitude', 10, 2);
|
||||
$table->decimal('time_offset', 10, 2);
|
||||
$table->string('prefix', 25)->unique();
|
||||
$table->boolean('precise')->default(false);
|
||||
$table->string('source', 25);
|
||||
|
||||
$table->index('continent');
|
||||
$table->index('cq_zone');
|
||||
$table->index('itu_zone');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('cty');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user