Fix sql migration error
This commit is contained in:
parent
7f3cf3b2b5
commit
143b795b92
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ CREATE TABLE schoolyears (
|
||||||
id SERIAL PRIMARY KEY,
|
id SERIAL PRIMARY KEY,
|
||||||
untis_id INTEGER NOT NULL UNIQUE,
|
untis_id INTEGER NOT NULL UNIQUE,
|
||||||
name VARCHAR NOT NULL,
|
name VARCHAR NOT NULL,
|
||||||
|
active BOOLEAN NOT NULL,
|
||||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMP
|
updated_at TIMESTAMP
|
||||||
);
|
);
|
||||||
|
@ -15,7 +16,7 @@ CREATE TABLE tenants (
|
||||||
untis_id INTEGER NOT NULL UNIQUE,
|
untis_id INTEGER NOT NULL UNIQUE,
|
||||||
schoolyear_id INTEGER NOT NULL REFERENCES schoolyears(id),
|
schoolyear_id INTEGER NOT NULL REFERENCES schoolyears(id),
|
||||||
name VARCHAR NOT NULL,
|
name VARCHAR NOT NULL,
|
||||||
active BOOLEAN NOT NULL DEFAULT FALSE,
|
active BOOLEAN NOT NULL,
|
||||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMP
|
updated_at TIMESTAMP
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue