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

[Question] How i roll back the database??? #775

Open
bhupesh7shakya opened this issue Jul 21, 2024 · 2 comments
Open

[Question] How i roll back the database??? #775

bhupesh7shakya opened this issue Jul 21, 2024 · 2 comments
Assignees

Comments

@bhupesh7shakya
Copy link

image
this was my database table
for some reason i have remove the colum and
image
then it is not refeclting in the database its still there..!!!

@VLS-v
Copy link

VLS-v commented Jul 30, 2024

Hi @bhupesh7shakya. This is stated in the documentation:

NOTE: AutoMigrate will create tables, missing foreign keys, constraints, columns and indexes. It will change existing column’s type if its size, precision, nullable changed. It WON’T delete unused columns to protect your data.

I would recommend using 'golang-migrate' to track database changes. I hope this helps!

@bhupesh7shakya
Copy link
Author

Hi @bhupesh7shakya. This is stated in the documentation:

NOTE: AutoMigrate will create tables, missing foreign keys, constraints, columns and indexes. It will change existing column’s type if its size, precision, nullable changed. It WON’T delete unused columns to protect your data.

I would recommend using 'golang-migrate' to track database changes. I hope this helps!

yep i found that i am looking for somehting like migrations like django..! is there any of it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants