##// END OF EJS Templates
audit-logs: ensure nullable FK IDs for mysql
marcink -
r2111:4f5b47ba default
parent child Browse files
Show More
@@ -1225,9 +1225,9 b' class UserLog(Base, BaseModel):'
1225 VERSIONS = [VERSION_1, VERSION_2]
1225 VERSIONS = [VERSION_1, VERSION_2]
1226
1226
1227 user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1227 user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1228 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1228 user_id = Column("user_id", Integer(), ForeignKey('users.user_id',ondelete='SET NULL'), nullable=True, unique=None, default=None)
1229 username = Column("username", String(255), nullable=True, unique=None, default=None)
1229 username = Column("username", String(255), nullable=True, unique=None, default=None)
1230 repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True)
1230 repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id', ondelete='SET NULL'), nullable=True, unique=None, default=None)
1231 repository_name = Column("repository_name", String(255), nullable=True, unique=None, default=None)
1231 repository_name = Column("repository_name", String(255), nullable=True, unique=None, default=None)
1232 user_ip = Column("user_ip", String(255), nullable=True, unique=None, default=None)
1232 user_ip = Column("user_ip", String(255), nullable=True, unique=None, default=None)
1233 action = Column("action", Text().with_variant(Text(1200000), 'mysql'), nullable=True, unique=None, default=None)
1233 action = Column("action", Text().with_variant(Text(1200000), 'mysql'), nullable=True, unique=None, default=None)
General Comments 0
You need to be logged in to leave comments. Login now