Skip to content

Releases: colopl/laravel-spanner

v8.0.0 (Laravel 11)

11 Apr 00:54
4caec32
Compare
Choose a tag to compare

What's Changed

Full Changelog: v7.2.0...v8.0.0

v7.2.0

27 Mar 03:02
23daae1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v7.1.0...v7.2.0

v7.1.0

11 Mar 01:38
a4870d9
Compare
Choose a tag to compare

What's Changed

Changed

Fixed

  • Connection::escapeString now properly escapes backslashes by @taka-oyama (#197)

Chores

Full Changelog: v7.0.0...v7.1.0

v7.0.0

21 Feb 06:35
Compare
Choose a tag to compare

Added

  • json mediumText longText char support for Schema\Builder (#155) (#158)
  • Schema\Grammar::compileDropForeign to allow dropping foreign key constraints (#163)
  • Schema\Builder::dropAllTables works properly, dropping foreign keys, indexes, then tables in order of interleaving (#161)
  • Support for inserting and selecting array of DateTime/Numeric objects (#168)
  • Allow pretending for DDL statements (#170)
  • Allow spanner_emulator.disable_query_null_filtered_index_check to be set (#180)
  • Allow default max transaction attempts to be changed (#179)
  • Table prefixing support (#172)
  • Support for GENERATE_UUID() in migrations (#174)
  • Support Schema\Blueprint::increments() by using a column of type STRING(36) with DEFAULT (GENERATE_UUID()) (#175)
  • Support for CREATE SEQUENCE in migrations (#181)

Changed

  • [Breaking] Timestamps no longer respect the date format specified in Grammar (#168)
  • Query\Builder::lock() no longer throw an error and will be ignored instead (#156)
  • Schema\Builder::getIndexListing() Schema\Grammar::compileIndexListing() converted to getIndexes() and compileIndexes() to align with standard Laravel methods (#161)
  • Missing primary key will no longer be checked and will be checked on the server side instead (#177)
  • [Breaking] Connection::runDdl() and Connection::runDdls() has been removed. Use Connection::runDdlBatch() instead. (#178)
  • [Breaking] Trait ManagesStaleReads has been removed (which contained cursorWithTimestampBound() and selectWithTimestampBound(). Use selectWithOptions() instead). (#178)
  • [Breaking] Blueprint::interleave() and IndexDefinition::interleave() now throw an error instead of a deprecation. (#178)
  • [Breaking] Connection::transaction()'s $attempts argument's default value was changed from 10 to -1 (which is a magic number for default value which is 11) (#179)
  • [Breaking] All upper case functions and casting DATE TIMESTAMP CURRENT_TIMESTAMP() has been changed to lower case for consistency. (#182)

Fixed

  • Schema\Grammar::compileAdd() Schema\Grammar::compileChange() now create separate statements (#159)
  • Connection::runDdlBatch() with empty statement now return an empty array instead of throwing an error (#169)

v6.1.2

23 Jan 08:30
Compare
Choose a tag to compare

Fixed

  • fixed an error when rolling back a transaction that did not execute begin (#166)

v6.1.1

11 Dec 04:52
ab974df
Compare
Choose a tag to compare

Fixed

Bug where auth and session pool writing to the same file may cause race condition (#152)

v6.1.0

29 Nov 08:08
c2782e4
Compare
Choose a tag to compare

Added

Fixed

  • Match internals so that it lines up with laravel 10.34.0. (#150)

v6.0.0

22 Nov 02:24
Compare
Choose a tag to compare

v6.0.0 (2023-11-22)

Added

  • Add Data Boost support (#131)
  • Deprecation warnings to Connection's methods cursorWithTimestampBound selectWithTimestampBound selectOneWithTimestampBound. Use cursorWithOptions selectWithOptions instead. (#122)
  • Connection has new methods selectWithOptions cursorWithOptions which allows spanner specific options to be set for each query. (#122)
  • session:list command can now show and filter by labels. (#134)
  • Allow custom cache path (#142)

Changed

  • [Breaking] Match Query\Builder::forceIndex() behavior with laravel's (forceIndex property no longer exists). (#114)
  • [Breaking] SessionNotFoundErrorMode was removed and will always run clear session pool. (#132) (#130)
  • [Breaking] Auth cache and Session pool now share the same file cache adapter (#139)

v5.3.0

17 Nov 03:21
Compare
Choose a tag to compare

Fixed

  • Explicitly stage/clear transaction on commit to correctly run afterCommit jobs in Laravel >= v10.32.0 (#144)

v5.2.2

22 Aug 06:27
9bbc8c0
Compare
Choose a tag to compare

Fixed

  • Fixed a case where queries were not being retried on "Session Not Found" errors when session pool is undefined (#129)