-
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.
Store which template was used for a 3rd party app so it can be tracke…
…d when it changes
- Loading branch information
1 parent
e0fb2c6
commit 85a26f5
Showing
7 changed files
with
77 additions
and
12 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
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,30 @@ | ||
<?php | ||
|
||
/* | ||
---------------------------------- | ||
------ Created: 111024 ------ | ||
------ Austin Best ------ | ||
---------------------------------- | ||
*/ | ||
|
||
//-- RESET THE LIST | ||
$q = []; | ||
|
||
//-- ALWAYS NEED TO BUMP THE MIGRATION ID | ||
$q[] = "UPDATE " . SETTINGS_TABLE . " | ||
SET value = '004' | ||
WHERE name = 'migration'"; | ||
|
||
$q[] = "ALTER TABLE " . APPS_TABLE . " ADD template TEXT NULL"; | ||
|
||
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