From 2db55c3d261ddee52019bbd06dc5f6545db39c16 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 16:09:59 +0200 Subject: form for making a new graph. add username field to db --- cli/app/sql/models/page.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cli/app/sql/models/page.py') 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, -- cgit v1.2.3-70-g09d2