diff --git a/skrytka_create_db.sql b/skrytka_create_db.sql index 20b9107..eef6c14 100644 --- a/skrytka_create_db.sql +++ b/skrytka_create_db.sql @@ -16,7 +16,7 @@ CREATE TABLE fire_truck ( DROP TABLE IF EXISTS truck_side CASCADE; CREATE TABLE truck_side ( id SERIAL PRIMARY KEY, - image_path VARCHAR(128) NOT NULL CHECK(image_path ~ '^([0-9a-z_]+/?)*[0-9a-z_]+\.((png)|(jpg)|(jpeg))$'), + image_path VARCHAR(128) NOT NULL CHECK(image_path ~ '^([0-9a-z_]+/?)*[0-9a-z_]+\.((png)|(jpg)|(jpeg)|(webp))$'), ordinal_number INTEGER NOT NULL, fire_truck_id INTEGER REFERENCES fire_truck ON DELETE CASCADE ON UPDATE CASCADE ); @@ -86,4 +86,4 @@ CREATE TABLE event ( -- Chcemy zachować spójność dziennika zdarzeń, nawet jak użytkownik usunie konto: account_nickname VARCHAR(32) REFERENCES account ON DELETE SET NULL ON UPDATE CASCADE, osp_unit_id INTEGER REFERENCES osp_unit ON DELETE CASCADE ON UPDATE CASCADE -); \ No newline at end of file +);