Commit 94eb686d authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add table_regex entry for noexport added in previous commit.

parent d7a404bc
......@@ -1028,6 +1028,7 @@ REPLACE INTO table_regex VALUES ('images','default_osid','text','redirect','os_i
REPLACE INTO table_regex VALUES ('images','path','text','regex','^[-_\\w\\.\\/:+]*$',1,256,NULL);
REPLACE INTO table_regex VALUES ('images','shared','text','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('images','global','text','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('images','noexport','text','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('images','makedefault','text','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('images','mtype','text','redirect','default:boolean',0,0,NULL);
REPLACE INTO table_regex VALUES ('images','node_id','text','redirect','nodes:node_id',0,0,NULL);
......
......@@ -14,6 +14,9 @@ sub DoUpdate($$$)
DBQueryFatal("alter table images add ".
" `noexport` tinyint(1) NOT NULL default '0'");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('images','noexport','text','redirect', ".
" 'default:boolean',0,0,NULL)");
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment