Bug 24161: (follow-up) DB changes

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-05-02 15:28:23 +02:00 committed by Martin Renvoize
parent 1cf3f11bbd
commit e294eb1dd7
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 3 additions and 3 deletions

View File

@ -3274,9 +3274,9 @@ CREATE TABLE aqorders_transfers (
DROP TABLE IF EXISTS aqorders_claims;
CREATE TABLE aqorders_claims (
id int(11) AUTO_INCREMENT,
ordernumber INT(11) NOT NULL,
claimed_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
id int(11) AUTO_INCREMENT, -- ID of the claims
ordernumber INT(11) NOT NULL, -- order linked to this claim
claimed_on TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Date of the claims
PRIMARY KEY (id),
CONSTRAINT aqorders_claims_ibfk_1 FOREIGN KEY (ordernumber) REFERENCES aqorders (ordernumber) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci;