File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ class DBGuild(DBBaseModel):
68
68
discord_id = peewee .CharField (unique = True )
69
69
channel_id = peewee .CharField (default = "" )
70
70
message_id = peewee .CharField (default = "" )
71
+ message_id_others = ArrayField (default = [])
71
72
72
73
73
74
class DBMember (DBBaseModel ):
@@ -81,9 +82,14 @@ def __init__(self):
81
82
_ = db .connect ()
82
83
db .create_tables ([DBGuild , DBMember ])
83
84
message_id_others = ArrayField (default = [])
84
- migrate (
85
- db_migrator .add_column (DBGuild ._meta .table_name , "message_id_others" , message_id_others )
86
- )
85
+ try :
86
+ migrate (
87
+ db_migrator .add_column (
88
+ DBGuild ._meta .table_name , "message_id_others" , message_id_others
89
+ )
90
+ )
91
+ except peewee .OperationalError :
92
+ pass
87
93
# START Transform old format to new
88
94
if os .path .isfile (FILE_INFO_V2 ):
89
95
import json
You can’t perform that action at this time.
0 commit comments