Actualizacuion de Rama Kquiroz
This commit is contained in:
@@ -86,22 +86,67 @@ class UpdateController extends Controller
|
||||
|
||||
public function step2()
|
||||
{
|
||||
if (get_setting('current_version') == '7.5.0') {
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
if (get_setting('current_version') == '7.8.0') {
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
if (get_setting('current_version') == '7.4.0') {
|
||||
if (get_setting('current_version') == '7.7.0') {
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '7.6.0') {
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '7.5.0') {
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '7.4.0') {
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
if (get_setting('current_version') == '7.3.0') {
|
||||
elseif (get_setting('current_version') == '7.3.0') {
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
@@ -111,9 +156,18 @@ class UpdateController extends Controller
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
if (get_setting('current_version') == '7.2.0') {
|
||||
elseif (get_setting('current_version') == '7.2.0') {
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
@@ -126,9 +180,18 @@ class UpdateController extends Controller
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
if (get_setting('current_version') == '7.1.0') {
|
||||
elseif (get_setting('current_version') == '7.1.0') {
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
@@ -144,9 +207,18 @@ class UpdateController extends Controller
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
if (get_setting('current_version') == '7.0.0') {
|
||||
elseif (get_setting('current_version') == '7.0.0') {
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
@@ -165,6 +237,15 @@ class UpdateController extends Controller
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.5.0') {
|
||||
@@ -189,593 +270,18 @@ class UpdateController extends Controller
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.4.0') {
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
$sql_path = base_path('sqlupdates/v770.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
$sql_path = base_path('sqlupdates/v780.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.3.3') {
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.3.2') {
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.3.1') {
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.3.0') {
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.2.0') {
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.1.5') {
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.1.4') {
|
||||
$sql_path = base_path('sqlupdates/v615.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.1.3') {
|
||||
$sql_path = base_path('sqlupdates/v614.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v615.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.1.2') {
|
||||
$sql_path = base_path('sqlupdates/v613.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v614.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v615.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.1.1') {
|
||||
$sql_path = base_path('sqlupdates/v612.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v613.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v614.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v615.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.1') {
|
||||
$sql_path = base_path('sqlupdates/v611.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v612.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v613.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v614.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v615.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
elseif (get_setting('current_version') == '6.0') {
|
||||
$sql_path = base_path('sqlupdates/v61.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v611.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v612.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v613.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v614.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v615.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v620.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v630.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v631.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v632.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v633.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v640.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v650.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v700.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v710.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v720.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v730.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v740.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v750.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
$sql_path = base_path('sqlupdates/v760.sql');
|
||||
$sql_path = base_path('sqlupdates/v790.sql');
|
||||
DB::unprepared(file_get_contents($sql_path));
|
||||
|
||||
return redirect()->route('update.step3');
|
||||
}
|
||||
|
||||
else {
|
||||
Artisan::call('view:clear');
|
||||
Artisan::call('cache:clear');
|
||||
@@ -792,11 +298,11 @@ class UpdateController extends Controller
|
||||
Artisan::call('view:clear');
|
||||
Artisan::call('cache:clear');
|
||||
|
||||
$this->setAdmnRole();
|
||||
$this->convertSellerIntoShop();
|
||||
$this->convertSellerIntoUser();
|
||||
$this->convertSellerPackageIntoShop();
|
||||
$this->convertTrasnalations();
|
||||
// $this->setAdmnRole();
|
||||
// $this->convertSellerIntoShop();
|
||||
// $this->convertSellerIntoUser();
|
||||
// $this->convertSellerPackageIntoShop();
|
||||
// $this->convertTrasnalations();
|
||||
// $this->convertColorsName();
|
||||
|
||||
$previousRouteServiceProvier = base_path('app/Providers/RouteServiceProvider.php');
|
||||
|
||||
Reference in New Issue
Block a user