From 55a5165d20898fc239727798ec8dd1aa74895b43 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Wed, 17 Dec 2025 20:04:47 -0700 Subject: [PATCH] Fix V1DataMigrationSeeder for PostgreSQL - Remove PRAGMA statements (SQLite-specific) - PostgreSQL handles foreign keys automatically --- database/seeders/V1DataMigrationSeeder.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/database/seeders/V1DataMigrationSeeder.php b/database/seeders/V1DataMigrationSeeder.php index d4cb0bca..716a5e12 100644 --- a/database/seeders/V1DataMigrationSeeder.php +++ b/database/seeders/V1DataMigrationSeeder.php @@ -25,10 +25,7 @@ class V1DataMigrationSeeder extends Seeder */ public function run(): void { - // Disable foreign key checks for clean import - DB::statement('PRAGMA foreign_keys = OFF'); - - // Clear existing data + // Clear existing data (foreign keys handled by database) Document::truncate(); DocketEntry::truncate(); Subscription::truncate(); @@ -42,9 +39,6 @@ class V1DataMigrationSeeder extends Seeder // Import subscriptions $this->importSubscriptions(); - // Re-enable foreign key checks - DB::statement('PRAGMA foreign_keys = ON'); - $this->command->info('✅ v1.0 data migration complete!'); $this->command->info(' - Docket Entries: ' . DocketEntry::count()); $this->command->info(' - Documents: ' . Document::count());