Skip to content

Commit 54f426f

Browse files
committed
chore(cdr): Move database to /coderd directory
database is specific to coderd and should be scoped under coderd
1 parent 8147977 commit 54f426f

File tree

90 files changed

+86
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+86
-86
lines changed

cli/cliui/job.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/spf13/cobra"
1212

1313
"github.com/coder/coder/codersdk"
14-
"github.com/coder/coder/database"
14+
"github.com/coder/coder/coderd/database"
1515
)
1616

1717
type JobOptions struct {

cli/parametercreate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"golang.org/x/xerrors"
88

99
"github.com/coder/coder/codersdk"
10-
"github.com/coder/coder/database"
10+
"github.com/coder/coder/coderd/database"
1111
)
1212

1313
func parameterCreate() *cobra.Command {

cli/projectcreate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
"github.com/coder/coder/cli/cliui"
1818
"github.com/coder/coder/codersdk"
19-
"github.com/coder/coder/database"
19+
"github.com/coder/coder/coderd/database"
2020
"github.com/coder/coder/provisionerd"
2121
"github.com/coder/coder/provisionersdk"
2222
)

cli/projectcreate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/coder/coder/cli/clitest"
99
"github.com/coder/coder/coderd/coderdtest"
10-
"github.com/coder/coder/database"
10+
"github.com/coder/coder/coderd/database"
1111
"github.com/coder/coder/provisioner/echo"
1212
"github.com/coder/coder/pty/ptytest"
1313
)

cli/projects.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/coder/coder/cli/cliui"
1111
"github.com/coder/coder/codersdk"
12-
"github.com/coder/coder/database"
12+
"github.com/coder/coder/coderd/database"
1313
)
1414

1515
func projects() *cobra.Command {

cli/projectupdate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"golang.org/x/xerrors"
1111

1212
"github.com/coder/coder/codersdk"
13-
"github.com/coder/coder/database"
13+
"github.com/coder/coder/coderd/database"
1414
"github.com/coder/coder/provisionersdk"
1515
)
1616

cli/start.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030
"github.com/coder/coder/coderd"
3131
"github.com/coder/coder/coderd/tunnel"
3232
"github.com/coder/coder/codersdk"
33-
"github.com/coder/coder/database"
34-
"github.com/coder/coder/database/databasefake"
33+
"github.com/coder/coder/coderd/database"
34+
"github.com/coder/coder/coderd/database/databasefake"
3535
"github.com/coder/coder/provisioner/terraform"
3636
"github.com/coder/coder/provisionerd"
3737
"github.com/coder/coder/provisionersdk"

cli/start_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"github.com/coder/coder/cli/clitest"
2424
"github.com/coder/coder/coderd/coderdtest"
2525
"github.com/coder/coder/codersdk"
26-
"github.com/coder/coder/database/postgres"
26+
"github.com/coder/coder/coderd/database/postgres"
2727
)
2828

2929
func TestStart(t *testing.T) {

cli/workspacecreate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
"github.com/coder/coder/cli/cliui"
1616
"github.com/coder/coder/codersdk"
17-
"github.com/coder/coder/database"
17+
"github.com/coder/coder/coderd/database"
1818
)
1919

2020
func workspaceCreate() *cobra.Command {

cli/workspacedelete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
"github.com/coder/coder/cli/cliui"
99
"github.com/coder/coder/codersdk"
10-
"github.com/coder/coder/database"
10+
"github.com/coder/coder/coderd/database"
1111
)
1212

1313
func workspaceDelete() *cobra.Command {

0 commit comments

Comments
 (0)