Skip to content

Commit 36a2df8

Browse files
committed
Also remove unused field 'automatedPublishingJson'
1 parent 9f6be3e commit 36a2df8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/lib/tool/backfill/backfill_new_fields.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ Future<void> migrateIsBlocked() async {
9595
Future<void> _removeKnownUnmappedFields() async {
9696
await for (final p in dbService.query<Package>().run()) {
9797
if (p.additionalProperties.isEmpty) continue;
98-
if (p.additionalProperties.containsKey('isWithheld') ||
98+
if (p.additionalProperties.containsKey('automatedPublishingJson') ||
99+
p.additionalProperties.containsKey('isWithheld') ||
99100
p.additionalProperties.containsKey('withheldReason')) {
100101
await withRetryTransaction(dbService, (tx) async {
101102
final pkg = await tx.lookupValue<Package>(p.key);
103+
pkg.additionalProperties.remove('automatedPublishingJson');
102104
pkg.additionalProperties.remove('isWithheld');
103105
pkg.additionalProperties.remove('withheldReason');
104106
tx.insert(pkg);

0 commit comments

Comments
 (0)