Skip to content

Commit 3cccd08

Browse files
committed
table name fix
1 parent 7096f14 commit 3cccd08

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/Models/PropertyAddress.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ class PropertyAddress extends Model
1010
{
1111
use HasFactory, PropertyAddressRelationships;
1212

13-
protected $table = 'property_address';
13+
protected $table = 'property_addresses';
1414
}

database/migrations/2024_12_16_143342_create_property_address_table.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
public function up(): void
1313
{
14-
Schema::create('property_address', function (Blueprint $table) {
14+
Schema::create('property_addresses', function (Blueprint $table) {
1515
$table->id();
1616
$table->bigInteger('property_id')->unsigned()->unique();
1717
$table->bigInteger('city_id')->unsigned();
@@ -28,6 +28,6 @@ public function up(): void
2828
*/
2929
public function down(): void
3030
{
31-
Schema::dropIfExists('property_address');
31+
Schema::dropIfExists('property_addresses');
3232
}
3333
};

er-diagram.png

13.3 KB
Loading

0 commit comments

Comments
 (0)