diff --git a/scripts/seed-database/write/users.sql b/scripts/seed-database/write/users.sql index a89dc1e839..28f202b6e9 100644 --- a/scripts/seed-database/write/users.sql +++ b/scripts/seed-database/write/users.sql @@ -6,9 +6,8 @@ CREATE TEMPORARY TABLE sync_users ( email text, created_at timestamptz, updated_at timestamptz, - is_platform_admin boolean - -- , - -- is_staging_only boolean + is_platform_admin boolean, + is_staging_only boolean ); \copy sync_users FROM '/tmp/users.csv' WITH (FORMAT csv, DELIMITER ';'); @@ -23,26 +22,24 @@ INSERT INTO users ( first_name, last_name, email, - is_platform_admin - -- , - -- is_staging_only + is_platform_admin, + is_staging_only ) SELECT id, first_name, last_name, email, - is_platform_admin - -- , - -- is_staging_only + is_platform_admin, + is_staging_only FROM sync_users ON CONFLICT (id) DO UPDATE SET first_name = EXCLUDED.first_name, last_name = EXCLUDED.last_name, email = EXCLUDED.email, - is_platform_admin = EXCLUDED.is_platform_admin; - -- is_staging_only = EXCLUDED.is_staging_only; + is_platform_admin = EXCLUDED.is_platform_admin, + is_staging_only = EXCLUDED.is_staging_only; ALTER TABLE users ENABLE TRIGGER grant_new_user_template_team_access;