Should I create a dedicated table for "statuses"? #620
Answered
by
steve-chavez
Vadorequest
asked this question in
Questions
-
Beta Was this translation helpful? Give feedback.
Answered by
steve-chavez
Jan 27, 2021
Replies: 1 comment 1 reply
-
1 is possible with PostgreSQL, by using an ENUM type. I think right now it isn't possible to create enums within the Table Editor, but it can be added(cc @joshenlim). As a workaround, you can create the enum with SQL: CREATE TYPE "ProjectStatus" AS ENUM ('active', 'closed', 'etc');
ALTER TABLE "Project" ADD COLUMN status "ProjectStatus"; Then you could use the enum values through the Table Editor. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Vadorequest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1 is possible with PostgreSQL, by using an ENUM type.
I think right now it isn't possible to create enums within the Table Editor, but it can be added(cc @joshenlim).
As a workaround, you can create the enum with SQL:
Then you could use the enum values through the Table Editor.