Cambio orden columnas
This commit is contained in:
parent
2f29b1c34c
commit
2a5cf1ccd9
|
@ -13,8 +13,8 @@ public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('regiones', function (Blueprint $table) {
|
Schema::create('regiones', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->timestamps();
|
|
||||||
$table->string('name', 100);
|
$table->string('name', 100);
|
||||||
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,10 +13,10 @@ public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('barrios', function (Blueprint $table) {
|
Schema::create('barrios', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->timestamps();
|
|
||||||
$table->string('name', 100);
|
$table->string('name', 100);
|
||||||
$table->unsignedBigInteger('region_id');
|
$table->unsignedBigInteger('region_id');
|
||||||
$table->foreign('region_id')->references('id')->on('regiones');
|
$table->foreign('region_id')->references('id')->on('regiones');
|
||||||
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue