From e82035606fad45d6a4df194b6b254d2d2252889b Mon Sep 17 00:00:00 2001 From: alexandre Date: Wed, 4 Jan 2023 11:31:09 +0100 Subject: [PATCH] refs #4984 autoincrement added --- db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql diff --git a/db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql b/db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql new file mode 100644 index 000000000..a28bf6e90 --- /dev/null +++ b/db/changes/230201/00-autoincrement_VnReport_VnPrinter.sql @@ -0,0 +1,4 @@ +SET FOREIGN_KEY_CHECKS = 0; +ALTER TABLE `vn`.`report` MODIFY COLUMN id tinyint(3) unsigned NOT NULL AUTO_INCREMENT; +ALTER TABLE `vn`.`printer` MODIFY COLUMN id tinyint(3) unsigned NOT NULL AUTO_INCREMENT; +SET FOREIGN_KEY_CHECKS = 1;