-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38eb79a
commit de170d8
Showing
4 changed files
with
37 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace adigital\eventbrite\migrations; | ||
|
||
use adigital\eventbrite\Eventbrite; | ||
|
||
use adigital\eventbrite\records\NonAdminSettings; | ||
use craft\db\Migration; | ||
|
||
/** | ||
* m230509_135702_updateSettingsColumn migration. | ||
*/ | ||
class m230509_135702_updateSettingsColumn extends Migration | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public function safeUp() | ||
{ | ||
// Place migration code here... | ||
$this->alterColumn(NonAdminSettings::tableName(), 'otherEventIds', $this->text()->defaultValue(NULL)); | ||
return true; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function safeDown() | ||
{ | ||
echo "m230509_135702_updateSettingsColumn cannot be reverted.\n"; | ||
return false; | ||
} | ||
} |