PHP 8 Support Added
This commit is contained in:
parent
3141e28b01
commit
4cadfbc94d
|
|
@ -8,7 +8,7 @@
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.3",
|
"php": "^7.3|^8.0",
|
||||||
"algolia/algoliasearch-client-php": "^2.2",
|
"algolia/algoliasearch-client-php": "^2.2",
|
||||||
"astrotomic/laravel-translatable": "^11.0.0",
|
"astrotomic/laravel-translatable": "^11.0.0",
|
||||||
"aws/aws-sdk-php": "^3.171",
|
"aws/aws-sdk-php": "^3.171",
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
"facade/ignition": "^2.3.6",
|
"facade/ignition": "^2.3.6",
|
||||||
"fideloper/proxy": "^4.2",
|
"fideloper/proxy": "^4.2",
|
||||||
"flynsarmy/db-blade-compiler": "^5.5",
|
"flynsarmy/db-blade-compiler": "^5.5",
|
||||||
"fzaninotto/faker": "^1.4",
|
"fzaninotto/faker": "^1.9.1",
|
||||||
"guzzlehttp/guzzle": "^7.0.1",
|
"guzzlehttp/guzzle": "^7.0.1",
|
||||||
"intervention/image": "^2.4",
|
"intervention/image": "^2.4",
|
||||||
"intervention/imagecache": "^2.3",
|
"intervention/imagecache": "^2.3",
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
"tymon/jwt-auth": "^1.0.0"
|
"tymon/jwt-auth": "^1.0.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"codeception/codeception": "4.1.1",
|
"codeception/codeception": "^4.1.18",
|
||||||
"codeception/module-asserts": "^1.1",
|
"codeception/module-asserts": "^1.1",
|
||||||
"codeception/module-filesystem": "^1.0",
|
"codeception/module-filesystem": "^1.0",
|
||||||
"codeception/module-laravel5": "^1.0",
|
"codeception/module-laravel5": "^1.0",
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
"filp/whoops": "^2.0",
|
"filp/whoops": "^2.0",
|
||||||
"mockery/mockery": "^1.3.1",
|
"mockery/mockery": "^1.3.1",
|
||||||
"nunomaduro/collision": "^5.0",
|
"nunomaduro/collision": "^5.0",
|
||||||
"phpunit/phpunit": "9.0"
|
"phpunit/phpunit": "^9.3"
|
||||||
},
|
},
|
||||||
"replace": {
|
"replace": {
|
||||||
"bagisto/laravel-user": "v0.1.0",
|
"bagisto/laravel-user": "v0.1.0",
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,14 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Webkul\Sales\Models\Invoice;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
use Webkul\Sales\Models\Shipment;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
|
use Webkul\Sales\Models\OrderAddress;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
use Webkul\Checkout\Models\CartAddress;
|
use Webkul\Checkout\Models\CartAddress;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
use Webkul\Checkout\Models\CartShippingRate;
|
use Webkul\Checkout\Models\CartShippingRate;
|
||||||
use Webkul\Sales\Models\Invoice;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
use Webkul\Sales\Models\OrderAddress;
|
|
||||||
use Webkul\Sales\Models\Shipment;
|
|
||||||
|
|
||||||
class AddTableAddresses extends Migration
|
class AddTableAddresses extends Migration
|
||||||
{
|
{
|
||||||
|
|
@ -20,9 +20,6 @@ class AddTableAddresses extends Migration
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// transaction is important to prevent loosing data on failure
|
|
||||||
DB::beginTransaction();
|
|
||||||
|
|
||||||
Schema::create('addresses', function (Blueprint $table) {
|
Schema::create('addresses', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->string('address_type');
|
$table->string('address_type');
|
||||||
|
|
@ -70,10 +67,7 @@ class AddTableAddresses extends Migration
|
||||||
Schema::drop('order_address');
|
Schema::drop('order_address');
|
||||||
|
|
||||||
Schema::enableForeignKeyConstraints();
|
Schema::enableForeignKeyConstraints();
|
||||||
|
|
||||||
DB::commit();
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
DB::rollBack();
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -85,7 +79,7 @@ class AddTableAddresses extends Migration
|
||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
throw new Exception('you cannot revert this migration: data would be lost');
|
throw new Exception('You cannot revert this migration. Data would be lost.');
|
||||||
}
|
}
|
||||||
|
|
||||||
private function migrateCustomerAddresses(): void
|
private function migrateCustomerAddresses(): void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue