diff options
author | Philip Häusler <msquare@notrademark.de> | 2012-12-12 22:11:46 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2012-12-12 22:11:46 +0100 |
commit | 518f8d0d586280de05d5b21417a9d61a94dd1c01 (patch) | |
tree | f5dbbc05f7ad6490dfe9586a5f3d4304ab537204 /db/update.d/19_password_field.php | |
parent | 572a986e480c5273742720f888010950a15be029 (diff) | |
parent | db95fe6485f13c0041bbafbb0004b171cd9122e7 (diff) |
Merge branch 'master' of https://vcs.wybt.net/engelsystem/git
Diffstat (limited to 'db/update.d/19_password_field.php')
-rw-r--r-- | db/update.d/19_password_field.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/update.d/19_password_field.php b/db/update.d/19_password_field.php new file mode 100644 index 00000000..85333f28 --- /dev/null +++ b/db/update.d/19_password_field.php @@ -0,0 +1,7 @@ +<?php +// make the Passwort column in the User table longer to store more advanced hashes with salts +$res = sql_select("DESCRIBE `User` `Passwort`"); +if ($res[0]['Type'] == 'varchar(40)') { + sql_query("ALTER TABLE `User` CHANGE `Passwort` `Passwort` VARCHAR(128) NULL"); + $applied = true; +} |