salix/db/versions/.archive/10352-maroonHydrangea/00-firstScript.sql

3 lines
347 B
SQL

ALTER TABLE vn.entry CHANGE `ref` invoiceNumber varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL NULL;
ALTER TABLE vn.entry ADD reference varchar(50) NULL COMMENT 'Referencia para eti';
ALTER TABLE vn.entry ADD ref VARCHAR(50) GENERATED ALWAYS AS (invoiceNumber) VIRTUAL COMMENT 'Columna virtual provisional para Salix';