This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/share/ddl/PostgreSQL/upgrade/33-34/001-auto.sql

20 lines
428 B
MySQL
Raw Permalink Normal View History

2021-03-21 16:34:08 +00:00
-- Convert schema 'share/ddl/_source/deploy/33/001-auto.yml' to 'share/ddl/_source/deploy/34/001-auto.yml':;
;
BEGIN;
;
ALTER TABLE topics ADD COLUMN organisation_id integer;
;
CREATE INDEX topics_idx_organisation_id on topics (organisation_id);
;
ALTER TABLE topics ADD CONSTRAINT topics_fk_organisation_id FOREIGN KEY (organisation_id)
REFERENCES organisations (id) ON DELETE NO ACTION ON UPDATE NO ACTION;
;
COMMIT;