summaryrefslogtreecommitdiff
path: root/db/update.d/19_password_field.php
blob: 85333f28b6b98180d91509f7d0eda52896979082 (plain)
1
2
3
4
5
6
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;
}