#567 [frontend] remove leftover old_status after PR#562
Merged 5 years ago by frostyx. Opened 5 years ago by frostyx.
copr/ frostyx/copr remove-old-status  into  master

@@ -508,14 +508,6 @@ 

      # enable networking during a build process

      enable_net = db.Column(db.Boolean, default=False, server_default="0", nullable=False)

  

-     # @TODO Remove me few weeks after Copr migration

-     # Contain status of the Package before migration

-     # Normally the `status` is not stored in `Package`. It is computed from `status` variable of `BuildChroot`,

-     # but `old_status` has to be stored here, because we migrate whole `package` table, but only succeeded builds.

-     # Therefore if `old_status` was in `BuildChroot` we wouldn't be able to know old state of non-succeeded packages

-     # even though it would be known before migration.

-     old_status = db.Column(db.Integer)

- 

      builds = db.relationship("Build", order_by="Build.id")

  

      # relations

The PR#562 removed every occurrence of old_status from the code
and removed the DB column, but left the model property, which is
now causing a SQL error every time when selecting packages.

+1, I don't know why I skipped it, I thought that I removed that in #562...

Pull-Request has been merged by frostyx

5 years ago
Metadata