Commit Graph

9 Commits

Author SHA1 Message Date
Stéphan Sainléger
67c2d5a061 [IMP] combine SQL queries into single transaction with documentation
Merge three separate SQL queries into one for better performance:
- 1 database connection instead of 3
- Atomic execution of all cleanup operations

Added detailed SQL comments explaining each operation:
- DROP SEQUENCE: Why stale sequences prevent Odoo startup
- UPDATE ir_ui_view: Why website templates are reset except pages
- DELETE ir_attachment: Why compiled assets must be purged

Also changed DROP SEQUENCE to DROP SEQUENCE IF EXISTS to avoid
errors if sequences don't exist.
2026-02-02 22:04:49 +01:00
Stéphan Sainléger
30909a3b28 [IMP] add strict mode (set -euo pipefail) to all scripts
Enable bash strict mode in all shell scripts to catch errors early:
- set -e: Exit immediately if a command exits with non-zero status
- set -u: Treat unset variables as an error
- set -o pipefail: Return value of a pipeline is the status of the last
  command to exit with non-zero status

This prevents silent failures and makes debugging easier by failing fast
when something goes wrong instead of continuing with potentially corrupted
state.
2026-02-02 20:06:27 +01:00
Stéphan Sainléger
4d7933cef0 [IMP] add final script to purge QWeb cache from compiled assets 2026-02-02 17:24:11 +01:00
Stéphan Sainléger
4a3d3b238f [IMP] add final script to reset all custom website templates 2026-02-02 17:23:24 +01:00
Stéphan Sainléger
7d001ff163 [IMP] adds pythons script to clean obsolete addons 2026-01-13 15:08:11 +01:00
Stéphan Sainléger
d8b332762b [IMP] set debug log level on compose run commands 2026-01-13 12:44:35 +01:00
Stéphan Sainléger
023deeea5b [IMP] adds duplicated views cleaning at finalize db step 2026-01-13 12:39:17 +01:00
Stéphan Sainléger
116d00091b imp: factorize query_postgres_container() in upgrade.sh 2024-12-17 15:46:05 +01:00
Stéphan Sainléger
076a7bb3eb [NEW] add first version of 0k Odoo Upgrade scripts 2024-11-26 09:23:45 +01:00