Default column values #3288
-
Hi, I could not find a way to define default column values (nothing came out of my searches). Is there a way to set it? Em |
Beta Was this translation helpful? Give feedback.
Answered by
georgesittas
Jan 9, 2025
Replies: 1 comment
-
A bit late to reply here, but perhaps an @IF(
@runtime_stage = 'creating',
ALTER TABLE ...
); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
georgesittas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A bit late to reply here, but perhaps an
ALTER TABLE @this_model ALTER COLUMN ... SET DEFAULT ...
post-statement does the trick. Make sure to run that only during table creation time: