@strapi/content-releases 5.0.6 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -306,6 +306,10 @@ async function enableContentTypeLocalized({ oldContentTypes, contentTypes: conte
306
306
  const addEntryDocumentToReleaseActions = {
307
307
  name: "content-releases::5.0.0-add-entry-document-id-to-release-actions",
308
308
  async up(trx, db) {
309
+ const hasTable = await trx.schema.hasTable("strapi_release_actions");
310
+ if (!hasTable) {
311
+ return;
312
+ }
309
313
  const hasPolymorphicColumn = await trx.schema.hasColumn("strapi_release_actions", "target_id");
310
314
  if (hasPolymorphicColumn) {
311
315
  const hasEntryDocumentIdColumn = await trx.schema.hasColumn(