Skip to content

Commit

Permalink
Add db migration container
Browse files Browse the repository at this point in the history
  • Loading branch information
Aadesh-Baral committed Aug 28, 2022
1 parent 3a28f5f commit 918b39b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/gin-gonic/gin v1.8.1
github.com/google/uuid v1.1.2
github.com/lib/pq v1.10.6
github.com/spf13/viper v1.12.0
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5
google.golang.org/appengine v1.6.7
Expand Down
2 changes: 2 additions & 0 deletions backend/server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w=
github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY=
github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs=
github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo=
github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
Expand Down
3 changes: 2 additions & 1 deletion backend/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import (
"github.com/baato/before-after/api"
db "github.com/baato/before-after/db/sqlc"
"github.com/baato/before-after/util"
_ "github.com/lib/pq"
)

func main() {
config, err := util.LoadConfig("../../")
if err != nil {
log.Fatal("cannot load config:", err)
log.Fatal("cannot load config: ", err)
}

conn, err := sql.Open(config.DBDriver, config.DBSource)
Expand Down

0 comments on commit 918b39b

Please sign in to comment.