diff --git a/shopdb/core/api/applications.py b/shopdb/core/api/applications.py index 58589e9..ed0c05d 100644 --- a/shopdb/core/api/applications.py +++ b/shopdb/core/api/applications.py @@ -271,6 +271,9 @@ def create_version(app_id: int): ) db.session.add(version) + # Preserve the legacy release/added timestamps in import mode (no-op + # otherwise), so imported version history keeps its original dates. + apply_import_timestamps(version, data) db.session.commit() return success_response(version.to_dict(), message='Version created', http_code=201)