This repository has been archived by the owner on Apr 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with saving notification settings, remove support for upgra…
…ding from 3.2
- Loading branch information
Showing
7 changed files
with
114 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,6 @@ | |
class NotificationSettings extends ScopedTable | ||
{ | ||
|
||
const B2DB_TABLE_VERSION = 1; | ||
const B2DB_TABLE_VERSION = 2; | ||
|
||
} |
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
61 changes: 61 additions & 0 deletions
61
core/modules/installation/upgrade_419/NotificationSetting.php
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,61 @@ | ||
<?php | ||
|
||
namespace thebuggenie\core\modules\installation\upgrade_419; | ||
|
||
use thebuggenie\core\entities\common\Identifiable; | ||
|
||
/** | ||
* Notification setting class | ||
* | ||
* @author Daniel Andre Eikeland <zegenie@zegeniestudios.net> | ||
* @version 3.3 | ||
* @license http://opensource.org/licenses/MPL-2.0 Mozilla Public License 2.0 (MPL 2.0) | ||
* @package thebuggenie | ||
* @subpackage main | ||
*/ | ||
|
||
/** | ||
* Notification setting class | ||
* | ||
* @package thebuggenie | ||
* @subpackage main | ||
* | ||
* @Table(name="\thebuggenie\core\modules\installation\upgrade_419\NotificationSettingsTable") | ||
*/ | ||
class NotificationSetting extends Identifiable | ||
{ | ||
|
||
/** | ||
* The module name | ||
* | ||
* @var string | ||
* @Column(type="string", length=50) | ||
*/ | ||
protected $_module_name; | ||
|
||
/** | ||
* The setting name | ||
* | ||
* @var string | ||
* @Column(type="string", length=50) | ||
*/ | ||
protected $_name; | ||
|
||
/** | ||
* Setting value | ||
* | ||
* @var string | ||
* @Column(type="string", length=100) | ||
*/ | ||
protected $_value = ''; | ||
|
||
/** | ||
* Who the notification is for | ||
* | ||
* @var \thebuggenie\core\entities\User | ||
* @Column(type="integer", length=10) | ||
* @Relates(class="\thebuggenie\core\entities\User") | ||
*/ | ||
protected $_user_id; | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
core/modules/installation/upgrade_419/NotificationSettingsTable.php
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,31 @@ | ||
<?php | ||
|
||
namespace thebuggenie\core\modules\installation\upgrade_419; | ||
|
||
use thebuggenie\core\entities\tables\ScopedTable; | ||
|
||
/** | ||
* User notification settings table | ||
* | ||
* @author Daniel Andre Eikeland <zegenie@zegeniestudios.net> | ||
* @version 3.3 | ||
* @license http://opensource.org/licenses/MPL-2.0 Mozilla Public License 2.0 (MPL 2.0) | ||
* @package thebuggenie | ||
* @subpackage tables | ||
*/ | ||
|
||
/** | ||
* User notification settings table | ||
* | ||
* @package thebuggenie | ||
* @subpackage tables | ||
* | ||
* @Table(name="notificationsettings") | ||
* @Entity(class="\thebuggenie\core\modules\installation\upgrade_419\NotificationSetting") | ||
*/ | ||
class NotificationSettingsTable extends ScopedTable | ||
{ | ||
|
||
const B2DB_TABLE_VERSION = 1; | ||
|
||
} |