diff --git a/lib/SimpleSAML/Store/SQL.php b/lib/SimpleSAML/Store/SQL.php index 5816ea21a70318c84d7f3674eaaae162b24dfc76..284b2b6143593a83d69250be644f95fd26ac51b7 100644 --- a/lib/SimpleSAML/Store/SQL.php +++ b/lib/SimpleSAML/Store/SQL.php @@ -152,7 +152,7 @@ class SQL extends Store // FOR MSSQL use EXEC sp_rename to rename a table (RENAME won't work) $this->driver === 'sqlsrv' ? 'EXEC sp_rename ' . $this->prefix . '_kvstore_new, ' . $this->prefix . '_kvstore' : - 'ALTER TABLE '. $this->prefix . '_kvstore_new RENAME TO ' . $this->prefix . '_kvstore' , + 'ALTER TABLE ' . $this->prefix . '_kvstore_new RENAME TO ' . $this->prefix . '_kvstore', $this->driver === 'sqlite' || $this->driver === 'sqlsrv' ? 'CREATE INDEX ' . $this->prefix . '_kvstore_expire ON ' . $this->prefix . '_kvstore (_expire)' : 'ALTER TABLE ' . $this->prefix . '_kvstore ADD INDEX ' . $this->prefix . '_kvstore_expire (_expire)'