This commit is contained in:
chyoo
2026-06-22 18:17:02 +09:00
parent 324728304b
commit 62d7f6ae09
122 changed files with 22484 additions and 1 deletions
@@ -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';