Code Duplication    Length = 7-7 lines in 2 locations

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

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

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
$upg = new Upgrade_259();