diff --git a/CHANGELOG.md b/CHANGELOG.md index 7feebeb..24f220b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to Wutta-COREPOS will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## v0.2.1 (2025-01-15) + +### Fix + +- add latest schema columns on app startup, unless not supported + ## v0.2.0 (2025-01-13) ### Feat diff --git a/pyproject.toml b/pyproject.toml index 6f77e55..afb21c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "Wutta-COREPOS" -version = "0.2.0" +version = "0.2.1" description = "Wutta Framework integration for CORE-POS" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}] diff --git a/src/wutta_corepos/conf.py b/src/wutta_corepos/conf.py index ef4c917..77bb6cc 100644 --- a/src/wutta_corepos/conf.py +++ b/src/wutta_corepos/conf.py @@ -100,3 +100,9 @@ class WuttaCoreposConfigExtension(WuttaConfigExtension): config.core_office_arch_engines = engines config.core_office_arch_engine = engines.get('default') Session.configure(bind=config.core_office_arch_engine) + + # define some schema columns "late" unless not supported + if config.get_bool('corepos.db.office_op.use_latest_columns', + default=True, usedb=False): + from corepos.db.office_op.model import use_latest_columns + use_latest_columns()