File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
internal/controller/postgresql/postgres Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -34,16 +34,6 @@ AND n.nspname = '%s';`
3434 DuplicateDatabaseErrorCode = "42P04"
3535)
3636
37- type TableOwnership struct {
38- TableName string
39- Owner string
40- }
41-
42- type TypeOwnership struct {
43- TypeName string
44- Owner string
45- }
46-
4737func (c * pg ) IsDatabaseExist (dbname string ) (bool , error ) {
4838 err := c .connect (c .defaultDatabase )
4939 if err != nil {
Original file line number Diff line number Diff line change @@ -15,6 +15,16 @@ type SetRoleOnDatabaseRoleSetting struct {
1515 Database string
1616}
1717
18+ type TableOwnership struct {
19+ TableName string
20+ Owner string
21+ }
22+
23+ type TypeOwnership struct {
24+ TypeName string
25+ Owner string
26+ }
27+
1828type PG interface { //nolint:interfacebloat // This is needed
1929 CreateDB (dbname , username string ) error
2030 ChangeDBOwner (dbname , owner string ) error
You can’t perform that action at this time.
0 commit comments