mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
_db_add_field() calls table_by_key - so avoid calling it twice ...
This commit is contained in:
1 parent
17e347de7f
commit
0f09b8c176
1 file changed
+1
-2
+1
-2
@@ -1686,8 +1686,7 @@ function upgrade_1836_mysql() {
|
||||
|
||||
function upgrade_1837() {
|
||||
# alternative contact means to reset a forgotten password
|
||||
foreach(array('admin', 'mailbox') as $table_to_change) {
|
||||
$table = table_by_key($table_to_change);
|
||||
foreach(array('admin', 'mailbox') as $table) {
|
||||
_db_add_field($table, 'phone', "varchar(30) {UTF-8} NOT NULL DEFAULT ''", 'active');
|
||||
_db_add_field($table, 'email_other', "varchar(255) {UTF-8} NOT NULL DEFAULT ''", 'phone');
|
||||
_db_add_field($table, 'token', "varchar(255) {UTF-8} NOT NULL DEFAULT ''", 'email_other');
|
||||
|
||||
Reference in new issue
Block a user