chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,38 @@
|
||||
-- Complete the SQL side of the validated ParadeDB 0.22.2 -> 0.22.6 image upgrade.
|
||||
-- Earlier extension migrations do not run again on existing databases.
|
||||
DO $$
|
||||
DECLARE
|
||||
installed_version TEXT;
|
||||
BEGIN
|
||||
IF current_setting('app.skip_embedding', true) = 'true' THEN
|
||||
RETURN;
|
||||
END IF;
|
||||
|
||||
SELECT extversion INTO installed_version FROM pg_extension WHERE extname = 'pg_search';
|
||||
|
||||
-- Leave absent extensions and other release lines under operator control.
|
||||
-- Do not downgrade a newer extension or upgrade an external server to its
|
||||
-- potentially incompatible default version.
|
||||
IF installed_version IS NULL OR installed_version NOT IN ('0.22.2', '0.22.3', '0.22.4', '0.22.5') THEN
|
||||
RETURN;
|
||||
END IF;
|
||||
|
||||
IF NOT EXISTS (
|
||||
SELECT 1 FROM pg_available_extension_versions
|
||||
WHERE name = 'pg_search' AND version = '0.22.6'
|
||||
) THEN
|
||||
-- Newer images only ship the latest install script; 000115 upgrades
|
||||
-- them directly. Updating the catalog to 0.22.6 there would mismatch
|
||||
-- the shared library.
|
||||
IF EXISTS (
|
||||
SELECT 1 FROM pg_available_extension_versions
|
||||
WHERE name = 'pg_search' AND version = '0.25.11'
|
||||
) THEN
|
||||
RETURN;
|
||||
END IF;
|
||||
RAISE NOTICE 'pg_search 0.22.6 is not available; update the server image and run ALTER EXTENSION pg_search UPDATE TO ''0.22.6'' manually';
|
||||
RETURN;
|
||||
END IF;
|
||||
|
||||
ALTER EXTENSION pg_search UPDATE TO '0.22.6';
|
||||
END $$;
|
||||
Reference in new issue
Block a user