Hi
How do I stop DB2/Devart creating the following table in my DB2 V10.5 database:
__MigrationHistory
Difficult to delete this (need special tools)
How can I disable Migrations/Initialisation altogether
Thx
DB2 Code First Migrations
-
- Posts: 6
- Joined: Wed 12 Feb 2014 00:43
- Location: Melbourne, Australia
- Contact:
Re: DB2 Code First Migrations
Please try the following:
1) disable automatic migrations (AutomaticMigrationsEnabled = false;)
2) run DbContext.Database.Create()/ObjectContext.CreateDatabase() explicitly: http://stackoverflow.com/questions/1125 ... 5#11259675
If this doesn't help, find out which exactly code in your application creates / talks to __MigrationHistory. For this employ the dbMonitor tool:
http://www.devart.com/dotconnect/db2/do ... nitor.html
http://www.devart.com/dbmonitor/dbmon3.exe
1) disable automatic migrations (AutomaticMigrationsEnabled = false;)
2) run DbContext.Database.Create()/ObjectContext.CreateDatabase() explicitly: http://stackoverflow.com/questions/1125 ... 5#11259675
If this doesn't help, find out which exactly code in your application creates / talks to __MigrationHistory. For this employ the dbMonitor tool:
http://www.devart.com/dotconnect/db2/do ... nitor.html
http://www.devart.com/dbmonitor/dbmon3.exe