-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend trs_quest.quest_reward length (#1062)
* Create extend_trs_quest_pogodroid_190.py * Update __init__.py * Update extend_trs_quest_pogodroid_190.py one more empty line for Travis * Update rocketmap.sql
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from ._patch_base import PatchBase | ||
|
||
|
||
class Patch(PatchBase): | ||
name = 'Extend trs_quest.quest_reward length' | ||
descr = 'New Protos, more data.' | ||
|
||
def _execute(self): | ||
alter_sql = """ | ||
ALTER TABLE `trs_quest` | ||
MODIFY COLUMN `quest_reward` varchar(2560) | ||
COLLATE utf8mb4_unicode_ci DEFAULT NULL; | ||
""" | ||
try: | ||
self._db.execute(alter_sql, commit=True, raise_exec=True) | ||
except Exception as e: | ||
self._logger.exception("Unexpected error: {}", e) | ||
self.issues = 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