diff --git a/doc/ReleaseNotes.md b/doc/ReleaseNotes.md index d75748a..1de67de 100644 --- a/doc/ReleaseNotes.md +++ b/doc/ReleaseNotes.md @@ -1,4 +1,9 @@ -### 0.0.4 +### 0.0.5 + + * Added Upgrade API. + * Remove Automatic Migrations (cannot be done in a sane way, now the application should just call the new Upgrade API) + +### 0.0.4 * Pin versions && disable automatic migrations. diff --git a/src/SolutionInfo.fs b/src/SolutionInfo.fs index f37bac5..b7b2888 100644 --- a/src/SolutionInfo.fs +++ b/src/SolutionInfo.fs @@ -4,10 +4,10 @@ open System.Reflection [] [] [] -[] -[] -[] +[] +[] +[] do () module internal AssemblyVersionInformation = - let [] Version = "0.0.4" + let [] Version = "0.0.5" diff --git a/src/source/Yaaf.Database/AbstractApplicationDbContext.fs b/src/source/Yaaf.Database/AbstractApplicationDbContext.fs index c29beb5..aaa4341 100644 --- a/src/source/Yaaf.Database/AbstractApplicationDbContext.fs +++ b/src/source/Yaaf.Database/AbstractApplicationDbContext.fs @@ -39,7 +39,7 @@ type IUpgradeDatabaseProvider = abstract GetMigrator : unit -> DbMigrator abstract FixScript : string -> string -[] +//[] module DatabaseUpgrade = let internal notImpl () = (raise <| System.NotSupportedException("Migration is not supported by this type, please implement GetMigrator.")) @@ -50,8 +50,7 @@ module DatabaseUpgrade = "from information_schema.columns where", "FROM information_schema.columns WHERE table_schema = SCHEMA() AND") - - [] + //[] let Upgrade (provider:IUpgradeDatabaseProvider) = let migrator = try provider.GetMigrator()