Skip to content
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

Prevent CockroachDB TruncateAll from emptying the migration table #443

Merged
merged 1 commit into from
Oct 6, 2019
Merged

Prevent CockroachDB TruncateAll from emptying the migration table #443

merged 1 commit into from
Oct 6, 2019

Conversation

ypjama
Copy link
Contributor

@ypjama ypjama commented Oct 5, 2019

TruncateAll() func in PostgreSQL dialect doesn't truncate the migration table so I think CockroachDB shouldn't truncate it either.

I was using PostgreSQL previously and I used TruncateAll() in my db:seed task. With CockroachDB the same db:seed task messes up the database migrations in development environments.

@ypjama ypjama requested a review from a team as a code owner October 5, 2019 21:16
@stanislas-m stanislas-m merged commit 8c9b756 into gobuffalo:development Oct 6, 2019
@stanislas-m
Copy link
Member

Thanks!

breml added a commit to breml/pop that referenced this pull request Apr 20, 2020
Bring dialect mysql on par with postgres and cockroachDB.

See: gobuffalo#443
stanislas-m added a commit that referenced this pull request Apr 20, 2020
Bring dialect mysql on par with postgres and cockroachDB.

See: #443

Co-authored-by: Stanislas Michalak <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants