Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Add forgiving add column #16057
This makes the add column migration forgiving. It means that it will continue execution if the column already exists. Because of different engines, I am unable to detect using a classname. Instead checking for the string 'duplicate'.
This should help with the instances that accidentally got killed by Hass.io or when people stopped Home Assistant while it is migrating.
This is a stop-gap solution, in the future I want the recorder to run migrations in the background or in an onboarding step.
If the code does not interact with devices: