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

Drop all tables #461

Open
fnaysee opened this issue Apr 3, 2019 · 2 comments
Open

Drop all tables #461

fnaysee opened this issue Apr 3, 2019 · 2 comments
Labels
project:soda/pop This concerns soda/pop

Comments

@fnaysee
Copy link

fnaysee commented Apr 3, 2019

Is there a command in pop to drop all tables ?

@fdonzello
Copy link
Contributor

Is buffalo db drop followed by buffalo db create what you're looking for?

Result will be the same.

@fnaysee
Copy link
Author

fnaysee commented Apr 4, 2019

Hi, I used this command but it says it can not remove the database because other processes are using it, it is while i can remove the database from pg admin. Also i think this is not the right way for recreating tables.
Anyway i found this command buffalo db migrate reset and it works but it says it is deprecated. I kept this issue open because i think it is better than removing the whole database and it does the job in one command.

@stanislas-m stanislas-m added the project:soda/pop This concerns soda/pop label Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project:soda/pop This concerns soda/pop
Projects
None yet
Development

No branches or pull requests

3 participants