1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00
phorge-phorge/resources/sql/autopatches/20140115.auth.2.expires.sql

9 lines
296 B
MySQL
Raw Normal View History

ALTER TABLE {$NAMESPACE}_user.phabricator_session
ADD sessionExpires INT UNSIGNED NOT NULL;
UPDATE {$NAMESPACE}_user.phabricator_session
SET sessionExpires = UNIX_TIMESTAMP() + (60 * 60 * 24 * 30);
ALTER TABLE {$NAMESPACE}_user.phabricator_session
ADD KEY `key_expires` (sessionExpires);