Skip to content

Should I create a dedicated table for "statuses"? #620

Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Vadorequest
Comment options

Answer selected by Vadorequest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants