Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
58668a6e
Commit
58668a6e
authored
6 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
Update logoutstore table migration syntax for PostgreSQL
parent
adf1eb86
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/saml/lib/SP/LogoutStore.php
+10
-1
10 additions, 1 deletion
modules/saml/lib/SP/LogoutStore.php
with
10 additions
and
1 deletion
modules/saml/lib/SP/LogoutStore.php
+
10
−
1
View file @
58668a6e
...
...
@@ -22,7 +22,16 @@ class LogoutStore
return
;
}
elseif
(
$tableVer
===
1
)
{
/* TableVersion 2 increased the column size to 255 which is the maximum length of a FQDN. */
$query
=
'ALTER TABLE '
.
$store
->
prefix
.
'_saml_LogoutStore MODIFY _authSource VARCHAR(255) NOT NULL'
;
switch
(
$store
->
driver
)
{
case
'pgsql'
:
// This does not affect the NOT NULL constraint
$query
=
'ALTER TABLE '
.
$store
->
prefix
.
'_saml_LogoutStore ALTER COLUMN _authSource TYPE VARCHAR(255)'
;
break
;
default
:
$query
=
'ALTER TABLE '
.
$store
->
prefix
.
'_saml_LogoutStore MODIFY _authSource VARCHAR(255) NOT NULL'
;
break
;
}
try
{
$store
->
pdo
->
exec
(
$query
);
}
catch
(
\Exception
$e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment