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
'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _expire TYPE TIMESTAMP'
];
break;
case 'sqlsrv':
$update = [
'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _expire DATETIME NOT NULL'
];
break;
case 'sqlite':
/**
* Because SQLite does not support field alterations, the approach is to:
......@@ -119,6 +124,11 @@ class LogoutStore
'ALTER TABLE ' . $store->prefix .
'_saml_LogoutStore ALTER COLUMN _authSource TYPE VARCHAR(255)'];
break;
case 'sqlsrv':
$update = [
'ALTER TABLE ' . $store->prefix . '_saml_LogoutStore ALTER COLUMN _authSource VARCHAR(255) NOT NULL'
];
break;
case 'sqlite':
/**
* 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