0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 15:21:18 -05:00
penpot/backend/resources/migrations/0013-mark-files-shareable.sql

10 lines
231 B
MySQL
Raw Normal View History

2020-08-04 12:05:54 +02:00
ALTER TABLE file
ADD COLUMN is_shared BOOLEAN NOT NULL DEFAULT false;
UPDATE file
SET is_shared = true
WHERE project_id IN (SELECT id
FROM project
WHERE team_id = uuid_nil());