Skip to content
Snippets Groups Projects
Unverified Commit 8d1b68ab authored by Martin Krisell's avatar Martin Krisell Committed by GitHub
Browse files

Fix SQLServer ALTER syntax (#1380)

parent 742bed03
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,11 @@ class LogoutStore ...@@ -42,6 +42,11 @@ class LogoutStore
'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _expire TYPE TIMESTAMP' 'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _expire TYPE TIMESTAMP'
]; ];
break; break;
case 'sqlsrv':
$update = [
'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _expire DATETIME NOT NULL'
];
break;
case 'sqlite': case 'sqlite':
/** /**
* Because SQLite does not support field alterations, the approach is to: * Because SQLite does not support field alterations, the approach is to:
...@@ -119,6 +124,11 @@ class LogoutStore ...@@ -119,6 +124,11 @@ class LogoutStore
'ALTER TABLE ' . $store->prefix . 'ALTER TABLE ' . $store->prefix .
'_saml_LogoutStore ALTER COLUMN _authSource TYPE VARCHAR(255)']; '_saml_LogoutStore ALTER COLUMN _authSource TYPE VARCHAR(255)'];
break; break;
case 'sqlsrv':
$update = [
'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _authSource VARCHAR(255) NOT NULL'
];
break;
case 'sqlite': case 'sqlite':
/** /**
* Because SQLite does not support field alterations, the approach is to: * Because SQLite does not support field alterations, the approach is to:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment