-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ability to change db version table name #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Minor suggestion
version.go
Outdated
|
||
// SetDBVersionTableName set goose db version table name | ||
func SetDBVersionTableName(n string) { | ||
dbVersionTableName = n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we call it simply "tableName" in all the above occurrences?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion this is a bit ambiguous and can be misleading.
may be versionTable
?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh no, your are right! goose.TableName
is ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Can you verify you can see only one occurrence of git grep goose_db_version
right now? Just wanna make sure we don't have any left-overs anywhere.
Sure:
|
Thanks for your contribution. I just released v2.3.0. |
Thank you so much! |
Hi, guys!
Change db version table name would be useful in some cases:
Thanks!