Compare commits
2 Commits
APIDEV-0.1
...
web/develo
| Author | SHA1 | Date | |
|---|---|---|---|
| 302fdc14a6 | |||
| a51e61aabc |
@ -25,6 +25,8 @@ steps:
|
|||||||
context: ./API
|
context: ./API
|
||||||
dockerfile: ./API/YABA.API/Dockerfile
|
dockerfile: ./API/YABA.API/Dockerfile
|
||||||
tags_file: tags.txt
|
tags_file: tags.txt
|
||||||
|
platforms:
|
||||||
|
- linux/amd64
|
||||||
username:
|
username:
|
||||||
from_secret: gitea_yaba_registry_username
|
from_secret: gitea_yaba_registry_username
|
||||||
password:
|
password:
|
||||||
|
|||||||
@ -97,7 +97,7 @@ var app = builder.Build();
|
|||||||
// Run database migrations
|
// Run database migrations
|
||||||
using (var scope = app.Services.CreateScope())
|
using (var scope = app.Services.CreateScope())
|
||||||
{
|
{
|
||||||
var yabaDbContext = scope.ServiceProvider.GetRequiredService<YABAReadWriteContext>();
|
var yabaDbContext = scope.ServiceProvider.GetRequiredService<YABABaseContext>();
|
||||||
yabaDbContext.Database.Migrate();
|
yabaDbContext.Database.Migrate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user