[NEW] add migration scripts for Odoo 18.0
This commit is contained in:
5
18.0/post_upgrade.sh
Executable file
5
18.0/post_upgrade.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "Post migration to 18.0..."
|
||||||
|
|
||||||
|
#compose --debug run ou18 -u base --stop-after-init --no-http
|
||||||
16
18.0/pre_upgrade.sh
Executable file
16
18.0/pre_upgrade.sh
Executable file
@@ -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!"
|
||||||
3
18.0/upgrade.sh
Executable file
3
18.0/upgrade.sh
Executable file
@@ -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
|
||||||
12
compose.yml
12
compose.yml
@@ -73,6 +73,18 @@ ou17:
|
|||||||
options:
|
options:
|
||||||
workers: 0
|
workers: 0
|
||||||
|
|
||||||
|
ou18:
|
||||||
|
charm: odoo-tecnativa
|
||||||
|
docker-compose:
|
||||||
|
image: docker.0k.io/mirror/odoo:rc_18.0-ELABORE-LIGHT
|
||||||
|
## Important to keep as a list: otherwise it'll overwrite charm's arguments.
|
||||||
|
command:
|
||||||
|
- "--log-level=debug"
|
||||||
|
- "--limit-time-cpu=1000000"
|
||||||
|
- "--limit-time-real=1000000"
|
||||||
|
options:
|
||||||
|
workers: 0
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
docker-compose:
|
docker-compose:
|
||||||
image: docker.0k.io/postgres:17.2.0-myc
|
image: docker.0k.io/postgres:17.2.0-myc
|
||||||
|
|||||||
Reference in New Issue
Block a user