-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
v0.2.4 works fine, but after v0.2.5, if I regenerate the migration from scratch it fails:
Previous order
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.EnsureSchema(
name: "auth");
migrationBuilder.AlterDatabase()
.Annotation("Npgsql:PostgresExtension:timescaledb", ",,");
New order
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.EnsureSchema(
name: "auth");
migrationBuilder.CreateIndex(
name: "ix_users_email",
schema: "auth",
table: "users",
column: "email",
unique: true);
Clearly the index cant be created before the table so it fails
Metadata
Metadata
Assignees
Labels
No labels