From 5310769bf806f00df502224966e9d496c5c2638f Mon Sep 17 00:00:00 2001 From: Fluffy-Bean Date: Thu, 20 Apr 2023 19:21:28 +0000 Subject: [PATCH] rename DB columns again!!!!! --- onlylegs/models.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/onlylegs/models.py b/onlylegs/models.py index 53315b1..2b3f88b 100644 --- a/onlylegs/models.py +++ b/onlylegs/models.py @@ -87,10 +87,9 @@ class User(db.Model, UserMixin): # pylint: disable=too-few-public-methods, C010 id = db.Column(db.Integer, primary_key=True) alt_id = db.Column(db.String, unique=True, nullable=False, default=str(uuid4())) - picture = db.Column(db.String, nullable=True, default=None) - picture_colour = db.Column(db.String, nullable=True, default=None) - banner = db.Column(db.String, nullable=True, default=None) - bannner_colour = db.Column(db.String, nullable=True, default=None) + picture = db.Column(db.String, default=None) + colour = db.Column(db.String, default=None) + banner = db.Column(db.String, default=None) username = db.Column(db.String, unique=True, nullable=False) email = db.Column(db.String, unique=True, nullable=False)