Skip to content

Commit

Permalink
added missing automigrate
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDieckmann committed May 19, 2021
1 parent 238795e commit e46794a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .kube/dev-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
containers:
- env:
- name: JobContainer
value: harbor.computational.bio.uni-giessen.de/bakta/bakta-web-job:0.1.0-beta.1
value: harbor.computational.bio.uni-giessen.de/bakta/bakta-web-job:0.1.0-beta.10
- name: BaseKey
value: data/dev
- name: DBName
Expand Down Expand Up @@ -64,7 +64,7 @@ spec:
secretKeyRef:
key: Token
name: authhandler
image: harbor.computational.bio.uni-giessen.de/bakta/bakta-web-backend:0.2.9-beta.15
image: harbor.computational.bio.uni-giessen.de/bakta/bakta-web-backend:0.2.9-beta.16
imagePullPolicy: Always
name: baktabackend
ports:
Expand Down
2 changes: 2 additions & 0 deletions database/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ func createPostgresSQL() (*gorm.DB, error) {
return nil, err
}

db.AutoMigrate(&Job{})

return db, nil
}

Expand Down

0 comments on commit e46794a

Please sign in to comment.