Skip to content

Commit 8708bc8

Browse files
committed
ci: add update script for version 6.8.7 with vacuum table operation
Added a new update entry for version 6.8.7 that includes a VACUUM FULL VERBOSE ANALYZE operation on the public.jer_dd table to optimize database performance and clean up table space. This update ensures proper database maintenance during the version upgrade process from 6.8.6.
1 parent 2f9d1a4 commit 8708bc8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

core/base/update/updates.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,25 @@
3434
$updates = new stdClass();
3535

3636

37+
$v=687; #####################################################################################
38+
$updates->$v = new stdClass();
39+
40+
# UPDATE TO
41+
$updates->$v->version_major = 6;
42+
$updates->$v->version_medium = 8;
43+
$updates->$v->version_minor = 7;
44+
45+
# MINIMUM UPDATE FROM
46+
$updates->$v->update_from_major = 6;
47+
$updates->$v->update_from_medium = 8;
48+
$updates->$v->update_from_minor = 6;
49+
50+
// Re-index and vacuum tables
51+
$updates->$v->SQL_update[] = PHP_EOL.sanitize_query('
52+
VACUUM FULL VERBOSE ANALYZE public.jer_dd;
53+
');
54+
55+
3756
$v=686; #####################################################################################
3857
$updates->$v = new stdClass();
3958

0 commit comments

Comments
 (0)