summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/migrate/sqlschema/database.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2025-01-14 14:23:28 +0000
committerLibravatar GitHub <noreply@github.com>2025-01-14 14:23:28 +0000
commitb8ef9fc4bcccc6c024edaa8e9c91a6bf87f83dd9 (patch)
tree68eaf966c80237e18993e887c8583355f0943ca7 /vendor/github.com/uptrace/bun/migrate/sqlschema/database.go
parent[chore] better dns validation (#3644) (diff)
downloadgotosocial-b8ef9fc4bcccc6c024edaa8e9c91a6bf87f83dd9.tar.xz
bump uptrace/bun dependencies from 1.2.6 to 1.2.8 (#3645)
Diffstat (limited to 'vendor/github.com/uptrace/bun/migrate/sqlschema/database.go')
-rw-r--r--vendor/github.com/uptrace/bun/migrate/sqlschema/database.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/uptrace/bun/migrate/sqlschema/database.go b/vendor/github.com/uptrace/bun/migrate/sqlschema/database.go
index cdc5b2d50..eb7476c54 100644
--- a/vendor/github.com/uptrace/bun/migrate/sqlschema/database.go
+++ b/vendor/github.com/uptrace/bun/migrate/sqlschema/database.go
@@ -4,12 +4,12 @@ import (
"slices"
"strings"
+ "github.com/uptrace/bun/internal/ordered"
"github.com/uptrace/bun/schema"
- orderedmap "github.com/wk8/go-ordered-map/v2"
)
type Database interface {
- GetTables() *orderedmap.OrderedMap[string, Table]
+ GetTables() *ordered.Map[string, Table]
GetForeignKeys() map[ForeignKey]string
}
@@ -20,11 +20,11 @@ var _ Database = (*BaseDatabase)(nil)
// Dialects and only dialects can use it to implement the Database interface.
// Other packages must use the Database interface.
type BaseDatabase struct {
- Tables *orderedmap.OrderedMap[string, Table]
+ Tables *ordered.Map[string, Table]
ForeignKeys map[ForeignKey]string
}
-func (ds BaseDatabase) GetTables() *orderedmap.OrderedMap[string, Table] {
+func (ds BaseDatabase) GetTables() *ordered.Map[string, Table] {
return ds.Tables
}