summaryrefslogtreecommitdiff
path: root/fhost.py
diff options
context:
space:
mode:
authorMia Herkt <mia@0x0.st>2023-03-29 07:19:47 +0200
committerMia Herkt <mia@0x0.st>2023-03-29 07:19:47 +0200
commite00866f5e4a66c18690f0bcdd274d68f3c3d9d0d (patch)
treef3d8273e7bc05cb50c319837c93bbafdc545be83 /fhost.py
parent3950f6e8ebf264ff5fb7c4302f11667e41c0ce21 (diff)
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.
Diffstat (limited to 'fhost.py')
-rwxr-xr-xfhost.py1
1 files changed, 1 insertions, 0 deletions
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)