Skip to content
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

Migrate to UUID pk #75

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open

Migrate to UUID pk #75

wants to merge 2 commits into from

Conversation

yunge
Copy link

@yunge yunge commented Apr 25, 2024

I don't know how you are going to deal with DB migration, so I just created a sql file "backend/drizzle/uuid_pk.sql", and it should be tested carefully.

The last commit is about generating UUID by Postgres. This way is easier to use UUIDv7 in the future, and it's more suitable for Cella to cooperate with other systems and other languages.

If you want to check the code that generates the UUID by TS code, please check the next to last commit "Migrate to UUID primary keys", thanks.

@flipvh
Copy link
Contributor

flipvh commented Apr 30, 2024

Thanks @yunge !! @RomanNabukhotnyi lets discuss this tomorrow ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants