-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand the partition.mount_point and bios.serial column sizes to stop…
… false positive changes occurring.
- Loading branch information
1 parent
23bb453
commit 36db28d
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
$output .= "Upgrade database to 5.2.0 commenced.\n\n"; | ||
|
||
$sql = "ALTER TABLE `partition` CHANGE `mount_point` `mount_point` VARCHAR(200) NOT NULL DEFAULT ''"; | ||
$db->query($sql); | ||
$output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n"; | ||
log_message('info', (string)$db->getLastQuery()); | ||
|
||
$sql = "ALTER TABLE `bios` CHANGE `serial` `serial` VARCHAR(200) NOT NULL DEFAULT ''"; | ||
$db->query($sql); | ||
$output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n"; | ||
log_message('info', (string)$db->getLastQuery()); | ||
|
||
// set our versions | ||
$sql = "UPDATE `configuration` SET `value` = '20240512' WHERE `name` = 'internal_version'"; | ||
$db->query($sql); | ||
$output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n"; | ||
log_message('info', (string)$db->getLastQuery()); | ||
|
||
$sql = "UPDATE `configuration` SET `value` = '5.2.0' WHERE `name` = 'display_version'"; | ||
$db->query($sql); | ||
$output .= str_replace("\n", " ", (string)$db->getLastQuery()) . "\n\n"; | ||
log_message('info', (string)$db->getLastQuery()); | ||
|
||
$output .= "Upgrade database to 5.2.0 completed.\n\n"; | ||
config('Openaudit')->internal_version = 20240512; | ||
config('Openaudit')->display_version = '5.2.0'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters