Skip to content

Commit

Permalink
increase mime_type size to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Dec 30, 2023
1 parent 793825c commit e9f016c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion plugins/rundb-mysql/rldb_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ prepare_func(

#include "tables.inc.c"

#define RUN_DB_VERSION 27
#define RUN_DB_VERSION 28

static int
do_create(struct rldb_mysql_state *state)
Expand Down Expand Up @@ -484,6 +484,10 @@ do_open(struct rldb_mysql_state *state)
if (mi->simple_fquery(md, "ALTER TABLE %sruns ADD COLUMN notify_driver TINYINT NOT NULL DEFAULT 0 AFTER ext_user, ADD COLUMN notify_kind TINYINT NOT NULL DEFAULT 0 AFTER notify_driver, ADD COLUMN notify_queue VARCHAR(40) DEFAULT NULL AFTER notify_kind", md->table_prefix) < 0)
return -1;
break;
case 27:
if (mi->simple_fquery(md, "ALTER TABLE %sruns MODIFY COLUMN mime_type VARCHAR(128) DEFAULT NULL ;", md->table_prefix) < 0)
return -1;
break;
case RUN_DB_VERSION:
run_version = -1;
break;
Expand Down
2 changes: 1 addition & 1 deletion plugins/rundb-mysql/tables.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static const char create_runs_query[] =
" is_imported TINYINT NOT NULL DEFAULT 0, "
" is_hidden TINYINT NOT NULL DEFAULT 0, "
" is_readonly TINYINT NOT NULL DEFAULT 0, "
" mime_type VARCHAR(64) DEFAULT NULL, "
" mime_type VARCHAR(128) DEFAULT NULL, "
" last_change_time DATETIME DEFAULT NULL, "
" last_change_nsec INT UNSIGNED NOT NULL DEFAULT 0, "
" is_marked TINYINT NOT NULL DEFAULT 0, "
Expand Down

0 comments on commit e9f016c

Please sign in to comment.