summaryrefslogtreecommitdiff
path: root/vendor/github.com/uptrace/bun/query_column_add.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/uptrace/bun/query_column_add.go')
-rw-r--r--vendor/github.com/uptrace/bun/query_column_add.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/uptrace/bun/query_column_add.go b/vendor/github.com/uptrace/bun/query_column_add.go
index dff514904..0105fdb38 100644
--- a/vendor/github.com/uptrace/bun/query_column_add.go
+++ b/vendor/github.com/uptrace/bun/query_column_add.go
@@ -15,6 +15,8 @@ type AddColumnQuery struct {
ifNotExists bool
}
+var _ Query = (*AddColumnQuery)(nil)
+
func NewAddColumnQuery(db *DB) *AddColumnQuery {
q := &AddColumnQuery{
baseQuery: baseQuery{
@@ -50,7 +52,7 @@ func (q *AddColumnQuery) TableExpr(query string, args ...interface{}) *AddColumn
}
func (q *AddColumnQuery) ModelTableExpr(query string, args ...interface{}) *AddColumnQuery {
- q.modelTable = schema.SafeQuery(query, args)
+ q.modelTableName = schema.SafeQuery(query, args)
return q
}