phpBB

Code Changes

File: phpbb/db/migration/data/v30x/release_3_0_5_rc1.php

  Unmodified   Added   Modified   Removed
Line 13Line 13

namespace phpbb\db\migration\data\v30x;



namespace phpbb\db\migration\data\v30x;


class release_3_0_5_rc1 extends \phpbb\db\migration\migration



use phpbb\db\migration\container_aware_migration;

class release_3_0_5_rc1 extends container_aware_migration

{
public function effectively_installed()
{

{
public function effectively_installed()
{

Line 55Line 57

public function hash_old_passwords()
{


public function hash_old_passwords()
{

		global $phpbb_container;

$passwords_manager = $phpbb_container->get('passwords.manager');

		$passwords_manager = $this->container->get('passwords.manager');



		$sql = 'SELECT user_id, user_password
FROM ' . $this->table_prefix . 'users
WHERE user_pass_convert = 1';

		$sql = 'SELECT user_id, user_password
FROM ' . $this->table_prefix . 'users
WHERE user_pass_convert = 1';

Line 110Line 110
				// Select auth_option_ids... the largest id will be preserved
$sql = 'SELECT auth_option_id
FROM ' . ACL_OPTIONS_TABLE . "

				// Select auth_option_ids... the largest id will be preserved
$sql = 'SELECT auth_option_id
FROM ' . ACL_OPTIONS_TABLE . "

					WHERE auth_option = '" . $db->sql_escape($option) . "'

					WHERE auth_option = '" . $this->db->sql_escape($option) . "'

					ORDER BY auth_option_id DESC";
// sql_query_limit not possible here, due to bug in postgresql layer
$result = $this->db->sql_query($sql);

					ORDER BY auth_option_id DESC";
// sql_query_limit not possible here, due to bug in postgresql layer
$result = $this->db->sql_query($sql);