summaryrefslogtreecommitdiff
path: root/cli/app/sql/models/graph.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-10 20:20:18 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-10 20:20:18 +0200
commit3545b13fec6f041bb72ab7f355d16fc6eeec7032 (patch)
tree55bb492db42aca52a4f758eb360f36de6574f227 /cli/app/sql/models/graph.py
parent67659a964be681a920d4fbc4d839ba95b0947edb (diff)
add homepage id to graph
Diffstat (limited to 'cli/app/sql/models/graph.py')
-rw-r--r--cli/app/sql/models/graph.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/app/sql/models/graph.py b/cli/app/sql/models/graph.py
index fdea32a..fbfb09c 100644
--- a/cli/app/sql/models/graph.py
+++ b/cli/app/sql/models/graph.py
@@ -13,6 +13,7 @@ class Graph(Base):
"""Table for storing references to graphs"""
__tablename__ = 'graph'
id = Column(Integer, primary_key=True)
+ home_page_id = Column(Integer, 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)
@@ -26,6 +27,7 @@ class Graph(Base):
def toJSON(self):
return {
'id': self.id,
+ 'home_page_id': self.home_page_id,
'path': self.path,
'title': self.title,
'username': self.username,