diff --git a/src/Repository/SBLinkRepository.php b/src/Repository/SBLinkRepository.php index 8638efe..62540f7 100644 --- a/src/Repository/SBLinkRepository.php +++ b/src/Repository/SBLinkRepository.php @@ -45,6 +45,7 @@ private function truncate() $connection->beginTransaction(); try { $connection->query('truncate table '.$cmd->getTableName()); + $connection->query('ALTER SEQUENCE sblink_id_seq RESTART with 1;'); $connection->commit(); } catch (\Exception $e) { $connection->rollback();