From 66cf108b3f1f52c3bb2ac965abd924a35250739d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 4 Jul 2024 13:18:45 -0500 Subject: [PATCH] fix: remove `Change` data model since it isn't actually part of CORE, and is now handled in other ways with regard to datasync --- corepos/db/office_op/model.py | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/corepos/db/office_op/model.py b/corepos/db/office_op/model.py index f6787bf..d5da2f7 100644 --- a/corepos/db/office_op/model.py +++ b/corepos/db/office_op/model.py @@ -2,7 +2,7 @@ ################################################################################ # # pyCOREPOS -- Python Interface to CORE POS -# Copyright © 2018-2023 Lance Edgar +# Copyright © 2018-2024 Lance Edgar # # This file is part of pyCOREPOS. # @@ -54,23 +54,6 @@ class StringableDateTime(sa.TypeDecorator): raise NotImplementedError -class Change(Base): - """ - Represents a changed (or deleted) record, which is pending synchronization - to another system(s). - - .. note:: - This table may or may not be installed to a given CORE Office Op DB. Its - presence is required if Rattail datasync needs to "watch" the DB. - """ - __tablename__ = 'datasync_changes' - - id = sa.Column(sa.Integer(), nullable=False, primary_key=True) - object_type = sa.Column(sa.String(length=255), nullable=False) - object_key = sa.Column(sa.String(length=255), nullable=False) - deleted = sa.Column(sa.Boolean(), nullable=False, default=False) - - class Parameter(Base): """ Represents a "parameter" value.