i don't know how I didn't trip over this one a million times before
read the help for MigrateAsync - "ensure created" does something different, and worse, which prevents future migrations!
This commit is contained in:
parent
a63a3fcb58
commit
26d8373dc8
@ -22,7 +22,6 @@ namespace vassago
|
|||||||
public async Task StartAsync(CancellationToken cancellationToken)
|
public async Task StartAsync(CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var dbc = new ChattingContext();
|
var dbc = new ChattingContext();
|
||||||
await dbc.Database.EnsureCreatedAsync();
|
|
||||||
await dbc.Database.MigrateAsync();
|
await dbc.Database.MigrateAsync();
|
||||||
|
|
||||||
if (DiscordTokens?.Any() ?? false)
|
if (DiscordTokens?.Any() ?? false)
|
||||||
|
Reference in New Issue
Block a user