[IMP] adds duplicated views cleaning at finalize db step

This commit is contained in:
Stéphan Sainléger
2026-01-13 12:39:17 +01:00
parent 743d1ce831
commit 023deeea5b
2 changed files with 196 additions and 0 deletions

View File

@@ -11,6 +11,10 @@ EOF
)
query_postgres_container "$FINALE_SQL" "$DB_NAME" || exit 1
# Fix duplicated views
PYTHON_SCRIPT=post_migration_fix_duplicated_views.py
echo "Remove duplicated views with script $PYTHON_SCRIPT ..."
exec_python_script_in_odoo_shell "$DB_NAME" "$DB_NAME" "$PYTHON_SCRIPT" || exit 1
# Give back the right to user to access to the tables
# docker exec -u 70 "$DB_CONTAINER_NAME" pgm chown "$FINALE_SERVICE_NAME" "$DB_NAME"