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

Allow setting default value on UUID columns #339

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

HeCorr
Copy link
Contributor

@HeCorr HeCorr commented Feb 2, 2025

Closes #338.

This PR sets the noDefault property of UUID types (generic and Postgres) to false so that default values can be set on UUID columns:

image

This PR also forces the cursor style of disabled elements to be inherited from SemiDesign's classes:

image

image
(SemiDesign documentation page)

so it is possible to set a default value on UUID columns
Copy link

vercel bot commented Feb 2, 2025

@HeCorr is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

@HeCorr
Copy link
Contributor Author

HeCorr commented Feb 2, 2025

Honestly speaking, this whole idea of arbitrarily preventing the user from setting the default value on any column type is a bad idea. If their database engine does not support it for whatever reason that's up to them, the design tool shouldn't be restricting that in case it is supported by the engine but someone forgot to enable it in the code (which very much seems to be the case here).

*something* is setting the global cursor style for :disabled elements to "default" and I don't know what, but it conflicts with the intended cursor style of SemiDesign, so let it be determined by semi classes instead.
Copy link

vercel bot commented Feb 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawdb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 2, 2025 6:54pm

@1ilit 1ilit merged commit da8961c into drawdb-io:main Feb 2, 2025
4 checks passed
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.

[BUG] Can't set Default value for UUID type
2 participants