Skip to content

Commit

Permalink
Fix Broken DB Update was missing Primary Key declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyq committed Feb 22, 2024
1 parent 46344c9 commit 31184f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database_updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,8 @@

if (CURRENT_DATABASE_VERSION == '1.0.6') {
// Insert queries here required to update to DB version 1.0.7
mysqli_query($mysqli, "CREATE TABLE `remember_tokens` (`remember_token_id` int(11) NOT NULL AUTO_INCREMENT,`remember_token_token` varchar(255) NOT NULL,`remember_token_user_id` int(11) NOT NULL,`remember_token_created_at` datetime NOT NULL DEFAULT current_timestamp()");
mysqli_query($mysqli, "CREATE TABLE `remember_tokens` (`remember_token_id` int(11) NOT NULL AUTO_INCREMENT,`remember_token_token` varchar(255) NOT NULL,`remember_token_user_id` int(11) NOT NULL,`remember_token_created_at` datetime NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`remember_token_id`))");

// Then, update the database to the next sequential version
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.7'");
}
Expand Down

0 comments on commit 31184f0

Please sign in to comment.