Merge pull request #7 from itchangc/main

创建vector插件如果数据库没有则需要提供支持向量的数据库
This commit is contained in:
zyxucp
2024-03-01 16:03:49 +08:00
committed by GitHub

View File

@@ -120,6 +120,8 @@ void InitDB(WebApplication app)
_repository.GetDB().CodeFirst.InitTables(typeof(Kmss));
_repository.GetDB().CodeFirst.InitTables(typeof(KmsDetails));
_repository.GetDB().CodeFirst.InitTables(typeof(Users));
//创建vector插件如果数据库没有则需要提供支持向量的数据库
_repository.GetDB().Ado.ExecuteCommandAsync($"CREATE EXTENSION IF NOT EXISTS vector;");
}
}