summaryrefslogtreecommitdiff
path: root/admin/upgrades/1.0.1.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-14 09:49:08 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-14 09:49:08 +0100
commitef793a806a8d5a479c29c061780c56f62c4d3535 (patch)
treedabe63be7a0cf383196bccfeb8743310e1d28fba /admin/upgrades/1.0.1.php
parent39508ee5ad8908fa720db48fcf7923f309fdce9d (diff)
downloadboards-ef793a806a8d5a479c29c061780c56f62c4d3535.tar.gz
boards-ef793a806a8d5a479c29c061780c56f62c4d3535.tar.bz2
boards-ef793a806a8d5a479c29c061780c56f62c4d3535.zip
php-cs-fixer tidies to php8.5 standards
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin/upgrades/1.0.1.php')
-rwxr-xr-xadmin/upgrades/1.0.1.php43
1 files changed, 21 insertions, 22 deletions
diff --git a/admin/upgrades/1.0.1.php b/admin/upgrades/1.0.1.php
index 6eef1b9..85c9d36 100755
--- a/admin/upgrades/1.0.1.php
+++ b/admin/upgrades/1.0.1.php
@@ -4,36 +4,36 @@
*/
global $gBitInstaller;
-$infoHash = array(
+$infoHash = [
'package' => BOARDS_PKG_NAME,
'version' => str_replace( '.php', '', basename( __FILE__ )),
'description' => "Add boards sections and positioning.",
'post_upgrade' => null,
-);
-$gBitInstaller->registerPackageUpgrade( $infoHash, array(
+];
+$gBitInstaller->registerPackageUpgrade( $infoHash, [
-array( 'DATADICT' => array(
- array( 'CREATE' => array(
+[ 'DATADICT' => [
+ [ 'CREATE' => [
'boards_sections' => "
section_id I4 PRIMARY,
section_title C(255)
- ",
- )),
+ ",
+ ]],
// insert new column
- array( 'ALTER' => array(
- 'boards' => array(
- 'section_id' => array( '`section_id`', 'I4' ),
- 'pos' => array( '`pos`', 'I4' ),
- ))),
- array( 'CREATEINDEX' => array(
- 'boards_sections_idx' => array( 'boards', 'section_id', [] ),
- )),
- array( 'CREATESEQUENCE' => array(
+ [ 'ALTER' => [
+ 'boards' => [
+ 'section_id' => [ '`section_id`', 'I4' ],
+ 'pos' => [ '`pos`', 'I4' ],
+ ], ]],
+ [ 'CREATEINDEX' => [
+ 'boards_sections_idx' => [ 'boards', 'section_id', [] ],
+ ]],
+ [ 'CREATESEQUENCE' => [
'boards_sections_id_seq',
- )),
-)),
+ ]],
+]],
-array( 'PHP' => '
+[ 'PHP' => '
// Is package installed and enabled
global $gBitSystem;
@@ -88,8 +88,7 @@ while( $topic = $map_errors->fetchRow() ) {
}
$oTopic->CompleteTrans();
-' ),
+' ],
-
-));
+]);
?>