-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10910 from mrclay/10389_pw_salt
chore(schema): removes legacy salt/password columns
- Loading branch information
Showing
4 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
engine/lib/upgrades/2017041200-3.0.0-remove_old_pwd_cols-b65b19c86568068f.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Elgg 3.0.0 upgrade 2017041200 | ||
* | ||
* Removes old password/hash columns | ||
*/ | ||
|
||
$db = elgg()->getDb(); | ||
|
||
$db->updateData(" | ||
ALTER TABLE {$db->prefix}users_entity | ||
DROP KEY `password`, | ||
DROP COLUMN `password`, | ||
DROP COLUMN `salt` | ||
"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters