Oracle migrations are not transactional by default
See original GitHub issueDescribe the bug If I run migrations on oracle db and after some error happen I clearly see there are partially some tables crated. I cannot see it in mssql. Migrations Table is created and it is empty.
To Reproduce Create a migrator with some table creation and then add next line which will throw an error. You will see that the first table is created.
Expected behavior It should rollback whole transaction without creating anything.
Information (please complete the following information):
- OS: Windows 10
- Platform .NET Core 3.1.x
- FluentMigrator version 3.2.6
- FluentMigrator runner
- Database Management System: Oracle
- Database Management System Version: “Oracle 18xe”
Additional context
[Migration(201909232030)]
public class MIG_20190923_2030_Init : Migration
{
public override void Up()
{
...
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Configure the default persistent store for Transaction ...
Under Default Store, in Directory, enter the path to the folder where you want the default persistent store to store its data files....
Read more >Manually migrate the Transaction Recovery Service
Before you can migrate the Transaction Recovery Service to another server in the cluster, you must configure the managed servers in the cluster...
Read more >4 Managing Transactions
Transaction statistics are displayed for a specific server, not the entire domain. ... As in the case of a planned migration, update the...
Read more >Configure automatic migration of the JTA Transaction ...
Database -- requires that Data Source For Automatic Migration field is set with a valid JDBC system resource. It implies that there is...
Read more >Managing Transactions
Transaction statistics are displayed for a specific server, not the entire domain. ... As in the case of a planned migration, update the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No worries. Oracle shops tend to use the Down part of migrations a lot 😃
I think somewhere in the backlog I started spec’ing out something for restoring data as part of migrations, but I can’t even recall my thought process at the time. I think it involved copying all the related data to a separate schema and transfering it back, which would be a minimal t-log operation in case of rollback required.