From 2f8c6f698168424869292e5d5ecdf618f9cfabdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 7 Feb 2023 00:24:36 +0800 Subject: [PATCH] Removed the redundant unique constraint from the AccountL10n and CurrencyL10n data models. --- src/accounting/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/accounting/models.py b/src/accounting/models.py index 187a639..d6e278b 100644 --- a/src/accounting/models.py +++ b/src/accounting/models.py @@ -317,7 +317,6 @@ class AccountL10n(db.Model): """The locale.""" title = db.Column(db.String, nullable=False) """The localized title.""" - db.UniqueConstraint(account_id, locale) class Currency(db.Model): @@ -431,4 +430,3 @@ class CurrencyL10n(db.Model): """The locale.""" name = db.Column(db.String, nullable=False) """The localized name.""" - db.UniqueConstraint(currency_code, locale)