Skip to content

Commit

Permalink
♻️ 调整UniqueKey 变量名称
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodjooy committed Aug 20, 2024
1 parent bc3c3b1 commit 634c3fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use mongo_migrate_util::{CollectManage, MigrationTrait};
use mongo_models::ceobe::operation::tool_link::models::ToolLink;
use mongodb::{bson::doc, options::IndexOptions, IndexModel};

const UNIQUE_VERSION_IDX: &str = "unique_id_idx";
const UNIQUE_ID_IDX: &str = "unique_id_idx";

pub struct Migration;

Expand All @@ -24,7 +24,7 @@ impl MigrationTrait for Migration {
})
.options(
IndexOptions::builder()
.name(UNIQUE_VERSION_IDX.to_owned())
.name(UNIQUE_ID_IDX.to_owned())
.unique(true)
.build(),
)
Expand Down

0 comments on commit 634c3fe

Please sign in to comment.