Skip to content

Commit 658c517

Browse files
committed
docs: add important note
1 parent eb41212 commit 658c517

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

user_guide_src/source/libraries/sessions.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,11 @@ setting**. The examples below work both on MySQL and PostgreSQL::
615615
// To drop a previously created primary key (use when changing the setting)
616616
ALTER TABLE ci_sessions DROP PRIMARY KEY;
617617

618+
.. important:: If you don't add the correct primary key, the following error
619+
may occur::
620+
621+
Uncaught mysqli_sql_exception: Duplicate entry 'ci_session:***' for key 'ci_sessions.PRIMARY'
622+
618623
You can choose the Database group to use by adding a new line to the
619624
**app/Config/Session.php** file with the name of the group to use:
620625

0 commit comments

Comments
 (0)