Skip to content

Commit

Permalink
fix(install): pick the right schema
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jul 18, 2022
1 parent 1ed3e9e commit d9cf90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ function plugin_formcreator_getSchemaPath(string $version = null): ?string {

// Drop suffixes for alpha, beta, rc versions
$matches = [];
preg_match('/^(\d+\.\d+\.\d+)/', PLUGIN_FORMCREATOR_VERSION, $matches);
preg_match('/^(\d+\.\d+\.\d+)/', $version, $matches);
$version = $matches[1];

return Plugin::getPhpDir('formcreator') . "/install/mysql/plugin_formcreator_${version}_empty.sql";
Expand Down

0 comments on commit d9cf90a

Please sign in to comment.