Skip to content

Commit 161abd5

Browse files
committed
INTEGRITY: Increase character limit size for log text
1 parent 96ef224 commit 161abd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

schema.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@
202202
cursor.execute(
203203
"ALTER TABLE file MODIFY COLUMN `size-r` BIGINT DEFAULT 0, MODIFY COLUMN `size-rd` BIGINT DEFAULT 0;"
204204
)
205+
try:
206+
cursor.execute("ALTER TABLE log ADD COLUMN `text` varchar(1000);")
207+
except Exception:
208+
cursor.execute("ALTER TABLE log MODIFY COLUMN `text` varchar(1000);")
205209

206210

207211
for index, definition in indices.items():

0 commit comments

Comments
 (0)