Files
coder/coderd/database/migrations/000193_default_organization.down.sql
Steven Masley 2bf2f88b09 feat: implement 'is_default' org field (#12142)
The first organization created is now marked as "default". This is
to allow "single org" behavior as we move to a multi org codebase.

It is intentional that the user cannot change the default org at this
stage. Only 1 default org can exist, and it is always the first org.

Closes: https://github.com/coder/coder/issues/11961
2024-02-15 11:01:16 -06:00

3 lines
95 B
SQL

DROP INDEX organizations_single_default_org;
ALTER TABLE organizations DROP COLUMN is_default;