diff --git a/README.md b/README.md index 8ac7d25..b4cf58c 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,19 @@ Docs * [lilac.py API](https://lilac.readthedocs.io/en/latest/api.html) * [Setup and run your own](https://lilac.readthedocs.io/en/latest/) +Update +---- + +### 2024-06-28 + +if database is in use, run the following SQL to update: + +```sql + +alter table lilac.pkglog add column maintainers jsonb; +``` + + License ------- diff --git a/lilac b/lilac index 2c60976..3b57965 100755 --- a/lilac +++ b/lilac @@ -455,6 +455,7 @@ def build_it( cputime = memory = None rs = [r.to_dict() for r in build_reasons[pkg]] with db.get_session() as s: + maintainers = repo.lilacinfos[pkg].maintainers p = db.PkgLog( pkgbase = pkg, nv_version = newver, @@ -465,6 +466,7 @@ def build_it( memory = memory, msg = msg, build_reasons = rs, + maintainers = maintainers, ) s.add(p) db.mark_pkg_as(s, pkg, 'done') diff --git a/scripts/dbsetup.sql b/scripts/dbsetup.sql index 167e98f..ad8a7da 100644 --- a/scripts/dbsetup.sql +++ b/scripts/dbsetup.sql @@ -14,7 +14,8 @@ create table pkglog ( cputime int, memory bigint, msg text, - build_reasons jsonb + build_reasons jsonb, + maintainers jsonb ); create index pkglog_ts_idx on pkglog (ts);