fp/services/migrations-schema/migrations/00085_sync-s3_files.sql

9 lines
359 B
MySQL
Raw Normal View History

2024-11-05 19:48:21 +00:00
-- undo last because it was redundant. we don't need file_id because the same data is in s3_id
ALTER TABLE api.s3_files
DROP COLUMN file_id;
-- add created_at and updated_at to match strapi data
ALTER TABLE api.s3_files
ADD COLUMN created_at timestamp(6) without time zone;
ALTER TABLE api.s3_files
ADD COLUMN updated_at timestamp(6) without time zone;