Index: openacs-4/packages/file-storage/sql/postgresql/upgrade/upgrade-4.6.3-5.0.0.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/sql/postgresql/upgrade/upgrade-4.6.3-5.0.0.sql,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/file-storage/sql/postgresql/upgrade/upgrade-4.6.3-5.0.0.sql	30 Mar 2013 22:50:45 -0000	1.3
+++ openacs-4/packages/file-storage/sql/postgresql/upgrade/upgrade-4.6.3-5.0.0.sql	31 Mar 2013 12:01:24 -0000	1.4
@@ -4,7 +4,7 @@
 -- @author Ola Hansson <ola@polyxena.net>
 
 create or replace function inline_0 ()
-returns integer as'
+returns integer as $$
 declare
     template_id integer;
 begin
@@ -45,8 +45,7 @@
 -- procedure file_storage__new_version/6
 --
 CREATE OR REPLACE FUNCTION file_storage__new_version(
-   new_version__filename --         --
-       varchar,
+   new_version__filename varchar,
    new_version__description varchar,
    new_version__mime_type varchar,
    new_version__item_id integer,
