Skip to content

Commit

Permalink
change delete in order to avoid integrity constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
MBoretto committed Mar 13, 2016
1 parent ca9bff2 commit 60cf814
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/TestHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,16 @@ public static function emptyDB(array $credentials)
$pdo = new \PDO($dsn, $credentials['user'], $credentials['password'], $options);
$pdo->prepare('
DELETE FROM `conversation`;
DELETE FROM `telegram_update`;
DELETE FROM `chosen_inline_query`;
DELETE FROM `inline_query`;
DELETE FROM `message`;
DELETE FROM `user_chat`;
DELETE FROM `user`;
DELETE FROM `chat`;
DELETE FROM `chosen_inline_query`;
DELETE FROM `inline_query`;
DELETE FROM `telegram_update`;
DELETE FROM `user`;
')->execute();
} catch (\Exception $e) {
//Ignore...
throw new TelegramException($e->getMessage());
}
}
}

0 comments on commit 60cf814

Please sign in to comment.