Skip to content

Commit 4d72690

Browse files
committed
Drop all packages that we still need to build so they get properly re-initialized next sync
1 parent d65c504 commit 4d72690

File tree

1 file changed

+3
-0
lines changed
  • daemon/migrations/2021-11-22-110050_cleanup-pkgs-table

1 file changed

+3
-0
lines changed

daemon/migrations/2021-11-22-110050_cleanup-pkgs-table/up.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,6 @@ DROP TABLE packages;
2929
ALTER TABLE _packages_new RENAME TO packages;
3030

3131
PRAGMA foreign_keys=on;
32+
33+
-- drop all packages that we still need to build so they get properly re-initialized next sync
34+
delete from pkgbases where id in (select pkgbase_id from packages where status != 'GOOD') and artifacts='[]';

0 commit comments

Comments
 (0)