mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-16 15:19:34 +00:00
Postgre Statements integrieren
This commit is contained in:
parent
378489d30a
commit
0586e80b9e
1 changed files with 12 additions and 2 deletions
|
|
@ -291,11 +291,21 @@ final class Version20250325073036 extends AbstractMultiPlatformMigration
|
||||||
|
|
||||||
public function postgreSQLUp(Schema $schema): void
|
public function postgreSQLUp(Schema $schema): void
|
||||||
{
|
{
|
||||||
//Not needed
|
$this->addSql(<<<'SQL'
|
||||||
|
ALTER TABLE categories ADD part_ipn_prefix VARCHAR(255) DEFAULT '' NOT NULL
|
||||||
|
SQL);
|
||||||
|
$this->addSql(<<<'SQL'
|
||||||
|
DROP INDEX uniq_6940a7fe3d721c14
|
||||||
|
SQL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function postgreSQLDown(Schema $schema): void
|
public function postgreSQLDown(Schema $schema): void
|
||||||
{
|
{
|
||||||
//Not needed
|
$this->addSql(<<<'SQL'
|
||||||
|
ALTER TABLE "categories" DROP part_ipn_prefix
|
||||||
|
SQL);
|
||||||
|
$this->addSql(<<<'SQL'
|
||||||
|
CREATE UNIQUE INDEX uniq_6940a7fe3d721c14 ON "parts" (ipn)
|
||||||
|
SQL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue