mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Merge pull request #825 from ngoduykhanh/adjustment
Add index on history table
This commit is contained in:
commit
7254a94497
@ -12,7 +12,7 @@ class History(db.Model):
|
||||
# detail = db.Column(db.Text().with_variant(db.Text(length=2**24-2), 'mysql'))
|
||||
detail = db.Column(db.Text())
|
||||
created_by = db.Column(db.String(128))
|
||||
created_on = db.Column(db.DateTime, default=datetime.utcnow)
|
||||
created_on = db.Column(db.DateTime, index=True, default=datetime.utcnow)
|
||||
|
||||
def __init__(self, id=None, msg=None, detail=None, created_by=None):
|
||||
self.id = id
|
||||
|
Loading…
Reference in New Issue
Block a user