mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-13 14:39:30 +00:00
Fix migration issues
This commit is contained in:
parent
71102f0ad9
commit
ec7f79369d
2 changed files with 13 additions and 3 deletions
|
|
@ -24,6 +24,16 @@ final class Version20240905085300 extends AbstractMultiPlatformMigration
|
|||
$this->addSql('ALTER TABLE `parts` DROP orderamount, DROP orderDelivery');
|
||||
}
|
||||
|
||||
public function postgreSQLUp(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE parts ADD orderamount DOUBLE PRECISION NOT NULL DEFAULT 0, ADD orderDelivery timestamp');
|
||||
}
|
||||
|
||||
public function postgreSQLDown(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE parts DROP orderamount, DROP orderDelivery');
|
||||
}
|
||||
|
||||
public function sqLiteUp(Schema $schema): void
|
||||
{
|
||||
$this->addSql('ALTER TABLE parts ADD COLUMN orderamount DOUBLE PRECISION NOT NULL DEFAULT 0');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue