Sync LMS backend source
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
ALTER TABLE "platforms"
|
||||
ALTER COLUMN "default_studio_settings"
|
||||
SET DEFAULT '{"workspaceRoot":"~/autonomy-studio/workspaces","giteaBaseUrl":"http://localhost:3000","giteaOwner":"student"}';
|
||||
|
||||
UPDATE "platforms"
|
||||
SET "default_studio_settings" = jsonb_set(
|
||||
COALESCE("default_studio_settings", '{}'::jsonb),
|
||||
'{giteaOwner}',
|
||||
'"student"'::jsonb,
|
||||
true
|
||||
),
|
||||
"updated_at" = CURRENT_TIMESTAMP
|
||||
WHERE COALESCE("default_studio_settings"->>'giteaOwner', '') IN ('', 'students');
|
||||
|
||||
UPDATE "instructor_platforms"
|
||||
SET "studio_settings_override" = jsonb_set(
|
||||
"studio_settings_override",
|
||||
'{giteaOwner}',
|
||||
'"student"'::jsonb,
|
||||
true
|
||||
),
|
||||
"updated_at" = CURRENT_TIMESTAMP
|
||||
WHERE "studio_settings_override" IS NOT NULL
|
||||
AND "studio_settings_override"->>'giteaOwner' = 'students';
|
||||
Reference in New Issue
Block a user