8000 Merge pull request #763 from mbadolato/patch-1 · GromNaN/symfony-docs@7d0deae · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d0deae

Browse files
committed
Merge pull request symfony#763 from mbadolato/patch-1
Remove redundant UNIQUE CONSTRAINTS definition on PRIMARY KEY fields for MySQL and PostgreSQL examples
2 parents f5744aa + 28bd964 commit 7d0deae

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cookbook/configuration/pdo_session_storage.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ following (MySQL):
167167
`session_value` text NOT NULL,
168168
`session_time` int(11) NOT NULL,
169169
PRIMARY KEY (`session_id`),
170-
UNIQUE KEY `session_id_idx` (`session_id`)
171170
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
172171
173172
PostgreSQL
@@ -182,5 +181,4 @@ For PostgreSQL, the statement should look like this:
182181
session_value text NOT NULL,
183182
session_time integer NOT NULL,
184183
CONSTRAINT session_pkey PRIMARY KEY (session_id),
185-
CONSTRAINT session_session_id_key UNIQUE (session_id)
186184
);

0 commit comments

Comments
 (0)
0