diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-26 14:51:08 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-26 14:51:08 +0100 |
| commit | c4c48710f929286d4b799bcb6fb02bc8c04383a4 (patch) | |
| tree | 54c70fb97bc8faaa4c5621dadb262b05f79d5350 /admin/upgrades/5.0.1.php | |
| parent | 2866cb7d576ae8c59137d0c7dbb8e9baf0e6e3f1 (diff) | |
| download | liberty-c4c48710f929286d4b799bcb6fb02bc8c04383a4.tar.gz liberty-c4c48710f929286d4b799bcb6fb02bc8c04383a4.tar.bz2 liberty-c4c48710f929286d4b799bcb6fb02bc8c04383a4.zip | |
Add liberty_xref subsystem: package-agnostic typed cross-references
Replaces per-package xref tables with three shared liberty tables:
liberty_xref_group (tab groups), liberty_xref_item (source definitions),
liberty_xref (records). Column names: group→x_group (Firebird reserved word),
source→item, multi→multiple throughout PHP classes and templates.
- 5.0.1 upgrade creates the three tables + sequence + indexes for existing installs
- schema_inc.php updated so fresh installs also get the tables
- Admin UI: admin_xref_groups and admin_xref_sources pages with package filter
- LibertyContent::loadXrefList / getXrefGroupList / getXrefTypeList updated
- LibertyMime: skip attachment rendering during BIT_INSTALL
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin/upgrades/5.0.1.php')
| -rw-r--r-- | admin/upgrades/5.0.1.php | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/admin/upgrades/5.0.1.php b/admin/upgrades/5.0.1.php index f20d190..3844be7 100644 --- a/admin/upgrades/5.0.1.php +++ b/admin/upgrades/5.0.1.php @@ -14,20 +14,22 @@ $gBitInstaller->registerPackageUpgrade( [ [ 'DATADICT' => [ [ 'CREATE' => [ - 'liberty_xref_type' => " - xref_type C(32) PRIMARY, - package C(20) NOTNULL, + 'liberty_xref_group' => " + x_group C(32) PRIMARY, + content_type_guid C(32) PRIMARY, title C(64), sort_order I2, role_id I4, - type_href C(256) + type_href C(256), + multiple I2, + template C(32) ", - 'liberty_xref_source' => " - source C(20) PRIMARY, - package C(20) NOTNULL, - xref_type C(32), + 'liberty_xref_item' => " + item C(20) PRIMARY, + content_type_guid C(32) PRIMARY, + x_group C(32), cross_ref_title C(64), - multi I2, + multiple I2, role_id I4, cross_ref_href C(256), template C(32), @@ -36,7 +38,7 @@ $gBitInstaller->registerPackageUpgrade( 'liberty_xref' => " xref_id I8 PRIMARY, content_id I8 NOTNULL, - source C(20), + item C(20), xorder I2, xref I8, xkey C(32), @@ -48,15 +50,11 @@ $gBitInstaller->registerPackageUpgrade( end_date T ", ]], - [ 'CREATESEQUENCE' => [ - [ 'liberty_xref_seq' ], - ]], + [ 'CREATESEQUENCE' => [ 'liberty_xref_seq' ] ], [ 'CREATEINDEX' => [ - [ - 'liberty_xref_content_idx' => [ 'liberty_xref', 'content_id', null ], - 'liberty_xref_source_pkg_idx' => [ 'liberty_xref_source', 'package', null ], - 'liberty_xref_type_pkg_idx' => [ 'liberty_xref_type', 'package', null ], - ], + 'liberty_xref_content_idx' => [ 'liberty_xref', 'content_id', null ], + 'liberty_xref_item_pkg_idx' => [ 'liberty_xref_item', 'content_type_guid', null ], + 'liberty_xref_group_pkg_idx' => [ 'liberty_xref_group', 'content_type_guid', null ], ]], ]], ] |
