mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Update
* underscores are valid chars for script names
This commit is contained in:
@@ -86,8 +86,8 @@ function update(?array &$sql = [], ?array &$build = []) : void
|
||||
|
||||
sleep(1);
|
||||
|
||||
$sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $sql)))) : [];
|
||||
$build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z]+/i', ' ', $build)))) : [];
|
||||
$sql = trim($sql) ? array_unique(explode(' ', trim(preg_replace('/[^a-z_]+/i', ' ', $sql)))) : [];
|
||||
$build = trim($build) ? array_unique(explode(' ', trim(preg_replace('/[^a-z_]+/i', ' ', $build)))) : [];
|
||||
|
||||
if ($sql)
|
||||
CLI::write('The following table(s) require syncing: '.implode(', ', $sql));
|
||||
|
||||
Reference in New Issue
Block a user