Commit 60cf8148 authored by MBoretto's avatar MBoretto

change delete in order to avoid integrity constraint

parent ca9bff22
...@@ -186,16 +186,16 @@ class TestHelpers ...@@ -186,16 +186,16 @@ class TestHelpers
$pdo = new \PDO($dsn, $credentials['user'], $credentials['password'], $options); $pdo = new \PDO($dsn, $credentials['user'], $credentials['password'], $options);
$pdo->prepare(' $pdo->prepare('
DELETE FROM `conversation`; DELETE FROM `conversation`;
DELETE FROM `telegram_update`;
DELETE FROM `chosen_inline_query`;
DELETE FROM `inline_query`;
DELETE FROM `message`; DELETE FROM `message`;
DELETE FROM `user_chat`; DELETE FROM `user_chat`;
DELETE FROM `user`;
DELETE FROM `chat`; DELETE FROM `chat`;
DELETE FROM `chosen_inline_query`; DELETE FROM `user`;
DELETE FROM `inline_query`;
DELETE FROM `telegram_update`;
')->execute(); ')->execute();
} catch (\Exception $e) { } catch (\Exception $e) {
//Ignore... throw new TelegramException($e->getMessage());
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment