[NEW] add version 20.0 migration files
This commit is contained in:
11
versions/20.0/upgrade.sh
Executable file
11
versions/20.0/upgrade.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# --upgrade-path lists BOTH our custom migration scripts and OpenUpgrade's
|
||||
# native ones. Passing --upgrade-path overrides config['upgrade_path'], and
|
||||
# openupgrade_framework only sets that default when it is empty; so we must
|
||||
# include the native openupgrade_scripts/scripts path explicitly, otherwise the
|
||||
# native migration scripts would no longer run. Odoo appends every listed path
|
||||
# to odoo.upgrade.__path__ and concatenates (does not override) the scripts
|
||||
# found per module/version, so our script runs IN ADDITION to the native ones.
|
||||
run_compose run -p 8020:8069 ou20 --config=/opt/odoo/auto/odoo.conf --stop-after-init -u all --workers 0 --log-level=debug --max-cron-threads=0 --limit-time-real=10000 --database=ou20 --load=base,web,openupgrade_framework --addons-path=/opt/odoo/auto/mig,/opt/odoo/auto/addons --upgrade-path=/opt/odoo/auto/upgrade,/opt/odoo/auto/addons/openupgrade_scripts/scripts
|
||||
Reference in New Issue
Block a user