Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
zwang28 committed Sep 9, 2024
1 parent 9978e76 commit e7190e1
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,23 @@ impl MigrationTrait for Migration {
.col(
ColumnDef::new(HummockEpochToVersion::Epoch)
.big_integer()
.not_null()
.primary_key(),
.not_null(),
)
.col(
ColumnDef::new(HummockEpochToVersion::TableId)
.big_integer()
.not_null()
.primary_key(),
.not_null(),
)
.col(
ColumnDef::new(HummockEpochToVersion::VersionId)
.big_integer()
.not_null(),
)
.primary_key(
Index::create()
.col(HummockEpochToVersion::Epoch)
.col(HummockEpochToVersion::TableId),
)
.to_owned(),
)
.await?;
Expand Down

0 comments on commit e7190e1

Please sign in to comment.