summaryrefslogtreecommitdiff
path: root/cli/app/sql/models/page.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-06-02 16:09:59 +0200
committerJules Laplace <julescarbon@gmail.com>2020-06-02 16:09:59 +0200
commit2db55c3d261ddee52019bbd06dc5f6545db39c16 (patch)
tree4afe164982b81ca8cbd239e9f08567e8ae7fb2cf /cli/app/sql/models/page.py
parent42d5e59335d97aa0cf165f2aedf8d04f60db9310 (diff)
form for making a new graph. add username field to db
Diffstat (limited to 'cli/app/sql/models/page.py')
-rw-r--r--cli/app/sql/models/page.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/app/sql/models/page.py b/cli/app/sql/models/page.py
index f23db8d..22fcc96 100644
--- a/cli/app/sql/models/page.py
+++ b/cli/app/sql/models/page.py
@@ -16,6 +16,7 @@ class Page(Base):
graph_id = Column(Integer, ForeignKey('graph.id'), nullable=True)
path = Column(String(64, convert_unicode=True), nullable=False)
title = Column(String(64, convert_unicode=True), nullable=False)
+ username = Column(String(32, convert_unicode=True), nullable=False)
description = Column(Text(convert_unicode=True), nullable=False)
settings = Column(JSON, default={}, nullable=True)
created_at = Column(UtcDateTime(), default=utcnow())
@@ -29,6 +30,7 @@ class Page(Base):
'graph_id': self.graph_id,
'path': self.path,
'title': self.title,
+ 'username': self.username,
'description': self.description,
'settings': self.settings,
'created_at': self.created_at,