Fixed type

This commit is contained in:
Dimitris Zlatanidis 2023-03-02 23:08:06 +02:00
parent 99d86730cf
commit 2b590c5ab2

View file

@ -25,25 +25,25 @@ class SBoTable(Base):
__tablename__ = 'sbotable'
id: int = Column(Integer, primary_key=True)
name: str = Column(Text)
location: str = Column(Text)
files: str = Column(Text)
version: str = Column(Text)
download: str = Column(Text)
download64: str = Column(Text)
md5sum: str = Column(Text)
md5sum64: str = Column(Text)
requires: str = Column(Text)
short_description: str = Column(Text)
id: int = Column(Integer, primary_key=True) # type: ignore
name: str = Column(Text) # type: ignore
location: str = Column(Text) # type: ignore
files: str = Column(Text) # type: ignore
version: str = Column(Text) # type: ignore
download: str = Column(Text) # type: ignore
download64: str = Column(Text) # type: ignore
md5sum: str = Column(Text) # type: ignore
md5sum64: str = Column(Text) # type: ignore
requires: str = Column(Text) # type: ignore
short_description: str = Column(Text) # type: ignore
class PonceTable(Base):
__tablename__ = 'poncetable'
id: int = Column(Integer, primary_key=True)
name: str = Column(Text)
id: int = Column(Integer, primary_key=True) # type: ignore
name: str = Column(Text) # type: ignore
@dataclass
@ -52,9 +52,9 @@ class LogsDependencies(Base):
__tablename__ = 'logsdependencies'
id: int = Column(Integer, primary_key=True)
name: str = Column(Text)
requires: str = Column(Text)
id: int = Column(Integer, primary_key=True) # type: ignore
name: str = Column(Text) # type: ignore
requires: str = Column(Text) # type: ignore
Base.metadata.create_all(engine)