1
0
Fork 0
forked from mia/0x0

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.
This commit is contained in:
Mia Herkt 2023-03-29 07:19:47 +02:00
parent 3950f6e8eb
commit e00866f5e4
No known key found for this signature in database

View file

@ -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)