[elbe-devel] [PATCH 8/8] elbepack: db: delete class ProjectVersion

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Aug 13 09:31:24 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 72a3830197ec..14eaf45f2020 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -241,9 +241,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()
 
@@ -737,7 +734,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')
 
 
@@ -754,16 +750,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