@@ -559,6 +559,9 @@ However, there are some conditions that must be met:
559559Configure DatabaseHandler
560560-------------------------
561561
562+ Setting Table Name
563+ ^^^^^^^^^^^^^^^^^^
564+
562565In order to use the 'DatabaseHandler' session driver, you must also create this
563566table that we already mentioned and then set it as your
564567``$savePath `` value.
@@ -567,6 +570,9 @@ you would do this:
567570
568571.. literalinclude :: sessions/039.php
569572
573+ Creating Database Table
574+ ^^^^^^^^^^^^^^^^^^^^^^^
575+
570576And then of course, create the database table ...
571577
572578For MySQL::
@@ -594,6 +600,9 @@ For PostgreSQL::
594600 and the session ID and a delimiter. It should be increased as needed, for example,
595601 when using long session IDs.
596602
603+ Adding Primary Key
604+ ^^^^^^^^^^^^^^^^^^
605+
597606You will also need to add a PRIMARY KEY **depending on your $matchIP
598607setting **. The examples below work both on MySQL and PostgreSQL::
599608
@@ -611,6 +620,9 @@ You can choose the Database group to use by adding a new line to the
611620
612621.. literalinclude :: sessions/040.php
613622
623+ Setting Up Database Table with Command
624+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
625+
614626If you'd rather not do all of this by hand, you can use the ``make:migration --session `` command
615627from the cli to generate a migration file for you::
616628
0 commit comments