Skip to content

chore: rename 'first-organization' to 'coder' #14808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: rename 'first-organization' to 'main'
  • Loading branch information
Emyrk committed Sep 26, 2024
commit ab9d0500536fac53dece65a529f61dbd7075a85e
4 changes: 2 additions & 2 deletions coderd/database/dbmem/dbmem.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ func New() database.Store {
// Always start with a default org. Matching migration 198.
defaultOrg, err := q.InsertOrganization(context.Background(), database.InsertOrganizationParams{
ID: uuid.New(),
Name: "first-organization",
DisplayName: "first-organization",
Name: "main",
DisplayName: "Main",
Description: "Builtin default organization.",
Icon: "",
CreatedAt: dbtime.Now(),
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
UPDATE
organizations
SET
name = 'main',
display_name = 'Main'
WHERE
-- The old name was too long.
name = 'first-organization'
;
2 changes: 1 addition & 1 deletion enterprise/cli/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,6 @@ func TestEnterpriseCreate(t *testing.T) {
err := inv.Run()
require.Error(t, err)
// The error message should indicate the flag to fix the issue.
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "first-organization"))
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "main"))
})
}