-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove externalLoading setting and build it in properly
- Loading branch information
1 parent
a0f985a
commit 469888f
Showing
5 changed files
with
50 additions
and
28 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,34 @@ | ||
<?php | ||
|
||
/* | ||
---------------------------------- | ||
------ Created: 091724 ------ | ||
------ Austin Best ------ | ||
---------------------------------- | ||
*/ | ||
|
||
$q[] = "INSERT INTO " . SETTINGS_TABLE . " | ||
(`name`, `value`) | ||
VALUES | ||
('currentPage', 'overview') | ||
ON CONFLICT(`name`) DO UPDATE SET value = 'overview' WHERE name = 'currentPage'"; | ||
|
||
$q[] = "DELETE FROM " . SETTINGS_TABLE . " | ||
WHERE name = 'externalLoading'"; | ||
|
||
//-- ALWAYS NEED TO BUMP THE MIGRATION ID | ||
$q[] = "UPDATE " . SETTINGS_TABLE . " | ||
SET value = '004' | ||
WHERE name = 'migration'"; | ||
|
||
foreach ($q as $query) { | ||
logger(MIGRATION_LOG, '<span class="text-success">[Q]</span> ' . preg_replace('!\s+!', ' ', $query)); | ||
|
||
$database->query($query); | ||
|
||
if ($database->error() != 'not an error') { | ||
logger(MIGRATION_LOG, '<span class="text-info">[R]</span> ' . $database->error(), 'error'); | ||
} else { | ||
logger(MIGRATION_LOG, '<span class="text-info">[R]</span> query applied!'); | ||
} | ||
} |