Alternative to migration

Written by
reddit
Link to Post

https://www.reddit.com/r/golang/comments/b0pr0k/alternative_to_migration/ by 

First of all I’m new to using this but I found another approach to add new tables in my database instead of the migration one which is a pain and has many issues. However, I wanted to check if what I’m doing is correct and wouldn’t result in any errors, so instead of doing a new migration, I executed from a source code and opened a file in the database which created a file that has my new tables added to it.

For now, no errors have shown but will it be fine later on?

Here is the screenshots of the new created file and the tables

submitted by /u/cswanxx
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Leave a Reply