Skip to content

Commit

Permalink
docs: add session table change for upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis authored Sep 10, 2021
1 parent 831c693 commit de4c6ab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion user_guide_src/source/installation/upgrade_420.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#############################
Upgrading from 4.1.3 to 4.2.0
Upgrading from 4.1.4 to 4.2.0
#############################

**Changes for set() method in BaseBuilder and Model class**
Expand All @@ -10,3 +10,18 @@ and modified the ``set()`` method, then you need to change its definition from
``public function set($key, ?string $value = '', ?bool $escape = null)`` to
``public function set($key, $value = '', ?bool $escape = null)``.

**Session DatabaseHandler's database table change**

The types of the following columns in the session table have been changed for optimization.

- MySQL
- ``timestamp``
- PostgreSQL
- ``ip_address``
- ``timestamp``
- ``data``

Update the definition of the session table. See the :doc:`/libraries/sessions` for the new definition.

The change was introduced in v4.1.2. But due to `a bug <https://github.com/codeigniter4/CodeIgniter4/issues/4807>`_,
the DatabaseHandler Driver did not work properly.
1 change: 1 addition & 0 deletions user_guide_src/source/installation/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ upgrading from.
.. toctree::
:titlesonly:

Upgrading from 4.1.4 to 4.2.0 <upgrade_420>
Upgrading from 4.1.3 to 4.1.4 <upgrade_414>
Upgrading from 4.1.2 to 4.1.3 <upgrade_413>
Upgrading from 4.1.1 to 4.1.2 <upgrade_412>
Expand Down

0 comments on commit de4c6ab

Please sign in to comment.