1
0
Fork 0

Remove foreign key checks for mysql tests, so test tables can be truncated

Dieser Commit ist enthalten in:
Timothy Warren 2014-08-13 13:13:20 -04:00
Ursprung 38d62f331c
Commit c3f0266699
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -20,6 +20,12 @@ class Fixture {
{
exit('can\'t load fixture library class when not in test mode!');
}
// Turn off foreign key checks for mysql so test tables can be easily truncated
if (getenv('DB') === 'mysql')
{
$this->CI->db->simple_query('SET foreign_key_checks = 0;');
}
}
/**