Skip to content

Commit 334ee54

Browse files
committed
chore: rename 'first-organization' to 'main'
1 parent 2cffb55 commit 334ee54

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

coderd/database/dbmem/dbmem.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ func New() database.Store {
9292
// Always start with a default org. Matching migration 198.
9393
defaultOrg, err := q.InsertOrganization(context.Background(), database.InsertOrganizationParams{
9494
ID: uuid.New(),
95-
Name: "first-organization",
96-
DisplayName: "first-organization",
95+
Name: "main",
96+
DisplayName: "Main",
9797
Description: "Builtin default organization.",
9898
Icon: "",
9999
CreatedAt: dbtime.Now(),

coderd/database/migrations/000259_rename_first_organization.down.sql

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
UPDATE
2+
organizations
3+
SET
4+
name = 'main',
5+
display_name = 'Main'
6+
WHERE
7+
-- The old name was too long.
8+
name = 'first-organization'
9+
;

enterprise/cli/create_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,6 @@ func TestEnterpriseCreate(t *testing.T) {
202202
err := inv.Run()
203203
require.Error(t, err)
204204
// The error message should indicate the flag to fix the issue.
205-
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "first-organization"))
205+
require.ErrorContains(t, err, fmt.Sprintf("--org=%q", "main"))
206206
})
207207
}

0 commit comments

Comments
 (0)