From 1eb1cdd2faedbfe1bcf47aa7a7f2d11510d10a42 Mon Sep 17 00:00:00 2001 From: tracer Date: Sun, 23 Jan 2022 19:20:34 +0100 Subject: [PATCH] set autoincrement to 1 Signed-off-by: tracer --- bindAPI/src/Controller/DatabaseConnection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindAPI/src/Controller/DatabaseConnection.php b/bindAPI/src/Controller/DatabaseConnection.php index cffb748..fd3c3a8 100644 --- a/bindAPI/src/Controller/DatabaseConnection.php +++ b/bindAPI/src/Controller/DatabaseConnection.php @@ -43,7 +43,7 @@ class DatabaseConnection `api_token_prefix` varchar(13) COLLATE utf8mb4_unicode_ci NOT NULL, `api_token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`) - ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; + ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; $statement = $this->dbConnection->prepare($sql); $statement->execute(); @@ -54,7 +54,7 @@ class DatabaseConnection `a` varbinary(255) DEFAULT NULL, `aaaa` varbinary(255) DEFAULT NULL, PRIMARY KEY (`id`) - ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; + ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; $statement = $this->dbConnection->prepare($sql); $statement->execute(); @@ -66,7 +66,7 @@ class DatabaseConnection `aaaa` varbinary(255) DEFAULT NULL, `apikey` varbinary(255) DEFAULT NULL, PRIMARY KEY (`id`) - ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; + ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; $statement = $this->dbConnection->prepare($sql); $statement->execute();