Commit 7e561ebd authored by Martin Urban's avatar Martin Urban
Browse files

Change database model according to commit #3177:3173685ffaef

parent 68e177dd
......@@ -22,7 +22,7 @@ class VispaPreference(Base):
onupdate="CASCADE"),
nullable=False,
primary_key=True)
section = Column(Unicode(255), nullable=False, primary_key=True)
section = Column(Unicode(128), nullable=False, primary_key=True)
value = Column(UnicodeText(), nullable=False, default=u"{}")
timestamp = Column(DateTime, nullable=False, default=datetime.now)
created = Column(DateTime, nullable=False, default=datetime.now)
......@@ -102,7 +102,7 @@ class ExtensionPreference(Base):
onupdate="CASCADE"),
nullable=False,
primary_key=True)
key = Column(Unicode(255), nullable=False, primary_key=True)
key = Column(Unicode(128), nullable=False, primary_key=True)
value = Column(UnicodeText(), nullable=False, default=u"{}")
timestamp = Column(DateTime, nullable=False, default=datetime.now)
created = Column(DateTime, nullable=False, default=datetime.now)
......
......@@ -21,7 +21,7 @@ class VispaShortcuts(Base):
onupdate="CASCADE"),
nullable=False,
primary_key=True)
key = Column(Unicode(255), nullable=False, primary_key=True)
key = Column(Unicode(128), nullable=False, primary_key=True)
value = Column(UnicodeText(), nullable=False, default=u"{}")
timestamp = Column(DateTime, nullable=False, default=datetime.now)
created = Column(DateTime, nullable=False, default=datetime.now)
......@@ -97,7 +97,7 @@ class ExtensionShortcuts(Base):
onupdate="CASCADE"),
nullable=False,
primary_key=True)
key = Column(Unicode(255), nullable=False, primary_key=True)
key = Column(Unicode(128), nullable=False, primary_key=True)
value = Column(UnicodeText(), nullable=False, default=u"{}")
timestamp = Column(DateTime, nullable=False, default=datetime.now)
created = Column(DateTime, nullable=False, default=datetime.now)
......
......@@ -33,9 +33,9 @@ class User(Base):
__tablename__ = 'user'
id = Column(Integer, nullable=False, primary_key=True)
name = Column(Unicode(255), nullable=False, unique=True)
name = Column(Unicode(128), nullable=False, unique=True)
password = Column(UnicodeText(), nullable=False)
email = Column(Unicode(255), nullable=False, unique=True)
email = Column(Unicode(128), nullable=False, unique=True)
created = Column(DateTime, nullable=False, default=datetime.now)
last_request = Column(DateTime, nullable=False, default=datetime.now)
last_password_reset = Column(DateTime, nullable=True, default=None)
......
......@@ -21,7 +21,7 @@ class Workspace(Base):
ondelete="CASCADE",
onupdate="CASCADE"),
nullable=True)
name = Column(Unicode(255), nullable=False)
name = Column(Unicode(128), nullable=False)
host = Column(UnicodeText, nullable=False)
login = Column(UnicodeText, nullable=True, default=None)
key = Column(Text, nullable=True, default=None)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment