Closed t-wright closed 2 months ago
✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.
Package | Version | Score | Details |
---|
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Description
When importing SQL to a multisite environment, we check that the SQL file is from a multisite installation. One of the ways we do that is by checking the table name in
CREATE TABLE
statements are in a format likewp_\d_posts
. However our regex doesn't currently match if theIF NOT EXISTS
keyword is present, leading to a validation warning. This PR fixes that.Pull request checklist
New release checklist
Steps to Test
npm run build
./dist/bin/vip-import-sql.js path_to_file.sql @<id>.production
(where the id corresponds to a multisite installation)Error: You have requested a subsite SQL import but have not provided a subsite compatiable SQL dump.