From e00866f5e4a66c18690f0bcdd274d68f3c3d9d0d Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Wed, 29 Mar 2023 07:19:47 +0200 Subject: [PATCH] URL: Explicitly set upper-case table name Looks like recent SQLAlchemy/Alembic chose to lower-case it by default. Try not to break existing schemas. --- fhost.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fhost.py b/fhost.py index 4880f08..0a04256 100755 --- a/fhost.py +++ b/fhost.py @@ -106,6 +106,7 @@ db = SQLAlchemy(app) migrate = Migrate(app, db) class URL(db.Model): + __tablename__ = "URL" id = db.Column(db.Integer, primary_key = True) url = db.Column(db.UnicodeText, unique = True)