summaryrefslogtreecommitdiffstats
path: root/migrations
AgeCommit message (Collapse)Author
2021-11-19Update Copyright string to 2020-2022Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-03-10Remove job input/output artifacts tablesMatthias Beyer
These tables were not used at all, but still existed. Remove them. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-02-25Add release stores in databaseMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-02-05Remove "tree" from submitMatthias Beyer
This removes the "tree" column from the "submits" table. This is because we do not store the build-tree in the database anymore. We don't actually need this feature and we can always re-build the tree from an old commit in the repository. Thus, this is not required anymore. Also, it is less easy to do as soon as the internal implementation changes from a "tree" structure to a "DAG" structure. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-01-14Add migration for dedicated release tableMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-01-13Add LICENSE file and license headersMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-12-14Fix: Add constraints that artifact entries must be unique by path and job idMatthias Beyer
This patch alters the database so that artifact entries in the db are unique by path and job they belong to. The `db::models::Artifact` implementation was updated to select the newly created Artifact object by path and by job id. The uniqueness constraint on the `path` column in the `artifacts` table was dropped. Uncool: We did not generate the constraint name explicitely. That's unfortunate as we have to gamble here that the constraint name is always guaranteed to be the same ("artifacts_path_key"). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-12-03An Artifact belongs to a jobMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-12-03Add flag to artifacts table, whether artifact is released or notMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-13Add uuid field to "job" tableMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-11Alter "jobs" table, because a job can have multiple outputsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-11Create migrations for job output artifactsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-05Remove idea of "buildplan"Matthias Beyer
This patch drops the concept of a "buildplan". This is not required for the first proof-of-concept and makes things too complicated to implement fast. Thus, remove this for now. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-03Add migrations for creating all tablesMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-03Add initial diesel setup codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-11-03diesel setupMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>