Removed the redundant unique constraint from the AccountL10n and CurrencyL10n data models.

This commit is contained in:
依瑪貓 2023-02-07 00:24:36 +08:00
parent cdd010427b
commit 2f8c6f6981

View File

@ -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)