Skip to content
代码片段 群组 项目
提交 30f7a63a 编辑于 作者: Adam Hegyi's avatar Adam Hegyi
浏览文件

Merge branch 'add-missing-schema-migration-file' into 'master'

Add missing schema migration file

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/136708



Merged-by: default avatarAdam Hegyi <ahegyi@gitlab.com>
Approved-by: default avatarAdam Hegyi <ahegyi@gitlab.com>
Co-authored-by: default avatarAlexandru Croitor <acroitor@gitlab.com>
No related branches found
No related tags found
无相关合并请求
e1f8c21ab6955b15d13af164eb206dafb7eb1fad01ded49816208ec1ca66911c
\ No newline at end of file
......@@ -11,30 +11,6 @@ CREATE TABLE schema_migrations (
version character varying NOT NULL
);
CREATE TABLE tanuki_bot_mvc (
id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
embedding vector(1536),
url text NOT NULL,
content text NOT NULL,
metadata jsonb NOT NULL,
chroma_id text,
version integer DEFAULT 0 NOT NULL,
CONSTRAINT check_5df597f0fb CHECK ((char_length(url) <= 2048)),
CONSTRAINT check_67053ce605 CHECK ((char_length(content) <= 32768)),
CONSTRAINT check_e130e042d4 CHECK ((char_length(chroma_id) <= 512))
);
CREATE SEQUENCE tanuki_bot_mvc_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE tanuki_bot_mvc_id_seq OWNED BY tanuki_bot_mvc.id;
CREATE TABLE vertex_gitlab_docs (
id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
......@@ -57,8 +33,6 @@ CREATE SEQUENCE vertex_gitlab_docs_id_seq
ALTER SEQUENCE vertex_gitlab_docs_id_seq OWNED BY vertex_gitlab_docs.id;
ALTER TABLE ONLY tanuki_bot_mvc ALTER COLUMN id SET DEFAULT nextval('tanuki_bot_mvc_id_seq'::regclass);
ALTER TABLE ONLY vertex_gitlab_docs ALTER COLUMN id SET DEFAULT nextval('vertex_gitlab_docs_id_seq'::regclass);
ALTER TABLE ONLY ar_internal_metadata
......@@ -67,18 +41,9 @@ ALTER TABLE ONLY ar_internal_metadata
ALTER TABLE ONLY schema_migrations
ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version);
ALTER TABLE ONLY tanuki_bot_mvc
ADD CONSTRAINT tanuki_bot_mvc_pkey PRIMARY KEY (id);
ALTER TABLE ONLY vertex_gitlab_docs
ADD CONSTRAINT vertex_gitlab_docs_pkey PRIMARY KEY (id);
CREATE UNIQUE INDEX index_tanuki_bot_mvc_on_chroma_id ON tanuki_bot_mvc USING btree (chroma_id);
CREATE INDEX index_tanuki_bot_mvc_on_version ON tanuki_bot_mvc USING btree (version);
CREATE INDEX index_tanuki_bot_mvc_on_version_where_embedding_is_null ON tanuki_bot_mvc USING btree (version) WHERE (embedding IS NULL);
CREATE INDEX index_vertex_gitlab_docs_on_version_and_metadata_source_and_id ON vertex_gitlab_docs USING btree (version, ((metadata ->> 'source'::text)), id);
CREATE INDEX index_vertex_gitlab_docs_on_version_where_embedding_is_null ON vertex_gitlab_docs USING btree (version) WHERE (embedding IS NULL);
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册