Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed Oct 26, 2016
1 parent 3403f68 commit 94bf6fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openprocurement/contracting/api/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from openprocurement.contracting.api.models import Contract

LOGGER = logging.getLogger(__name__)
SCHEMA_VERSION = 1
SCHEMA_VERSION = 2
SCHEMA_DOC = 'openprocurement_contracts_schema'


Expand Down Expand Up @@ -79,4 +79,7 @@ def from1to2(registry):

docs.append(doc)

if docs:
registry.db.update(docs)

LOGGER.info("Contracts migration is finished.", extra={'MESSAGE_ID': 'migrate_data'})

0 comments on commit 94bf6fc

Please sign in to comment.