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
CREATE TABLE distribution (created_at TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL, last_modified_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, id INT GENERATED BY DEFAULT AS IDENTITY NOT NULL, reference VARCHAR(255) NOT NULL, type VARCHAR(255) NOT NULL, source TEXT DEFAULT NULL, version_id INT NOT NULL, PRIMARY KEY(id))
21
+
SQL);
22
+
$this->addSql(<<<'SQL'
23
+
CREATE INDEX IDX_A44837814BBC2705 ON distribution (version_id)
24
+
SQL);
25
+
$this->addSql(<<<'SQL'
26
+
ALTER TABLE distribution ADD CONSTRAINT FK_A44837814BBC2705 FOREIGN KEY (version_id) REFERENCES version (id) NOT DEFERRABLE INITIALLY IMMEDIATE
27
+
SQL);
28
+
}
29
+
30
+
publicfunctiondown(Schema$schema): void
31
+
{
32
+
$this->addSql(<<<'SQL'
33
+
ALTER TABLE distribution DROP CONSTRAINT FK_A44837814BBC2705
0 commit comments