You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
Creating the following initial table third_party :
'CREATE TABLE third_party (
id SERIAL NOT NULL,
name VARCHAR(255) NOT NULL,
type VARCHAR(255) NOT NULL,
address VARCHAR(1024) DEFAULT NULL,
post_code VARCHAR(10) DEFAULT NULL,
city VARCHAR(128) DEFAULT NULL,
country VARCHAR(255) NOT NULL,
PRIMARY KEY(id))
');
Where type and country are both of them BackedEnum. If I execute this migration, and regenarate a diff migration, it will always reconfigure this 2 columns definition :
ALTER TABLE third_party ALTER type TYPE VARCHAR(255);
ALTER TABLE third_party ALTER type DROP DEFAULT;
ALTER TABLE third_party ALTER country TYPE VARCHAR(255);
ALTER TABLE third_party ALTER country DROP DEFAULT;
By searching on the migrations packages, the changes seems to be detected like this (for country) :
Example :
Creating the following initial table
third_party
:Where
type
andcountry
are both of them BackedEnum. If I execute this migration, and regenarate a diff migration, it will always reconfigure this 2 columns definition :By searching on the migrations packages, the changes seems to be detected like this (for
country
) :Before change :
After change :
I'm trying to find a solution right now.
The text was updated successfully, but these errors were encountered: