Skip to content

Commit b31db9a

Browse files
authored
Merge pull request #59 from bavix/pg11
fix pg11
2 parents 2ba47a8 + 2a37998 commit b31db9a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

changelog.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [3.0.4] - 2019-07-22
10+
### Fixed
11+
- fixed PostgresSQL 11
12+
913
## [3.0.3] - 2019-07-06
1014
### Fixed
11-
- Fixed creating a wallet with default slug. # 57 @kak2z7702
15+
- Fixed creating a wallet with default slug. #57 @kak2z7702
1216

1317
## [3.0.2] - 2019-06-18
1418
### Added
@@ -309,7 +313,8 @@ The operation is now executed in the transaction and updates the new `refund` fi
309313
- Exceptions: AmountInvalid, BalanceIsEmpty.
310314
- Models: Transfer, Transaction.
311315

312-
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/3.0.3...HEAD
316+
[Unreleased]: https://github.com/bavix/laravel-wallet/compare/3.0.4...HEAD
317+
[3.0.4]: https://github.com/bavix/laravel-wallet/compare/3.0.3...3.0.4
313318
[3.0.3]: https://github.com/bavix/laravel-wallet/compare/3.0.2...3.0.3
314319
[3.0.2]: https://github.com/bavix/laravel-wallet/compare/3.0.1...3.0.2
315320
[3.0.1]: https://github.com/bavix/laravel-wallet/compare/3.0.0...3.0.1

database/migrations_v1/2018_11_06_222923_create_transactions_table.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
use Bavix\Wallet\Models\Transaction;
44
use Illuminate\Database\Migrations\Migration;
55
use Illuminate\Database\MySqlConnection;
6+
use Illuminate\Database\PostgresConnection;
67
use Illuminate\Database\Schema\Blueprint;
78
use Illuminate\Support\Facades\DB;
89
use Illuminate\Support\Facades\Schema;
9-
use Illuminate\Database\Schema\ColumnDefinition;
10+
use Illuminate\Support\Fluent as ColumnDefinition;
1011

1112
class CreateTransactionsTable extends Migration
1213
{
@@ -40,7 +41,7 @@ public function up(): void
4041
public function json(Blueprint $table, string $column): ColumnDefinition
4142
{
4243
$conn = DB::connection();
43-
if ($conn instanceof MySqlConnection) {
44+
if ($conn instanceof MySqlConnection || $conn instanceof PostgresConnection) {
4445
$pdo = $conn->getPdo();
4546
try {
4647
$sql = 'SELECT JSON_EXTRACT(\'[10, 20, [30, 40]]\', \'$[1]\');';

0 commit comments

Comments
 (0)