FIX : #4785
This commit is contained in:
parent
4bf2da4af7
commit
b58e155a6f
@ -795,4 +795,16 @@ ALTER TABLE llx_societe_remise_except MODIFY COLUMN description text NOT NULL;
|
|||||||
|
|
||||||
-- Fix bad data
|
-- Fix bad data
|
||||||
update llx_opensurvey_sondage set format = 'D' where format = 'D+';
|
update llx_opensurvey_sondage set format = 'D' where format = 'D+';
|
||||||
update llx_opensurvey_sondage set format = 'A' where format = 'A+';
|
update llx_opensurvey_sondage set format = 'A' where format = 'A+';
|
||||||
|
|
||||||
|
--Deal with holidays_user that do not have rowid
|
||||||
|
CREATE TABLE llx_holiday_users_tmp
|
||||||
|
(
|
||||||
|
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
fk_user integer NOT NULL,
|
||||||
|
fk_type integer NOT NULL,
|
||||||
|
nb_holiday real NOT NULL DEFAULT '0'
|
||||||
|
) ENGINE=innodb;
|
||||||
|
INSERT INTO llx_holiday_users_tmp(fk_user,fk_type,nb_holiday) SELECT fk_user,fk_type,nb_holiday FROM llx_holiday_users;
|
||||||
|
DROP TABLE llx_holiday_users;
|
||||||
|
ALTER TABLE llx_holiday_users_tmp RENAME TO llx_holiday_users;
|
||||||
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
CREATE TABLE llx_holiday_users
|
CREATE TABLE llx_holiday_users
|
||||||
(
|
(
|
||||||
|
rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||||
fk_user integer NOT NULL,
|
fk_user integer NOT NULL,
|
||||||
fk_type integer NOT NULL,
|
fk_type integer NOT NULL,
|
||||||
nb_holiday real NOT NULL DEFAULT '0'
|
nb_holiday real NOT NULL DEFAULT '0'
|
||||||
)
|
) ENGINE=innodb;
|
||||||
ENGINE=innodb;
|
|
||||||
Loading…
Reference in New Issue
Block a user