mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +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;';
|
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
|
//This seems to cause problems somehow
|
||||||
/*if ($platform instanceof SqlitePlatform) {
|
/*if ($platform instanceof SqlitePlatform) {
|
||||||
return 'DELETE FROM `sqlite_sequence` WHERE name = \''.$tableIdentifier->getQuotedName($platform).'\';';
|
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);
|
$this->child1_2->setName('child1_2')->setParent($this->child1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getDummyObjects(): array
|
|
||||||
{
|
|
||||||
$obj1 = new AttachmentType();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function createValidator(): NoneOfItsChildrenValidator
|
protected function createValidator(): NoneOfItsChildrenValidator
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue