Forum .LRN Q&A: Re: .LRN 2.1 a2 tagged

Collapse
21: Re: .LRN 2.1 a2 tagged (response to 1)
Posted by Hector Amado on
Hi!,  I am having troubles with some upgrade scripts for postgres.
        from 2.0.3 (tarball) to 2.1.0a2 (oacs-5-1)

I changed the apm_upgrade_logic in:
    acs-authentication
        apm-callback-procs.tcl
              5.1.1  5.1.2    ->    5.1.1    5.1.2d1

    dotlrn
        apm-callback-procs.tcl
            2.0.3    2.1.0    ->    2.0.3    2.1.0a2


fs-portlet:
    upgrade-2.0.3-2.0.4.sql
        The creation of a trigger did not work.
        I fixed the trigger and committed the changes.


lars-blogger:
    upgrade-2.0d2-2.0d3.sql
        The creation of a trigger did not work.
        I fixed the trigger and committed the changes.


workflow:
    upgrade-1.2-2.0d1.sql
        I reported the bug #2094
        https://openacs.org/bugtracker/openacs/bug?bug%5fnumber=2094

file-storage:
    upgrade-5.1.0d1-5.1.0d2.sql
        The script did not work,  i commented this line:
        line 49
        -- drop function file_storage__new_root_folder(integer);

        This worked, but is ok?

    upgrade-5.1.0a6-5.1.0a7.sql
      I got this error:

CREATE FUNCTION
CREATE FUNCTION
psql:upgrade-5.1.0a6-5.1.0a7.sql:80: ERROR:  invalid input syntax for integer: "Notas.2.xls"
CONTEXT:  PL/pgSQL function "tmp_fs_name_duplicate" while casting return value to function's return type
PL/pgSQL function "inline_0" line 32 at select into variables
DROP FUNCTION
DROP FUNCTION

I commented this in bug #2092


                                  Héctor.

Collapse
22: Re: .LRN 2.1 a2 tagged (response to 21)
Posted by Michele Slocovich on
Héctor,

regarding bug #2092, did you apply the patch before running the script ?

what version are you upgrading for ?
as i was submitting the bug someone observed that such script should only be needed if you are upgrading from 5.0.x versions, and you should skip it by renaming it to something like 5.0.99-5.1.0 (i actually just removed it).

Collapse
23: Re: .LRN 2.1 a2 tagged (response to 22)
Posted by Hector Amado on
Hi Michele,

    I did a checkout from oacs-5-1
            The file have revision 1.1.2.2  (up-to-date)

    version of file-storage is 5.0.1

    Do i need the script?

                                    Thanks,
                                          Héctor.