-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a UI setting to group templates by starr or 3rd party app
- Loading branch information
1 parent
506e462
commit 7c166c8
Showing
7 changed files
with
91 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/* | ||
---------------------------------- | ||
------ Created: 111424 ------ | ||
------ Austin Best ------ | ||
---------------------------------- | ||
*/ | ||
|
||
//-- RESET THE LIST | ||
$q = []; | ||
|
||
//-- ALWAYS NEED TO BUMP THE MIGRATION ID | ||
$q[] = "UPDATE " . SETTINGS_TABLE . " | ||
SET value = '006' | ||
WHERE name = 'migration'"; | ||
|
||
$settings = [ | ||
'templateOrder' => 1 | ||
]; | ||
|
||
$settingRows = []; | ||
foreach ($settings as $key => $val) { | ||
$settingRows[] = "('" . $key . "', '" . $val . "')"; | ||
} | ||
|
||
$q[] = "INSERT INTO " . SETTINGS_TABLE . " | ||
(`name`, `value`) | ||
VALUES " . implode(', ', $settingRows); | ||
|
||
foreach ($q as $query) { | ||
logger(MIGRATION_LOG, '<span class="text-success">[Q]</span> ' . preg_replace('!\s+!', ' ', $query)); | ||
|
||
$proxyDb->query($query); | ||
|
||
if ($proxyDb->error() != 'not an error') { | ||
logger(MIGRATION_LOG, '<span class="text-info">[R]</span> ' . $proxyDb->error(), 'error'); | ||
} else { | ||
logger(MIGRATION_LOG, '<span class="text-info">[R]</span> query applied!'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters