| @@ 7-22 (lines=16) @@ | ||
| 4 | use October\Rain\Database\Schema\Blueprint; |
|
| 5 | use October\Rain\Database\Updates\Migration; |
|
| 6 | ||
| 7 | class CreateCartsTable extends Migration |
|
| 8 | { |
|
| 9 | public function up() |
|
| 10 | { |
|
| 11 | Schema::create('bedard_shop_carts', function(Blueprint $table) { |
|
| 12 | $table->engine = 'InnoDB'; |
|
| 13 | $table->increments('id'); |
|
| 14 | $table->timestamps(); |
|
| 15 | }); |
|
| 16 | } |
|
| 17 | ||
| 18 | public function down() |
|
| 19 | { |
|
| 20 | Schema::dropIfExists('bedard_shop_carts'); |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 7-22 (lines=16) @@ | ||
| 4 | use October\Rain\Database\Schema\Blueprint; |
|
| 5 | use October\Rain\Database\Updates\Migration; |
|
| 6 | ||
| 7 | class CreateOrdersTable extends Migration |
|
| 8 | { |
|
| 9 | public function up() |
|
| 10 | { |
|
| 11 | Schema::create('bedard_shop_orders', function (Blueprint $table) { |
|
| 12 | $table->engine = 'InnoDB'; |
|
| 13 | $table->increments('id'); |
|
| 14 | $table->timestamps(); |
|
| 15 | }); |
|
| 16 | } |
|
| 17 | ||
| 18 | public function down() |
|
| 19 | { |
|
| 20 | Schema::dropIfExists('bedard_shop_orders'); |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||