diff --git a/database/migrations/2024_03_11_205603_create_regions_table.php b/database/migrations/2024_03_11_205603_create_regions_table.php index ee523be..8417e86 100644 --- a/database/migrations/2024_03_11_205603_create_regions_table.php +++ b/database/migrations/2024_03_11_205603_create_regions_table.php @@ -13,8 +13,8 @@ public function up(): void { Schema::create('regiones', function (Blueprint $table) { $table->id(); - $table->timestamps(); $table->string('name', 100); + $table->timestamps(); }); } diff --git a/database/migrations/2024_03_11_210402_create_barrios_table.php b/database/migrations/2024_03_11_210402_create_barrios_table.php index 4c16a65..8d1352e 100644 --- a/database/migrations/2024_03_11_210402_create_barrios_table.php +++ b/database/migrations/2024_03_11_210402_create_barrios_table.php @@ -13,10 +13,10 @@ public function up(): void { Schema::create('barrios', function (Blueprint $table) { $table->id(); - $table->timestamps(); $table->string('name', 100); $table->unsignedBigInteger('region_id'); $table->foreign('region_id')->references('id')->on('regiones'); + $table->timestamps(); }); }