Skip to content

Commit

Permalink
Merge pull request #12 from KreativeKrise/fix-issue-10
Browse files Browse the repository at this point in the history
fix: add AUTO_INCREMENT for primary key
  • Loading branch information
sonikf authored Oct 22, 2024
2 parents 81c4910 + 5bc88b0 commit 85192c4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/triggers/interface_99_modCTPT_CTPTTriggers.class.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2022 Nick Fragoulis
* Copyright (C) 2022 Nikos Drosis <[email protected]>
* Copyright (C) 2024 Stefan Mayer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -230,7 +231,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf

$sql = "
CREATE TEMPORARY TABLE ".MAIN_DB_PREFIX."temp (
`id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`rowid` int(11),
`fk_soc` int(11),
`series` int(11),
Expand Down Expand Up @@ -268,7 +269,7 @@ public function runTrigger($action, $object, User $user, Translate $langs, Conf

$sql = "
CREATE TEMPORARY TABLE ".MAIN_DB_PREFIX."temp (
`id` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`rowid` int(11),
`fk_soc` int(11),
`series` int(11),
Expand Down

0 comments on commit 85192c4

Please sign in to comment.