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

fix: reset public schema before restore pg_dump #20

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

askonev
Copy link
Member

@askonev askonev commented Mar 11, 2024

I ran into a problem: When restoring the database dump, some of the data was not restored due to an error: Table already exists

I propose to cascade droped the public scheme as a temporary solution. And then restore access rights

@ShockwaveNN ShockwaveNN requested review from VitaliySerov and removed request for ShockwaveNN March 11, 2024 21:14
Copy link

@VitaliySerov VitaliySerov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think also it's a good idea to add description of this script to README and also note with !!! marks that running restore_backup will destroy all current DB data

@askonev askonev force-pushed the feature/restore_backup branch 3 times, most recently from f659db4 to e8e6fac Compare March 13, 2024 14:39
lib/survey.sh Outdated Show resolved Hide resolved
lib/survey.sh Outdated Show resolved Hide resolved
@askonev askonev merged commit a96406e into master Mar 15, 2024
3 checks passed
@askonev askonev deleted the feature/restore_backup branch March 15, 2024 09:33
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.

2 participants