diff --git a/backend/migrations/20221212114409_add_all_group_to_admins.down.sql b/backend/migrations/20221212114409_add_all_group_to_admins.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20221212114409_add_all_group_to_admins.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20221212114409_add_all_group_to_admins.up.sql b/backend/migrations/20221212114409_add_all_group_to_admins.up.sql new file mode 100644 index 0000000000..a1a962ba32 --- /dev/null +++ b/backend/migrations/20221212114409_add_all_group_to_admins.up.sql @@ -0,0 +1,2 @@ +-- Add up migration script here +INSERT INTO group_ SELECT id, 'all', 'The group that always contains all users of this workspace' FROM workspace ON CONFLICT DO NOTHING;