| 
				
			 | 
			
			
				
				@@ -13,11 +13,17 @@ return new class extends Migration 
			 | 
		
		
	
		
			
			| 
				13
			 | 
			
				13
			 | 
			
			
				
				     public function up(): void 
			 | 
		
		
	
		
			
			| 
				14
			 | 
			
				14
			 | 
			
			
				
				     { 
			 | 
		
		
	
		
			
			| 
				15
			 | 
			
				15
			 | 
			
			
				
				         // Disable foreign key checks and clear existing data 
			 | 
		
		
	
		
			
			| 
				16
			 | 
			
				
			 | 
			
			
				
				-        DB::statement('SET FOREIGN_KEY_CHECKS=0;'); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				16
			 | 
			
			
				
				+        if (DB::getDriverName() === 'mysql') { 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				17
			 | 
			
			
				
				+            DB::statement('SET FOREIGN_KEY_CHECKS=0;'); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				18
			 | 
			
			
				
				+        } 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				19
			 | 
			
			
				
				+ 
			 | 
		
		
	
		
			
			| 
				17
			 | 
			
				20
			 | 
			
			
				
				         DB::table('failed_import_rows')->truncate(); 
			 | 
		
		
	
		
			
			| 
				18
			 | 
			
				21
			 | 
			
			
				
				         DB::table('exports')->truncate(); 
			 | 
		
		
	
		
			
			| 
				19
			 | 
			
				22
			 | 
			
			
				
				         DB::table('imports')->truncate(); 
			 | 
		
		
	
		
			
			| 
				20
			 | 
			
				
			 | 
			
			
				
				-        DB::statement('SET FOREIGN_KEY_CHECKS=1;'); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				23
			 | 
			
			
				
				+ 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				24
			 | 
			
			
				
				+        if (DB::getDriverName() === 'mysql') { 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				25
			 | 
			
			
				
				+            DB::statement('SET FOREIGN_KEY_CHECKS=1;'); 
			 | 
		
		
	
		
			
			| 
				
			 | 
			
				26
			 | 
			
			
				
				+        } 
			 | 
		
		
	
		
			
			| 
				21
			 | 
			
				27
			 | 
			
			
				
				  
			 | 
		
		
	
		
			
			| 
				22
			 | 
			
				28
			 | 
			
			
				
				         Schema::table('imports', function (Blueprint $table) { 
			 | 
		
		
	
		
			
			| 
				23
			 | 
			
				29
			 | 
			
			
				
				             $table->foreignId('company_id') 
			 |