rename createon.data to creaton.date

This commit is contained in:
Patrick Jentsch 2019-08-06 15:41:07 +02:00
parent 65becc1187
commit b255f3bb4a

View File

@ -259,7 +259,7 @@ class Corpus(db.Model):
__tablename__ = 'corpora'
# Primary key
id = db.Column(db.Integer, primary_key=True)
creation_data = db.Column(db.DateTime(), default=datetime.utcnow)
creation_date = db.Column(db.DateTime(), default=datetime.utcnow)
description = db.Column(db.String(64))
title = db.Column(db.String(32))
user_id = db.Column(db.Integer, db.ForeignKey('users.id'))