fp/services/migrations-schema/migrations/00090_rename-vods-s3-files-...

20 lines
416 B
SQL

-- we are using joins instead of join because it matches all other table names being plural
-- drop table
DROP TABLE api.vods_s3_files_join CASCADE;
-- vods_s3_files_joins table schema
CREATE TABLE api.vods_s3_files_joins (
id UUID,
id_old INT,
vod_id UUID,
s3_file UUID
);
-- roles & permissions
GRANT all ON api.vods_s3_files_joins TO automation;
GRANT SELECT ON api.vods_s3_files_joins TO web_anon;