Vergleich install/resources/upgrade32.php - 1.8.4 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 39Zeile 39
		$db->drop_column("usergroups", "candeletereputations");
}


		$db->drop_column("usergroups", "candeletereputations");
}


	if($db->field_exists('2fasecret', 'adminoptions'))

	if($db->field_exists('authsecret', 'adminoptions'))

	{

	{

		$db->drop_column("adminoptions", "2fasecret");

		$db->drop_column("adminoptions", "authsecret");

	}

if($db->field_exists('recovery_codes', 'adminoptions'))

	}

if($db->field_exists('recovery_codes', 'adminoptions'))

Zeile 58Zeile 58
	{
case "pgsql":
$db->add_column("usergroups", "candeletereputations", "smallint NOT NULL default '0' AFTER cangivereputations");

	{
case "pgsql":
$db->add_column("usergroups", "candeletereputations", "smallint NOT NULL default '0' AFTER cangivereputations");

			$db->add_column("adminoptions", "2fasecret", "varchar(16) NOT NULL default ''");

			$db->add_column("adminoptions", "authsecret", "varchar(16) NOT NULL default ''");

			$db->add_column("adminoptions", "recovery_codes", "varchar(177) NOT NULL default ''");
$db->add_column("adminsessions", "authenticated", "smallint NOT NULL default '0'");
break;
case "sqlite":
$db->add_column("usergroups", "candeletereputations", "tinyint(1) NOT NULL default '0'");

			$db->add_column("adminoptions", "recovery_codes", "varchar(177) NOT NULL default ''");
$db->add_column("adminsessions", "authenticated", "smallint NOT NULL default '0'");
break;
case "sqlite":
$db->add_column("usergroups", "candeletereputations", "tinyint(1) NOT NULL default '0'");

			$db->add_column("adminoptions", "2fasecret", "varchar(16) NOT NULL default ''");

			$db->add_column("adminoptions", "authsecret", "varchar(16) NOT NULL default ''");

			$db->add_column("adminoptions", "recovery_codes", "varchar(177) NOT NULL default ''");
$db->add_column("adminsessions", "authenticated", "tinyint(1) NOT NULL default '0'");
break;
default:
$db->add_column("usergroups", "candeletereputations", "tinyint(1) NOT NULL default '0' AFTER cangivereputations");

			$db->add_column("adminoptions", "recovery_codes", "varchar(177) NOT NULL default ''");
$db->add_column("adminsessions", "authenticated", "tinyint(1) NOT NULL default '0'");
break;
default:
$db->add_column("usergroups", "candeletereputations", "tinyint(1) NOT NULL default '0' AFTER cangivereputations");

			$db->add_column("adminoptions", "2fasecret", "varchar(16) NOT NULL default ''");

			$db->add_column("adminoptions", "authsecret", "varchar(16) NOT NULL default ''");

			$db->add_column("adminoptions", "recovery_codes", "varchar(177) NOT NULL default ''");
$db->add_column("adminsessions", "authenticated", "tinyint(1) NOT NULL default '0'");
break;

			$db->add_column("adminoptions", "recovery_codes", "varchar(177) NOT NULL default ''");
$db->add_column("adminsessions", "authenticated", "tinyint(1) NOT NULL default '0'");
break;