##// END OF EJS Templates
migration schema fix
marcink -
r1509:da886cc7 beta
parent child Browse files
Show More
@@ -76,6 +76,14 b' def upgrade(migrate_engine):'
76 #==========================================================================
76 #==========================================================================
77 from rhodecode.model.db import Repository
77 from rhodecode.model.db import Repository
78
78
79 #ADD clone_uri column#
80
81 clone_uri = Column("clone_uri", String(length=255, convert_unicode=False,
82 assert_unicode=None),
83 nullable=True, unique=False, default=None)
84
85 clone_uri.create(Repository().__table__)
86
79 #ADD downloads column#
87 #ADD downloads column#
80 enable_downloads = Column("downloads", Boolean(), nullable=True, unique=None, default=True)
88 enable_downloads = Column("downloads", Boolean(), nullable=True, unique=None, default=True)
81 enable_downloads.create(Repository().__table__)
89 enable_downloads.create(Repository().__table__)
@@ -92,21 +100,16 b' def upgrade(migrate_engine):'
92 group_id.create(Repository().__table__)
100 group_id.create(Repository().__table__)
93
101
94
102
95 #ADD clone_uri column#
96
97 clone_uri = Column("clone_uri", String(length=255, convert_unicode=False,
98 assert_unicode=None),
99 nullable=True, unique=False, default=None)
100
101 clone_uri.create(Repository().__table__)
102
103
104 #==========================================================================
103 #==========================================================================
105 # Upgrade of `user_followings` table
104 # Upgrade of `user_followings` table
106 #==========================================================================
105 #==========================================================================
107
106
108 follows_from = Column('follows_from', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
107 from rhodecode.model.db import UserFollowing
109 follows_from.create(Repository().__table__)
108
109 follows_from = Column('follows_from', DateTime(timezone=False),
110 nullable=True, unique=None,
111 default=datetime.datetime.now)
112 follows_from.create(UserFollowing().__table__)
110
113
111 return
114 return
112
115
General Comments 0
You need to be logged in to leave comments. Login now