home
/
forge
/
roadtovirtuosity.com
/
database
/
migrations
➕ New
📤 Upload
✎ Editing:
2023_05_29_044637_create_states_table.php
← Back
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('states', function (Blueprint $table) { $table->id(); $table->string('name'); $table->unsignedInteger('country_id')->index(); $table->string('country_code'); $table->string('fips_code')->nullable(); $table->string('iso2'); $table->string('latitude')->nullable(); $table->string('longitude')->nullable(); $table->timestamps(); $table->boolean('flag')->default(0); $table->text('wikiDataId')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('states'); } };
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel