Fix size of field
This commit is contained in:
parent
e5249391f0
commit
f3ddd7f60a
2 changed files with 5 additions and 1 deletions
|
|
@ -394,7 +394,11 @@ ALTER TABLE llx_facture_rec ADD COLUMN fk_societe_rib integer DEFAULT NULL;
|
|||
ALTER TABLE llx_facture ADD COLUMN is_also_delivery_note tinyint DEFAULT 0 NOT NULL;
|
||||
ALTER TABLE llx_user MODIFY COLUMN signature LONGTEXT;
|
||||
|
||||
|
||||
ALTER TABLE llx_societe_rib MODIFY COLUMN label varchar(180); -- 200 is too long to allow index after
|
||||
|
||||
-- Add entity field
|
||||
ALTER TABLE llx_societe_rib DROP INDEX uk_societe_rib;
|
||||
ALTER TABLE llx_societe_rib ADD COLUMN entity integer DEFAULT 1 NOT NULL AFTER rowid;
|
||||
-- select entity, label, fk_soc, MIN(rowid), MAX(rowid), COUNT(rowid) from llx_societe_rib GROUP BY entity, label, fk_soc HAVING COUNT(rowid) > 1;
|
||||
ALTER TABLE llx_societe_rib ADD UNIQUE INDEX uk_societe_rib(entity, label, fk_soc);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ create table llx_societe_rib
|
|||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
||||
type varchar(32) DEFAULT 'ban' NOT NULL, -- 'ban' or 'paypal' or 'card' or 'stripe'
|
||||
label varchar(200),
|
||||
label varchar(180),
|
||||
fk_soc integer NOT NULL,
|
||||
datec datetime,
|
||||
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
|
|
|
|||
Loading…
Reference in a new issue