|
|
|
@@ -1,5 +1,18 @@ |
|
|
|
-- 要处理项目从私有变为公有,并且从公有变成私有的情况 |
|
|
|
DELETE FROM 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 ( |
|
|
|
id bigint NOT NULL, |
|
|
|
owner_id bigint, |
|
|
|
|