feat: adjust sql/services.sql
This commit is contained in:
parent
da2e41abb2
commit
f46208fff9
|
@ -8,7 +8,10 @@ DROP TABLE IF EXISTS :schema.services;
|
|||
|
||||
CREATE TABLE IF NOT EXISTS :schema.services
|
||||
(
|
||||
|
||||
feed_index int NOT NULL REFERENCES feed_info (feed_index) ON DELETE CASCADE,
|
||||
service_id text NOT NULL,
|
||||
dates text,
|
||||
CONSTRAINT services_service_id_fkey FOREIGN KEY (feed_index, service_id) REFERENCES :schema.calendar(feed_index, service_id)
|
||||
dates text NOT NULL,
|
||||
CONSTRAINT services_service_id_fkey FOREIGN KEY (feed_index, service_id) REFERENCES :schema.calendar(feed_index, service_id),
|
||||
CONSTRAINT services_pkey PRIMARY KEY (feed_index, service_id)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue