Cleanup deprecated metadata after migration

- delete deprecated metadata
- save applied migration id per metadata holder
This commit is contained in:
schroda
2024-10-26 17:25:04 +02:00
parent b22cec12b4
commit e71c4b7ef1
34 changed files with 687 additions and 183 deletions

View File

@@ -38,12 +38,6 @@ export const DELETE_CATEGORY_METADATA = gql`
meta {
...CATEGORY_META_FIELDS
}
category {
id
meta {
...CATEGORY_META_FIELDS
}
}
}
}
`;

View File

@@ -19,12 +19,6 @@ export const DELETE_CHAPTER_METADATA = gql`
meta {
...CHAPTER_META_FIELDS
}
chapter {
id
meta {
...CHAPTER_META_FIELDS
}
}
}
}
`;

View File

@@ -17,12 +17,6 @@ export const DELETE_MANGA_METADATA = gql`
meta {
...MANGA_META_FIELDS
}
manga {
id
meta {
...MANGA_META_FIELDS
}
}
}
}
`;

View File

@@ -46,3 +46,15 @@ export const SET_SOURCE_METADATA = gql`
}
}
`;
export const DELETE_SOURCE_METADATA = gql`
${SOURCE_META_FIELDS}
mutation DELETE_SOURCE_METADATA($input: DeleteSourceMetaInput!) {
deleteSourceMeta(input: $input) {
meta {
...SOURCE_META_FIELDS
}
}
}
`;