Code Duplication    Length = 7-7 lines in 2 locations

upgrade/upd-2.5.8-to-2.5.9/index.php 1 location

@@ 85-91 (lines=7) @@
82
     *
83
     * @return bool
84
     */
85
    public function apply_sess_id()
86
    {
87
        $migrate = new Tables();
88
        $migrate->useTable('session');
89
        $migrate->alterColumn('session', 'sess_id', "varchar(256) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL DEFAULT ''");
90
        return $migrate->executeQueue(true);
91
    }
92
93
    /**
94
     * Copy a configuration file from template, then rewrite with actual configuration values

upgrade/upd-2.5.7-to-2.5.8/index.php 1 location

@@ 136-142 (lines=7) @@
133
    /**
134
     * @return bool
135
     */
136
    public function apply_sess_ip()
137
    {
138
        $migrate = new Tables();
139
        $migrate->useTable('session');
140
        $migrate->alterColumn('session', 'sess_ip', "varchar(45) NOT NULL DEFAULT ''");
141
        return $migrate->executeQueue(true);
142
    }
143
144
    /**
145
     * Expand online IP address column varchar(45) to accommodate IPV6