Skip to content

Commit

Permalink
add non-null constrait to new column (#18444 (comment))
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
  • Loading branch information
BugenZhao committed Sep 24, 2024
1 parent 2fa5d92 commit 9af04da
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ impl MigrationTrait for Migration {
.add_column(
ColumnDef::new(Table::VnodeCount)
.integer()
.not_null()
.default(VNODE_COUNT),
)
.to_owned(),
Expand All @@ -28,6 +29,7 @@ impl MigrationTrait for Migration {
.add_column(
ColumnDef::new(Fragment::VnodeCount)
.integer()
.not_null()
.default(VNODE_COUNT),
)
.to_owned(),
Expand Down

0 comments on commit 9af04da

Please sign in to comment.