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
ALTERTABLE"prefix"."a" ADD COLUMN "yes_tmp"boolean;
-- Update the new tmp column with value converted to boolean from old column dataUPDATE"prefix"."a"SET"yes_tmp"= CASE WHEN "yes"=0 THEN FALSE ELSE TRUE END;
-- Drop the old columnALTERTABLE"prefix"."a" DROP COLUMN "yes";
-- Rename the new tmp column to old column nameALTERTABLE"prefix"."a" RENAME COLUMN "yes_tmp" TO "yes";
but in my case when i revert / down it can't cast back from boolean to smallint and atlas exit with that error
is there any solution?
The text was updated successfully, but these errors were encountered:
Hello in my case i have table:
smallint
type toboolean
)but in my case when i revert / down it can't cast back from
boolean
tosmallint
and atlas exit with that erroris there any solution?
The text was updated successfully, but these errors were encountered: