mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 15:23:02 +00:00 
			
		
		
		
	Added missing unique marker on comments table (#2278)
This commit is contained in:
		| @@ -177,8 +177,8 @@ class Comments(Base): | |||||||
|     __tablename__ = 'comments' |     __tablename__ = 'comments' | ||||||
|  |  | ||||||
|     id = Column(Integer, primary_key=True) |     id = Column(Integer, primary_key=True) | ||||||
|  |     book = Column(Integer, ForeignKey('books.id'), nullable=False, unique=True) | ||||||
|     text = Column(String(collation='NOCASE'), nullable=False) |     text = Column(String(collation='NOCASE'), nullable=False) | ||||||
|     book = Column(Integer, ForeignKey('books.id'), nullable=False) |  | ||||||
|  |  | ||||||
|     def __init__(self, text, book): |     def __init__(self, text, book): | ||||||
|         self.text = text |         self.text = text | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs