diff --git a/README.md b/README.md index a269648..23bac63 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,6 @@ Basic Ordering Package for Laravel 5+ composer require trexology/laravel-order:2.* -# Upgrade Guide -• This package uses [VentureCraft/revisionable](https://github.com/VentureCraft/revisionable/) to track order changes - -• Remove the old migration file '2015_12_02_150448_create_orderLogs_table.php' - -• Column `line_item_id` in `Orderitems` table has been changed from integer to string for greater flexibility (version 1 user have to change the column type manually) - After installation,go to `config/app.php` under `providers` section to add the following: Trexology\LaravelOrder\LaravelOrderServiceProvider::class @@ -26,7 +19,6 @@ and under "aliases" add: publish the migration and config files with the commands: php artisan vendor:publish - php artisan migrate --path=vendor/venturecraft/revisionable/src/migrations Edit additional settings at `config/order.php` @@ -49,6 +41,13 @@ Edit additional settings at `config/order.php` ]; ``` +# Upgrade Guide from 1.* +• This package uses [VentureCraft/revisionable](https://github.com/VentureCraft/revisionable/) to track order changes + +• Remove the old migration file '2015_12_02_150448_create_orderLogs_table.php' + +• Column `line_item_id` in `Orderitems` table has been changed from integer to string for greater flexibility (version 1 user have to change the column type manually) + # Usage ## Create a new order diff --git a/migrations/2015_07_25_101746_create_orders_table.php b/migrations/2015_07_25_101746_create_orders_table.php index 8020cb9..46e4507 100644 --- a/migrations/2015_07_25_101746_create_orders_table.php +++ b/migrations/2015_07_25_101746_create_orders_table.php @@ -2,6 +2,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; +use Illuminate\Support\Facades\Artisan; class CreateOrdersTable extends Migration { @@ -12,6 +13,8 @@ class CreateOrdersTable extends Migration { */ public function up() { + Artisan::call('migrate', ["--force"=> true, "--path"=> "vendor/venturecraft/revisionable/src/migrations" ]); + Schema::create('orders', function(Blueprint $table) { $table->increments('id');