Merge pull request #1078 from famedly/shine/config_table_key_uniqueness

fix: making the key name in the config database unique
This commit is contained in:
Matt Scott
2023-02-17 13:49:38 -05:00
committed by GitHub
2 changed files with 25 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from .base import db
class Setting(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64))
name = db.Column(db.String(64), unique=True, index=True)
value = db.Column(db.Text())
defaults = {