[elbe-devel] [PATCH 8/8] elbepack: db: delete class ProjectVersion
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed Aug 14 11:26:34 CEST 2024
The class is not used anymore.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/db.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/elbepack/db.py b/elbepack/db.py
index e27479efa7a2..b230ae2d1ecc 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -251,9 +251,6 @@ class ElbeDB:
t = Thread(target=rmtree, args=[builddir])
t.start()
- s.query(ProjectVersion).\
- filter(ProjectVersion.builddir == builddir).delete()
-
s.query(ProjectFile).\
filter(ProjectFile.builddir == builddir).delete()
@@ -736,7 +733,6 @@ class Project (Base):
status = Column(String)
edit = Column(DateTime, default=datetime.utcnow)
owner_id = Column(Integer, ForeignKey('users.id'))
- versions = relationship('ProjectVersion', backref='project')
files = relationship('ProjectFile', backref='project')
@@ -753,16 +749,6 @@ class ProjectData:
project.edit.microsecond, project.edit.tzinfo)
-class ProjectVersion (Base):
- __tablename__ = 'projectversions'
-
- builddir = Column(String, ForeignKey('projects.builddir'),
- primary_key=True)
- version = Column(String, primary_key=True)
- description = Column(String)
- timestamp = Column(DateTime, default=datetime.utcnow)
-
-
class ProjectFile (Base):
__tablename__ = 'files'
--
2.46.0
More information about the elbe-devel
mailing list