Skip to content

Drop custom collation in EF migration rollback #3183

@Gendolph

Description

@Gendolph

Hello!

I try to add custom collation calling HasCollation(...) in OnModelCreating method of DbContext. Everething good, EF migration generate sql with CREATE COLLATION ....
But when I try to rollback this migration, there is no corresponding sql statement dropping my collation in generated sql script.

In results an error is occured when I try to apply modified migration next time (debug) - it can not create collation, because that already exists (and migration failed).

Is it necessary to add some extra configuration besides HasCollation to correctly rollback migration?

Using Npgsql.EntityFrameforkCore.PostgreSQL v8.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions