We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4293502 commit 12b420aCopy full SHA for 12b420a
composer.json
@@ -4,7 +4,7 @@
4
"homepage": "https://github.com/karsonzhang/fastadmin-addons",
5
"license": "Apache-2.0",
6
"minimum-stability": "dev",
7
- "version": "1.2.1",
+ "version": "1.2.2",
8
"authors": [
9
{
10
"name": "Karson",
src/common.php
@@ -351,7 +351,7 @@ function get_addon_tables($name)
351
if (!$addonInfo) {
352
return [];
353
}
354
- $regex = "/^CREATE TABLE (IF NOT EXISTS )?`?([a-zA-Z_]+)`?/mi";
+ $regex = "/^CREATE\s+TABLE\s+(IF\s+NOT\s+EXISTS\s+)?`?([a-zA-Z_]+)`?/mi";
355
$sqlFile = ADDON_PATH . $name . DS . 'install.sql';
356
$tables = [];
357
if (is_file($sqlFile)) {
0 commit comments