mirror of
https://git.0x0.st/mia/0x0.git
synced 2024-11-22 08:57:11 +01:00
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:
parent
3950f6e8eb
commit
e00866f5e4
1 changed files with 1 additions and 0 deletions
1
fhost.py
1
fhost.py
|
@ -106,6 +106,7 @@ db = SQLAlchemy(app)
|
||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
|
|
||||||
class URL(db.Model):
|
class URL(db.Model):
|
||||||
|
__tablename__ = "URL"
|
||||||
id = db.Column(db.Integer, primary_key = True)
|
id = db.Column(db.Integer, primary_key = True)
|
||||||
url = db.Column(db.UnicodeText, unique = True)
|
url = db.Column(db.UnicodeText, unique = True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue