-
Notifications
You must be signed in to change notification settings - Fork 989
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
Fixes #27589 - add sequence reset task #6974
Conversation
Issues: #27589 |
lib/tasks/sequence.rake
Outdated
@@ -0,0 +1,18 @@ | |||
# TRANSLATORS: do not translate | |||
desc <<-END_DESC | |||
Useful tasks for SQL sequences. |
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.
Useful tasks for SQL sequences. | |
Reset PostgreSQL sequences to their max values. Does nothing on other databases. |
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.
Well it's explained on the second line here, this is rather generic sentence for the whole namespace but I am okay with this. Rebased.
e926c2b
to
32256a8
Compare
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.
shouldn't this just be part of the migration task? is there any case when this task should be executed separately?
Database restore perhaps? |
should it be under the |
32256a8
to
90caf7d
Compare
Moved it to the |
Failure unrelated, this should be ready. |
0a756fc
to
94360c6
Compare
Rebased. |
94360c6
to
ae83485
Compare
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.
Thanks @lzap !
Test failure unrelated. |
1.23 - 6e2ab45 |
For MySQL migration we need a nice way to reset sequence generators. Looks like Rails does provide this.