Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
file-storage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
file-storage
Commits
106eb7a9
Commit
106eb7a9
authored
Jan 19, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- now dropping trigger before creating a new one
parent
7d65d7d1
Pipeline
#149
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
file-storage-package-create.sql
sql/postgresql/file-storage-package-create.sql
+19
-0
No files found.
sql/postgresql/file-storage-package-create.sql
View file @
106eb7a9
...
...
@@ -693,6 +693,25 @@ begin
end;'
language
'plpgsql'
;
-- Fraber: No idea why this trigger could already exist, but it does...
create
or
replace
function
inline_0
()
returns
integer
as
'
declare
v_count integer;
begin
select count(*) into v_count from pg_trigger
where lower(tgname) =
''
fs_package_items_delete_trig
''
;
if v_count = 0 then return 0; end if;
drop function fs_package_items_delete_trig () cascade;
return 0;
end;'
language
'plpgsql'
;
select
inline_0
();
drop
function
inline_0
();
-- JS: BEFORE DELETE TRIGGER to clean up CR entries (except root folder)
create
or
replace
function
fs_package_items_delete_trig
()
returns
opaque
as
'
declare
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment