Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to force tables to use default engine #175

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

coding-chimp
Copy link

@coding-chimp coding-chimp commented Feb 6, 2025

Adds a force_default_engine option. When enabled LHM will create the shadow table without copying the engine of the original table, meaning the migration will change the table to the default engine.

@coding-chimp coding-chimp force-pushed the bb/ignore-engine branch 5 times, most recently from 1e397a5 to 88f8c9a Compare February 6, 2025 10:16
@coding-chimp coding-chimp changed the base branch from master to bb/ruby-3.4.1 February 6, 2025 15:40
Base automatically changed from bb/ruby-3.4.1 to master February 6, 2025 15:43
@coding-chimp coding-chimp marked this pull request as ready for review February 6, 2025 16:13
@coding-chimp coding-chimp requested review from a team and akshaysuryawanshi February 6, 2025 16:13
@akshaysuryawanshi
Copy link

PR Looks good. The test covers the case we are exploring. Will be setting the force_default_engine option in the Schema Migrations frontend?

@coding-chimp
Copy link
Author

PR Looks good. The test covers the case we are exploring. Will be setting the force_default_engine option in the Schema Migrations frontend?

Yes, that's the plan. I think not changing the engine with a schema migration is correct for most use cases. We have a special use case, so I'm adding this as an option and will enable it via our tooling.

@coding-chimp coding-chimp merged commit bde867e into master Feb 7, 2025
48 checks passed
@coding-chimp coding-chimp deleted the bb/ignore-engine branch February 7, 2025 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants