Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Devilish3022ySince I have a little attention I'll just try to explain my problem. So I am working on some project where everything is messed up and nothing on internet can explain train of thoughts of previous developer and ofc he didn't documented anything. I tried what i wanted to do on isolated project and everything works. But on this project nada. Basically gorm is used, and auto migrations are off, where migrations are based on those up down sql files. Now, this particular crud doesnt work on this project even i tested it on isolated project, can crud work without migrations or migrations are must have for golang to read from tables? I tried creating tables manually and no success. I am pretty new in golang and this is first time i am touching migrations, so i am not sure if they are necessary or not.
-
stop68672y@Devilish migrations are going from the design of the tables from 1 to 2 to 3
In version 1 the usertable had only username password, in version 2 you decided to add an email address and in version 3 an backup mail address.
an customer had only v1 on their system, so when you deploy v3 you will run into errors, because the app wants to access the user table with the backup email address, but the databse doesn't have even the column.
Related Rants
-
xorith19HTML: Hate This Meaningless Life CSS: Can't Style Shit JS: Just Shit Java: Just another vicious asshole PH...
-
ObiSwagKenobi6> Receive sudden phone call in the middle of the night > Check caller, unknown number > "Either something ba...
-
dyslxr40So I named my daughter "io" everyone calls her by the name and then we register her on our local gov't to get...
Is there anyone with knowledge in Go (Golang), I need a little help?
question
golang
go