Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/EFCore.PG/Migrations/NpgsqlMigrationsSqlGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ protected virtual void GenerateCreateExtension(
.Append(DelimitIdentifier(extension.Version));
}

builder.AppendLine(";");
builder.AppendLine(" CASCADE;");
}

#region Collation management
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2688,7 +2688,7 @@ await Test(
Assert.Equal("public", citext.Schema);
});

AssertSql("CREATE EXTENSION IF NOT EXISTS citext;");
AssertSql("CREATE EXTENSION IF NOT EXISTS citext CASCADE;");
}

[Fact]
Expand All @@ -2714,7 +2714,7 @@ IF NOT EXISTS(SELECT 1 FROM pg_namespace WHERE nspname = 'some_schema') THEN
END $EF$;
""",
//
@"CREATE EXTENSION IF NOT EXISTS citext SCHEMA some_schema;");
@"CREATE EXTENSION IF NOT EXISTS citext SCHEMA some_schema CASCADE;");
}

#endregion
Expand Down