diff --git a/src/meta/model_v2/migration/src/m20240820_081248_add_time_travel_per_table_epoch.rs b/src/meta/model_v2/migration/src/m20240820_081248_add_time_travel_per_table_epoch.rs index 17ad55a99c5a0..85d9475aa8f01 100644 --- a/src/meta/model_v2/migration/src/m20240820_081248_add_time_travel_per_table_epoch.rs +++ b/src/meta/model_v2/migration/src/m20240820_081248_add_time_travel_per_table_epoch.rs @@ -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?;