Skip to content

Commit

Permalink
minor #4824 fix SQL: table names (e-moe)
Browse files Browse the repository at this point in the history
This PR was squashed before being merged into the 2.6 branch (closes #4824).

Discussion
----------

fix SQL: table names

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | Symfony 2.x
| Fixed tickets | #4794

Table name for sessions should be the same for all examples (see symfony config above with `sessions` table name)

Commits
-------

ecc18e2 fix SQL: table names
  • Loading branch information
wouterj committed Jan 16, 2015
2 parents f7d99dd + ecc18e2 commit 467c538
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbook/configuration/pdo_session_storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ a second array argument to ``PdoSessionHandler``:

The following things can be configured:

* ``db_table``: (default ``session``) The name of the session table in your
* ``db_table``: (default ``sessions``) The name of the session table in your
database;
* ``db_id_col``: (default ``sess_id``) The name of the id column in your
session table (VARCHAR(128));
Expand Down Expand Up @@ -229,7 +229,7 @@ following (MySQL):

.. code-block:: sql
CREATE TABLE `session` (
CREATE TABLE `sessions` (
`sess_id` VARBINARY(128) NOT NULL PRIMARY KEY,
`sess_data` BLOB NOT NULL,
`sess_time` INTEGER UNSIGNED NOT NULL,
Expand All @@ -243,7 +243,7 @@ For PostgreSQL, the statement should look like this:

.. code-block:: sql
CREATE TABLE session (
CREATE TABLE sessions (
sess_id VARCHAR(128) NOT NULL PRIMARY KEY,
sess_data BYTEA NOT NULL,
sess_time INTEGER NOT NULL,
Expand All @@ -257,7 +257,7 @@ For MSSQL, the statement might look like the following:

.. code-block:: sql
CREATE TABLE [dbo].[session](
CREATE TABLE [dbo].[sessions](
[sess_id] [nvarchar](255) NOT NULL,
[sess_data] [ntext] NOT NULL,
[sess_time] [int] NOT NULL,
Expand Down

0 comments on commit 467c538

Please sign in to comment.