Skip to content

Commit 31ba27b

Browse files
committed
feat (NotificationDB): changed fields from BLOB to TEXT
1 parent 8d74800 commit 31ba27b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DIRAC/FrameworkSystem/DB/NotificationDB.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __initializeDB(self):
6565
"Subject": "VARCHAR(255) NOT NULL",
6666
"Status": "VARCHAR(64) NOT NULL",
6767
"Priority": "VARCHAR(32) NOT NULL",
68-
"Body": "BLOB",
68+
"Body": "TEXT",
6969
"Assignee": "VARCHAR(64) NOT NULL",
7070
"Notifications": "VARCHAR(128) NOT NULL",
7171
},
@@ -87,7 +87,7 @@ def __initializeDB(self):
8787
"AlarmId": "INTEGER UNSIGNED NOT NULL",
8888
"Timestamp": "DATETIME NOT NULL",
8989
"Author": "VARCHAR(64) NOT NULL",
90-
"Comment": "BLOB",
90+
"Comment": "TEXT",
9191
"Modifications": "VARCHAR(255)",
9292
},
9393
"Indexes": {"AlarmID": ["AlarmId"]},
@@ -110,7 +110,7 @@ def __initializeDB(self):
110110
"Fields": {
111111
"Id": "INTEGER UNSIGNED AUTO_INCREMENT NOT NULL",
112112
"User": "VARCHAR(64) NOT NULL",
113-
"Message": "BLOB NOT NULL",
113+
"Message": "TEXT NOT NULL",
114114
"Seen": "TINYINT(1) NOT NULL DEFAULT 0",
115115
"Expiration": "DATETIME",
116116
"Timestamp": "DATETIME",

0 commit comments

Comments
 (0)