| @@ -1,4 +1,17 @@ | |||||
| DELETE FROM public.dataset_es; | |||||
| DROP FOREIGN TABLE public.dataset_es; | DROP FOREIGN TABLE public.dataset_es; | ||||
| DROP TRIGGER IF EXISTS es_insert_dataset on public.dataset; | |||||
| DROP FUNCTION public.insert_dataset_data(); | |||||
| DROP TRIGGER IF EXISTS es_udpate_dataset_file_name on public.attachment; | |||||
| DROP FUNCTION public.udpate_dataset_file_name; | |||||
| DROP TRIGGER IF EXISTS es_update_dataset on public.dataset; | |||||
| DROP FUNCTION public.update_dataset; | |||||
| DROP TRIGGER IF EXISTS es_delete_dataset on public.dataset; | |||||
| DROP FUNCTION public.delete_dataset; | |||||
| CREATE FOREIGN TABLE public.dataset_es | CREATE FOREIGN TABLE public.dataset_es | ||||
| ( | ( | ||||
| id bigint NOT NULL, | id bigint NOT NULL, | ||||
| @@ -1,4 +1,15 @@ | |||||
| delete from public.issue_es; | |||||
| DROP FOREIGN TABLE public.issue_es; | DROP FOREIGN TABLE public.issue_es; | ||||
| DROP TRIGGER IF EXISTS es_insert_issue on public.issue; | |||||
| DROP FUNCTION public.insert_issue_data; | |||||
| DROP TRIGGER IF EXISTS es_udpate_issue_comment on public.comment; | |||||
| DROP FUNCTION udpate_issue_comment; | |||||
| DROP TRIGGER IF EXISTS es_update_issue on public.issue; | |||||
| DROP FUNCTION public.update_issue; | |||||
| DROP TRIGGER IF EXISTS es_delete_issue on public.issue; | |||||
| DROP FUNCTION public.delete_issue; | |||||
| CREATE FOREIGN TABLE public.issue_es | CREATE FOREIGN TABLE public.issue_es | ||||
| ( | ( | ||||
| id bigint NOT NULL, | id bigint NOT NULL, | ||||
| @@ -1,5 +1,18 @@ | |||||
| -- 要处理项目从私有变为公有,并且从公有变成私有的情况 | -- 要处理项目从私有变为公有,并且从公有变成私有的情况 | ||||
| DELETE FROM public.repository_es; | |||||
| DROP FOREIGN table if exists public.repository_es; | DROP FOREIGN table if exists public.repository_es; | ||||
| DROP TRIGGER IF EXISTS es_insert_repository on public.repository; | |||||
| DROP FUNCTION public.insert_repository_data; | |||||
| DROP TRIGGER IF EXISTS es_update_repository on public.repository; | |||||
| DROP FUNCTION public.update_repository; | |||||
| DROP TRIGGER IF EXISTS es_delete_repository on public.repository; | |||||
| DROP FUNCTION public.delete_repository; | |||||
| DROP TRIGGER IF EXISTS es_udpate_repository_lang on public.language_stat; | |||||
| DROP FUNCTION public.udpate_repository_lang; | |||||
| CREATE FOREIGN TABLE public.repository_es ( | CREATE FOREIGN TABLE public.repository_es ( | ||||
| id bigint NOT NULL, | id bigint NOT NULL, | ||||
| owner_id bigint, | owner_id bigint, | ||||
| @@ -1,4 +1,13 @@ | |||||
| DELETE FROM public.user_es; | |||||
| DROP FOREIGN table if exists public.user_es; | DROP FOREIGN table if exists public.user_es; | ||||
| DROP TRIGGER IF EXISTS es_insert_user on public.user; | |||||
| DROP FUNCTION public.insert_user_data; | |||||
| DROP TRIGGER IF EXISTS es_update_user on public.user; | |||||
| DROP FUNCTION public.update_user; | |||||
| DROP TRIGGER IF EXISTS es_delete_user on public.user; | |||||
| DROP FUNCTION public.delete_user; | |||||
| CREATE FOREIGN TABLE public.user_es | CREATE FOREIGN TABLE public.user_es | ||||
| ( | ( | ||||
| id bigint NOT NULL , | id bigint NOT NULL , | ||||