Releases: colopl/laravel-spanner
Releases · colopl/laravel-spanner
v8.0.0 (Laravel 11)
v7.2.0
What's Changed
- feature: INSERT OR UPDATE (upsert) support by @taka-oyama in #203
Full Changelog: v7.1.0...v7.2.0
v7.1.0
What's Changed
Changed
Schema\Builder::dropAllTables
returns immediately if no tables exist by @matthewjumpsoffbuildings (#193)- Performance enhancements for
DB::pretend
statements, no longer incurring the overhead of creating transactions by @matthewjumpsoffbuildings (#191) - Set the
$defaultMorphKeyType
inSchema\Builder
touuid
by @matthewjumpsoffbuildings (#192) - README now has a Recommened Setup section.
Fixed
Connection::escapeString
now properly escapes backslashes by @taka-oyama (#197)
Chores
partitionedDml
can be tested in emulator now by @taka-oyama (#187)
Full Changelog: v7.0.0...v7.1.0
v7.0.0
Added
json
mediumText
longText
char
support forSchema\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 typeSTRING(36)
withDEFAULT (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 togetIndexes()
andcompileIndexes()
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()
andConnection::runDdls()
has been removed. UseConnection::runDdlBatch()
instead. (#178) - [Breaking] Trait
ManagesStaleReads
has been removed (which containedcursorWithTimestampBound()
andselectWithTimestampBound()
. UseselectWithOptions()
instead). (#178) - [Breaking]
Blueprint::interleave()
andIndexDefinition::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
v6.1.2
v6.1.1
v6.1.0
v6.0.0
v6.0.0 (2023-11-22)
Added
- Add Data Boost support (#131)
- Deprecation warnings to
Connection
's methodscursorWithTimestampBound
selectWithTimestampBound
selectOneWithTimestampBound
. UsecursorWithOptions
selectWithOptions
instead. (#122) Connection
has new methodsselectWithOptions
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)