Posts

Showing posts with the label fluent-migrator

Schema, table and column names processing via custom migration class with Fluent Migrator

Image
Clash Royale CLAN TAG #URR8PPP Schema, table and column names processing via custom migration class with Fluent Migrator I'm writing a migration tool for modular applications which are intended to use internal modules, each with its own set of migrations. Our applications are all based on dotnet core, may use different dbms and can use different conventions: each module in its own schema or not, custom table prefix per module, upper or lower case table names, etc. Thus these conventions need to be told by the application itself while needing to write only once each migration in each module. I'd like not to have to call a method call each time we insert a column name, table name, etc, for the developer not to have to have all this stuff in mind. I started to reimplement each expression builder, but I feel it's very wrong and error-prone. I also made a custom generic Migration class, inheriting Migration and having a naming convention interface as a generic type (which as thr...