Skip to content

Commit

Permalink
Update devel-db-update.php
Browse files Browse the repository at this point in the history
This update includes the session table changes and user table changes for the new session class. Unfortantly these changes have to be applied manually since this script requires the user to be logged in to use it. and they obviously cannot be logged in until the table changes have happened
  • Loading branch information
eSilverStrike committed Aug 31, 2019
1 parent 172239d commit 7448624
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion public_html/admin/install/devel-db-update.php
Expand Up @@ -113,7 +113,16 @@ function update_DatabaseFor221()
`type`,
`subtype`,
`id`);
";
";

// Modify `sessions` table
$_SQL[] = "DELETE FROM {$_TABLES['sessions']}";
$_SQL[] = "ALTER TABLE {$_TABLES['sessions']} MODIFY `sess_id` VARCHAR(250) NOT NULL default ''";
$_SQL[] = "ALTER TABLE {$_TABLES['sessions']} DROP COLUMN `md5_sess_id`";
$_SQL[] = "ALTER TABLE {$_TABLES['sessions']} DROP COLUMN `topic`";

// Add `autologin_key` column to `users' table
$_SQL[] = "ALTER TABLE {$_TABLES['users']} ADD `autologin_key` VARCHAR(250) NOT NULL DEFAULT '' AFTER `twofactorauth_secret`";

// ***************************************
// Core Plugin Updates Here (including version update)
Expand Down

0 comments on commit 7448624

Please sign in to comment.