Merge pull request '4049-hotFix_changesWithReferenceTable' (#984) from 4049-hotFix_changesWithReferenceTable into master
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
gitea/salix/pipeline/head Something is wrong with the build of this commit
Details
Reviewed-on: #984
This commit is contained in:
commit
2ec03a5b99
|
@ -1,14 +0,0 @@
|
||||||
create table `vn`.`invoiceOut_queue`
|
|
||||||
(
|
|
||||||
invoiceFk int(10) unsigned not null,
|
|
||||||
queued datetime default now() not null,
|
|
||||||
printed datetime null,
|
|
||||||
`status` VARCHAR(50) default '' null,
|
|
||||||
constraint invoiceOut_queue_pk
|
|
||||||
primary key (invoiceFk),
|
|
||||||
constraint invoiceOut_queue_invoiceOut_id_fk
|
|
||||||
foreign key (invoiceFk) references invoiceOut (id)
|
|
||||||
on update cascade on delete cascade
|
|
||||||
)
|
|
||||||
comment 'Queue for PDF invoicing';
|
|
||||||
|
|
|
@ -3,8 +3,8 @@ CREATE TABLE `vn`.`clientUnpaid` (
|
||||||
`dated` date NOT NULL,
|
`dated` date NOT NULL,
|
||||||
`amount` double DEFAULT 0,
|
`amount` double DEFAULT 0,
|
||||||
PRIMARY KEY (`clientFk`),
|
PRIMARY KEY (`clientFk`),
|
||||||
CONSTRAINT `clientUnpaid_clientFk` FOREIGN KEY (`clientFk`) REFERENCES `client` (`id`) ON UPDATE CASCADE
|
CONSTRAINT `clientUnpaid_clientFk` FOREIGN KEY (`clientFk`) REFERENCES `vn`.`client` (`id`) ON UPDATE CASCADE
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
INSERT INTO `salix`.`ACL` (`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
||||||
VALUES('ClientUnpaid', '*', '*', 'ALLOW', 'ROLE', 'administrative');
|
VALUES('ClientUnpaid', '*', '*', 'ALLOW', 'ROLE', 'administrative');
|
|
@ -0,0 +1,8 @@
|
||||||
|
CREATE TABLE `vn`.`invoiceOut_queue` (
|
||||||
|
`invoiceFk` int(10) unsigned not null,
|
||||||
|
`queued` datetime default now() not null,
|
||||||
|
`printed` datetime null,
|
||||||
|
`status` VARCHAR(50) DEFAULT '' NULL,
|
||||||
|
CONSTRAINT `invoiceOut_queue_pk` PRIMARY KEY (`invoiceFk`),
|
||||||
|
CONSTRAINT `invoiceOut_queue_invoiceOut_id_fk` FOREIGN KEY (`invoiceFk`) REFERENCES `vn`.`invoiceOut` (`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
) comment 'Queue for PDF invoicing';
|
Loading…
Reference in New Issue