Fixed the primary key of the Account data model to be not auto-incrementing.
This commit is contained in:
parent
fecf33baa8
commit
dde9c38bb8
@ -85,7 +85,8 @@ class Account(db.Model):
|
|||||||
"""An account."""
|
"""An account."""
|
||||||
__tablename__ = "accounting_accounts"
|
__tablename__ = "accounting_accounts"
|
||||||
"""The table name."""
|
"""The table name."""
|
||||||
id = db.Column(db.Integer, nullable=False, primary_key=True)
|
id = db.Column(db.Integer, nullable=False, primary_key=True,
|
||||||
|
autoincrement=False)
|
||||||
"""The account ID."""
|
"""The account ID."""
|
||||||
base_code = db.Column(db.String, db.ForeignKey(BaseAccount.code,
|
base_code = db.Column(db.String, db.ForeignKey(BaseAccount.code,
|
||||||
ondelete="CASCADE"),
|
ondelete="CASCADE"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user