mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed minor inspection issue
This commit is contained in:
parent
971bb92a8c
commit
fe732ecf45
2 changed files with 2 additions and 4 deletions
|
@ -207,6 +207,8 @@ class ResetAutoIncrementORMPurger implements PurgerInterface, ORMPurgerInterface
|
|||
return 'ALTER TABLE '.$tableIdentifier->getQuotedName($platform).' AUTO_INCREMENT = 1;';
|
||||
}
|
||||
|
||||
throw new \RuntimeException("Resetting autoincrement is not supported on this platform!");
|
||||
|
||||
//This seems to cause problems somehow
|
||||
/*if ($platform instanceof SqlitePlatform) {
|
||||
return 'DELETE FROM `sqlite_sequence` WHERE name = \''.$tableIdentifier->getQuotedName($platform).'\';';
|
||||
|
|
|
@ -57,10 +57,6 @@ class NoneOfItsChildrenValidatorTest extends ConstraintValidatorTestCase
|
|||
$this->child1_2->setName('child1_2')->setParent($this->child1);
|
||||
}
|
||||
|
||||
private function getDummyObjects(): array
|
||||
{
|
||||
$obj1 = new AttachmentType();
|
||||
}
|
||||
|
||||
protected function createValidator(): NoneOfItsChildrenValidator
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue