You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this up() migration is auto-generated, please modify it to your needs
23
+
$this->addSql(<<<'SQL'
24
+
CREATE TABLE distribution (id INT GENERATED BY DEFAULT AS IDENTITY NOT NULL, reference VARCHAR(255) NOT NULL, version_id INT NOT NULL, PRIMARY KEY(id))
25
+
SQL);
26
+
$this->addSql(<<<'SQL'
27
+
CREATE INDEX IDX_A44837814BBC2705 ON distribution (version_id)
28
+
SQL);
29
+
$this->addSql(<<<'SQL'
30
+
ALTER TABLE distribution ADD CONSTRAINT FK_A44837814BBC2705 FOREIGN KEY (version_id) REFERENCES version (id) NOT DEFERRABLE INITIALLY IMMEDIATE
31
+
SQL);
32
+
}
33
+
34
+
publicfunctiondown(Schema$schema): void
35
+
{
36
+
// this down() migration is auto-generated, please modify it to your needs
37
+
$this->addSql(<<<'SQL'
38
+
ALTER TABLE distribution DROP CONSTRAINT FK_A44837814BBC2705
0 commit comments