mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 23:31:58 +01:00
ebab0eabcc
Signed-off-by: Janos SUTO <sj@acts.hu>
15 lines
669 B
SQL
15 lines
669 B
SQL
alter table timestamp change column hash_value hash_value varchar(128) default null;
|
|
|
|
alter table sph_index change column `to` `to` blob(8192) default null;
|
|
alter table sph_index change column fromdomain fromdomain tinyblob default null;
|
|
alter table sph_index change column todomain todomain blob(512) default null;
|
|
|
|
|
|
alter table metadata change column subject `subject` blob(512) default null;
|
|
|
|
|
|
SELECT Count(*) INTO @exists FROM information_schema.tables WHERE table_schema = 'piler' AND table_type = 'BASE TABLE' AND table_name = 'group';
|
|
SET @query = If(@exists>0, 'RENAME TABLE `group` TO usergroup', 'SELECT 1 from dual');
|
|
PREPARE stmt FROM @query;
|
|
EXECUTE stmt;
|