From e1d1907cce0b75a2c30de816d0bd05c92252b6ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phan=20Sainl=C3=A9ger?= Date: Thu, 11 Sep 2025 10:41:26 +0200 Subject: [PATCH] [NEW] add migration scripts for Odoo 18.0 --- 18.0/post_upgrade.sh | 5 +++++ 18.0/pre_upgrade.sh | 16 ++++++++++++++++ 18.0/upgrade.sh | 3 +++ 3 files changed, 24 insertions(+) create mode 100755 18.0/post_upgrade.sh create mode 100755 18.0/pre_upgrade.sh create mode 100755 18.0/upgrade.sh diff --git a/18.0/post_upgrade.sh b/18.0/post_upgrade.sh new file mode 100755 index 0000000..ad29951 --- /dev/null +++ b/18.0/post_upgrade.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Post migration to 18.0..." + +#compose --debug run ou18 -u base --stop-after-init --no-http diff --git a/18.0/pre_upgrade.sh b/18.0/pre_upgrade.sh new file mode 100755 index 0000000..a05a790 --- /dev/null +++ b/18.0/pre_upgrade.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo "Prepare migration to 18.0..." + +# Copy database +copy_database ou17 ou18 ou18 || exit 1 + +# Execute SQL pre-migration commands +PRE_MIGRATE_SQL="" +echo "SQL command = $PRE_MIGRATE_SQL" +query_postgres_container "$PRE_MIGRATE_SQL" ou18 || exit 1 + +# Copy filestores +copy_filestore ou17 ou17 ou18 ou18 || exit 1 + +echo "Ready for migration to 18.0!" diff --git a/18.0/upgrade.sh b/18.0/upgrade.sh new file mode 100755 index 0000000..efb56ab --- /dev/null +++ b/18.0/upgrade.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +compose -f ../compose.yml run -p 8018:8069 ou18 --config=/opt/odoo/auto/odoo.conf --stop-after-init -u all --workers 0 --log-level=warn --max-cron-threads=0 --limit-time-real=10000 --database=ou18 --load=web,openupgrade_framework