• last updated 17 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- make upgrade script more robust

file upgrade-5.9.0d4-5.9.0d5.sql was initially added on branch oacs-5-9.

    • -0
    • +0
    ./postgresql/upgrade/upgrade-5.9.0d4-5.9.0d5.sql
- follow naming conventions proposed by regression test

- bump version number

  1. … 1 more file in changeset.
- Part 4 of OpenACS 5.9 agenda: get rid of tree_sortkey in acs-objects ; to be on the safe side, backup your database before upgrading, since the acs-objects.treesortkey is being removed (custom packages might erroneously depend on it)

    • -0
    • +118
    ./postgresql/upgrade/upgrade-5.9.0d3-5.9.0d4.sql
  1. … 3 more files in changeset.
- remove obsolete functions

- update release date

- added missing semicolon

- make script robust against multiple loads

  1. … 1 more file in changeset.
Scalability reform part 3 (content-repository):

- content_revision__del:

* Removed manual nulling of live_revision and latest_revision

by using appropriate ond delete actions on foreign keys

* Removed manual deletion of old_revision and new_revision in

cr_item_publish_audit by using "on delete cascade"

- content_item__del:

* Removed manual deletion of item_id in cr_item_publish_audit

by using "on delete cascade"

* Removed manual deletion of item_id in cr_release_periods

by using "on delete cascade"

* Removed manual deletion of item_id in cr_item_template_map

by using "on delete cascade"

* Removed manual deletion of item_id in cr_item_keyword_map

by using "on delete cascade"

* Removed manual deletion of direct permissions (was already

cascading)

- Added missing index for child_id to cr_child_rels.

This index was in the create scripts (with a non-conformant name),

but not in the upgrade scripts

- bump version number of acs-content-repository to 5.9.0d3

    • -59
    • +41
    ./postgresql/content-revision.sql
    • -0
    • +198
    ./postgresql/upgrade/upgrade-5.9.0d2-5.9.0d3.sql
  1. … 1 more file in changeset.
- Scalability reform part 2:

* remove cases in the content repository where referencial

integrity was handled manually. Ancient versions of

PostgresSQL seemed to have a bug, which was adressed

via extra triggers in OpenACS

* drop some leftover form ancient versions, were some

update scripts were missing

- bump version number of acs-content-repository to 5.9.0d2

    • -157
    • +144
    ./postgresql/content-create.sql
    • -0
    • +39
    ./postgresql/upgrade/upgrade-5.9.0d1-5.9.0d2.sql
  1. … 1 more file in changeset.
Merging back to HEAD all changes that happened in branch oacs-5-8 between tags: vg-merge-oacs-5-8-from-20141027 and vg-merge-oacs-5-8-from-20150427

  1. … 520 more files in changeset.
- fix for bug #3238

  1. … 3 more files in changeset.
Bug #3240 - Significantly speed up slow queries in upgrade script...

Bug #3240 - Significantly speed up slow queries in upgrade script...

Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2539 more files in changeset.
cleanup in cr::keyword::* namespace

one cannot advocate to create a keyword with

content::keyword::item_assign and query it with

cr::keyword::item_get_assigned)

- marked the following function as deprecaed

* cr::keyword::get_children

* cr::keyword::get_keyword_id

* cr::keyword::get_options_flat

* cr::keyword::item_get_assigned

* cr::keyword::item_unassign

* cr::keyword::item_unassign_children

- added new functions:

* content::keyword::get_children

* content::keyword::get_keyword_id

* content::keyword::get_options_flat

* content::keyword::item_get_assigned

* content::keyword::item_unassign_children

- updated regression test

  1. … 3 more files in changeset.
- remove commented code

file upgrade-5.8.1d7-5.8.1d8.sql was initially added on branch oacs-5-8.

    • -0
    • +0
    ./postgresql/upgrade/upgrade-5.8.1d7-5.8.1d8.sql
- add missing function args

  1. … 7 more files in changeset.
- use external command "find" instead of tcllib package fileutil for speed and better filtering

- add index for much quicker reverse lookup file names in the content repository

  1. … 5 more files in changeset.
file upgrade-5.8.1d5-5.8.1d6.sql was initially added on branch oacs-5-8.

    • -0
    • +0
    ./postgresql/upgrade/upgrade-5.8.1d5-5.8.1d6.sql
- provide function args for content_keyword__new/9

*** empty log message ***

exclude null paths from cr_files_to_delete for oracle - previously committed fix for postgresql

file upgrade-5.8.0a1-5.8.0a2.sql was initially added on branch oacs-5-8.

    • -0
    • +0
    ./oracle/upgrade/upgrade-5.8.0a1-5.8.0a2.sql
    • -0
    • +0
    ./postgresql/upgrade/upgrade-5.8.0a1-5.8.0a2.sql
- add missing mime-types (application/x-zip, application/x-sh, application/rdf+xml) for postgres and oracle

  1. … 1 more file in changeset.
make sure we exclude null paths from cr_files_to_delete

Some time ago some plpgsql functions were changed in order to be compatible with pg 8.x, create scripts were modified but upgrade scripts were missing ( at least i couldn't find them) http://fisheye.openacs.org/changelog/OpenACS?cs=MAIN%3Ajeffd%3A20090210183154 . Bumping up package versions accordingly.

    • -0
    • +182
    ./postgresql/upgrade/upgrade-5.8.0d3-5.8.0d4.sql
  1. … 7 more files in changeset.
- missing index and foreign key constraints on cr_item_publish_audit fixed

    • -0
    • +16
    ./postgresql/upgrade/upgrade-5.8.0d2-5.8.0d3.sql
  1. … 1 more file in changeset.
Merged oacs-5-7 to HEAD

  1. … 167 more files in changeset.
Upgrade scripts contain the following changes:

- getting right name of triggers, following the pattern *_tr

- redefining funtion arguments for each function using define_function_args

- getting rid of unncesary backslashes, used for escaping, in some functions.

- redefinitions of content_type__refresh_trigger and content_type__drop_type in order to get rid of some 7.2 vs 7.3 querying.

    • -0
    • +683
    ./postgresql/upgrade/upgrade-5.8.0d1-5.8.0d2.sql
  1. … 3 more files in changeset.
Bring PostgreSQL functions closer to the current level of PL/pgSQL:

- upgrade PL/pgSQL functions to the $$ notation (recommended since pg8.0, jan 2005).

- get rid of backslash usages in function definitions

- drop aliases in favor of named function arguments (recommended since pg8.0)

- fix wrong function_args, add missing function_args, align default semantics

with the defaults in pg (providing "null" as default means the argument is

optional).

- change return types of triggers from "opaque" to "trigger" (recommended since pg8.0)

- unify names of triggers *_tr

- removed some version dependencies of pg 7.2 and 7.3

    • -123
    • +230
    ./postgresql/content-create.sql
    • -81
    • +126
    ./postgresql/content-extlink.sql
    • -287
    • +484
    ./postgresql/content-folder.sql
    • -133
    • +188
    ./postgresql/content-image.sql
    • -676
    • +1097
    ./postgresql/content-item.sql
    • -117
    • +207
    ./postgresql/content-keyword.sql
    • -122
    • +205
    ./postgresql/content-perms.sql
    • -210
    • +354
    ./postgresql/content-revision.sql
    • -12
    • +21
    ./postgresql/content-schedule.sql
    • -106
    • +170
    ./postgresql/content-symlink.sql
    • -86
    • +164
    ./postgresql/content-template.sql
    • -310
    • +379
    ./postgresql/content-test.sql
    • -294
    • +450
    ./postgresql/content-type.sql
  1. … 40 more files in changeset.