1

Is there anyone with knowledge in Go (Golang), I need a little help?

Comments
  • 7
  • 4
    Don't ask to ask and nohello.com, what do you need?
  • 0
    --[]
    T
  • 1
    I charge hourly
  • 1
    Since 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.
  • 1
    @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.
  • 0
    But I have to “go”
  • 0
    @stop but will crud operations work locally without migrational files?
  • 0
    @Devilish that depends on the migrations and the queries. If the developer used "Select * from" or "select username, password from" (selecting only the available), or the table didn't changed then it will work.
Add Comment