Migrations
Persistord ships the model, not migrations. Migrations depend on the concrete database provider you choose, so they must be generated against your own derived context and your own project.
Generate and apply
Use the standard EF Core CLI tools against your bot project:
dotnet ef migrations add Initial --project YourBot.csproj
dotnet ef database update --project YourBot.csproj
This produces a migration that covers the full model: any modules you applied
in OnModelCreating (ApplyMessagesModule(), ApplyHistoryModule()), and —
only if your context derives DiscordGraphDbContext rather than the
conventions-only DiscordDbContext — the core skeleton entities (Guilds,
Channels, Users, Members, Roles). See Core Graph for
which base class maps which tables.
Runnable example
See the Samples article for a runnable end-to-end example (SQLite, all three modules, generated migration).