]> git.ipfire.org Git - pbs.git/commitdiff
sources: Remove old state column
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Jun 2023 15:02:47 +0000 (15:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 13 Jun 2023 15:02:47 +0000 (15:02 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/sources.py
src/database.sql

index 042999bb0c1e49f95a973fa2ca19c1f940a08fd8..d5f47160351c5850234f4cc50c4fb9ef22a0dea8 100644 (file)
@@ -450,13 +450,6 @@ class Commit(base.DataObject):
        def source(self):
                return self.backend.sources.get_by_id(self.data.source_id)
 
-       # State
-
-       def set_state(self, state):
-               self._set_attribute("state", state)
-
-       state = property(lambda s: s.data.state, set_state)
-
        # Author
 
        @lazy_property
index 90b63eaaa3192e6db56bf7c6c8b1f8467a834abb..74b764622692535364561e846e57ae9deeed0870 100644 (file)
@@ -926,7 +926,6 @@ CREATE TABLE public.source_commits (
     subject text NOT NULL,
     body text NOT NULL,
     date timestamp without time zone NOT NULL,
-    state text DEFAULT 'pending'::text NOT NULL,
     created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
     deleted_at timestamp without time zone,
     build_group_id integer,