mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-11 04:39:33 +00:00
Postgre Statements integrieren
This commit is contained in:
parent
18a290bd67
commit
66cb723b31
1 changed files with 12 additions and 2 deletions
|
|
@ -291,11 +291,21 @@ final class Version20250325073036 extends AbstractMultiPlatformMigration
|
|||
|
||||
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
|
||||
{
|
||||
//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