From 65e2f5d0fc0df9a3e64079ffce1222b761e6558f Mon Sep 17 00:00:00 2001 From: August Date: Mon, 6 May 2024 14:15:29 +0800 Subject: [PATCH 1/2] fix: change full version delta column type for mysql meta backend --- src/meta/model_v2/migration/src/m20231008_020431_hummock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs b/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs index 99f4d701c6445..3f5db964c80bf 100644 --- a/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs +++ b/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs @@ -138,7 +138,7 @@ impl MigrationTrait for Migration { .boolean() .not_null(), ) - .col(ColumnDef::new(HummockVersionDelta::FullVersionDelta).binary()) + .col(ColumnDef::new(HummockVersionDelta::FullVersionDelta).blob(BlobSize::Long)) .to_owned(), ) .await?; From 01ef73a9db54b675fa2b633404c839cdfeab6442 Mon Sep 17 00:00:00 2001 From: zwang28 <84491488@qq.com> Date: Mon, 6 May 2024 14:42:54 +0800 Subject: [PATCH 2/2] fixup: set long blob for hummock model --- .../model_v2/migration/src/m20231008_020431_hummock.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs b/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs index 3f5db964c80bf..42fe0c424f99c 100644 --- a/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs +++ b/src/meta/model_v2/migration/src/m20231008_020431_hummock.rs @@ -30,7 +30,11 @@ impl MigrationTrait for Migration { .not_null() .primary_key(), ) - .col(ColumnDef::new(CompactionTask::Task).binary().not_null()) + .col( + ColumnDef::new(CompactionTask::Task) + .blob(BlobSize::Long) + .not_null(), + ) .col( ColumnDef::new(CompactionTask::ContextId) .integer() @@ -50,7 +54,7 @@ impl MigrationTrait for Migration { .not_null() .primary_key(), ) - .col(ColumnDef::new(CompactionConfig::Config).binary()) + .col(ColumnDef::new(CompactionConfig::Config).blob(BlobSize::Long)) .to_owned(), ) .await?; @@ -65,7 +69,7 @@ impl MigrationTrait for Migration { .not_null() .primary_key(), ) - .col(ColumnDef::new(CompactionStatus::Status).binary()) + .col(ColumnDef::new(CompactionStatus::Status).blob(BlobSize::Long)) .to_owned(), ) .await?;