-
-
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.
Migrate to use DatabaseVirtualDomains (#92)
- Loading branch information
1 parent
092074e
commit cb84173
Showing
7 changed files
with
46 additions
and
33 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 |
---|---|---|
@@ -1,14 +1,30 @@ | ||
<?php | ||
|
||
class IncidentReportingHooks { | ||
|
||
public static function onLoadExtensionSchemaUpdates( DatabaseUpdater $updater ) { | ||
$updater->addExtensionTable( 'incidents', | ||
__DIR__ . '/../sql/incidents.sql' ); | ||
$updater->addExtensionUpdateOnVirtualDomain( [ | ||
'virtual-incidentreporting', | ||
'addTable', | ||
'incidents', | ||
__DIR__ . '/../sql/incidents.sql', | ||
true, | ||
] ); | ||
|
||
$updater->addExtensionTable( 'incidents_log', | ||
__DIR__ . '/../sql/incidents_log.sql' ); | ||
$updater->addExtensionUpdateOnVirtualDomain( [ | ||
'virtual-incidentreporting', | ||
'addTable', | ||
'incidents_log', | ||
__DIR__ . '/../sql/incidents_log.sql', | ||
true, | ||
] ); | ||
|
||
$updater->addExtensionTable( 'incidents_reviewer', | ||
__DIR__ . '/../sql/incidents_reviewer.sql' ); | ||
$updater->addExtensionUpdateOnVirtualDomain( [ | ||
'virtual-incidentreporting', | ||
'addTable', | ||
'incidents_reviewer', | ||
__DIR__ . '/../sql/incidents_reviewer.sql', | ||
true, | ||
] ); | ||
} | ||
} |
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