11 lines
360 B
Plaintext
11 lines
360 B
Plaintext
|
|
ALTER TABLE `invoicebase`
|
||
|
|
ADD COLUMN `XRechnungStoredFileOid` BIGINT NULL DEFAULT NULL AFTER `StornoInvoiceBaseOid`,
|
||
|
|
ADD INDEX `FK_IN_SFILE_idx` (`XRechnungStoredFileOid` ASC) VISIBLE;
|
||
|
|
;
|
||
|
|
ALTER TABLE `invoicebase`
|
||
|
|
ADD CONSTRAINT `FK_IN_SFILE`
|
||
|
|
FOREIGN KEY (`XRechnungStoredFileOid`)
|
||
|
|
REFERENCES `storedfile` (`Oid`)
|
||
|
|
ON DELETE CASCADE
|
||
|
|
ON UPDATE CASCADE;
|