diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-26 15:28:00 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-26 15:28:00 +0100 |
| commit | bb2fbc466b5c93450e148380385e3e501eb5f81e (patch) | |
| tree | 974947781774627195d35479a7639773b8c002ec /admin | |
| parent | 297d2f65b3652536487a40b2caacac136e8dbca8 (diff) | |
| download | stock-bb2fbc466b5c93450e148380385e3e501eb5f81e.tar.gz stock-bb2fbc466b5c93450e148380385e3e501eb5f81e.tar.bz2 stock-bb2fbc466b5c93450e148380385e3e501eb5f81e.zip | |
Add Requirements block to schema_inc.php
Declares liberty >= 5.0.1 and contact >= 5.0.2 dependencies so the
installer displays them correctly in the package list.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/schema_inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 07d8275..d927f4a 100755 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -177,3 +177,9 @@ $xrefTypes[] = "INSERT INTO `{$X}liberty_xref_group` (`x_group`,`content_type_gu $xrefItems[] = "INSERT INTO `{$X}liberty_xref_item` (`item`,`content_type_guid`,`x_group`,`cross_ref_title`,`multiple`,`role_id`,`cross_ref_href`,`template`,`data`) VALUES ('REQN','stockmovement','reference','Requisition',1,3,'','text',NULL)"; $gBitInstaller->registerSchemaDefault( STOCK_PKG_NAME, array_merge( $xrefTypes, $xrefItems ) ); + +// ### Requirements +$gBitInstaller->registerRequirements( STOCK_PKG_NAME, [ + 'liberty' => [ 'min' => '5.0.1' ], + 'contact' => [ 'min' => '5.0.2' ] +] );
\ No newline at end of file |
