Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Migration to add enum column not working #1088

Open
KyleAMathews opened this issue Mar 22, 2024 · 3 comments
Open

Migration to add enum column not working #1088

KyleAMathews opened this issue Mar 22, 2024 · 3 comments

Comments

@KyleAMathews
Copy link
Contributor

Which is odd as this would work if I created the enum when creating the table.

CREATE TYPE application_status AS ENUM ('applied', 'rejected');
ALTER TABLE read_jobs ADD COLUMN why application_status;

I'm assuming this is a bug?

Copy link

linear bot commented Mar 22, 2024

@samwillis
Copy link
Contributor

Hey 👋

Adding enum columns to an already electrified table hasn't been implemented yet. There is a little complexity we need to solve with the ordering of operations that doesn't apply when electrifying an existing table with them. It's on the to do list.

@msfstef
Copy link
Contributor

msfstef commented Mar 27, 2024

This is a current limitation with ENUM types, see warning at the bottom of the types docs.

Since this is a known and documented limitation that might take a bit of time to resolve I will convert this issue into a discussion.

@electric-sql electric-sql locked and limited conversation to collaborators Mar 27, 2024
@msfstef msfstef converted this issue into discussion #1105 Mar 27, 2024
@linear linear bot reopened this Mar 27, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants