This repository was archived by the owner on Oct 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
v3 to v4 script fails when the U&P plugin is not installed #33
Copy link
Copy link
Open
Labels
issue: bugIssue reporting a bugIssue reporting a bugissue: enhancementIssue suggesting an enhancement to an existing featureIssue suggesting an enhancement to an existing featureseverity: mediumIf it breaks the basic use of the product but can be worked aroundIf it breaks the basic use of the product but can be worked aroundsource: v3-SQL to v4-SQLstatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Description
Bug report
Required System information
- Node.js version: 16.13.0
- NPM version: 8.13.2
- Source Strapi version: 3.6.8
- Target Strapi version: 4.1.9
- Source Database: PostgreSQL 12.9
- Target Database: PostgreSQL 12.9
- Operating system: WSL2 / Ubuntu 20.04
- Which script are you running:
v3-sql-v4-sql
Describe the bug
If the U&P plugin is missing from the target project, the script will crash.
error: delete from "up_permissions_role_links" - relation "up_permissions_role_links" does not exist
Steps to reproduce the behavior
Pretty straightforward, just try a migration, targeting a project without U&P installed.
Expected behavior
I would expect a warning message explaining that the U&P plugin is probably not installed, and the users' permissions were not migrated. Apart from that everything should work nonetheless.
Or you can choose to stop there and tell the user to add U&P to his/her app but then it implies that U&P is not really a plugin as it's required.
Metadata
Metadata
Assignees
Labels
issue: bugIssue reporting a bugIssue reporting a bugissue: enhancementIssue suggesting an enhancement to an existing featureIssue suggesting an enhancement to an existing featureseverity: mediumIf it breaks the basic use of the product but can be worked aroundIf it breaks the basic use of the product but can be worked aroundsource: v3-SQL to v4-SQLstatus: confirmedConfirmed by a Strapi Team member or multiple community membersConfirmed by a Strapi Team member or multiple community members
Type
Projects
Status
Reviewed