This repository has been archived by the owner on May 14, 2024. It is now read-only.
Releases: sdispater/orator
Releases · sdispater/orator
0.9.0
Changed
ORM
- Removed
arrow
support for pendulum.
Connection
- Improved connectors.
Schema
- Makes the
use_current=True
the default fortimestamps()
.
Query
- Allow usage of qmark syntax for all backends.
- Made
QueryBuilder
return Collections. - Merging queries also merges columns.
- Made query builder results accessible by attributes.
DBAL
- Improved connectors and dbal to detect platform versions.
Collections
- Removed
Collection
code and uses backpack package instead.
Fixed
ORM
- Fixed the update of pivots.
- Fixed behavior for dates accessor.
- Fixed connection not being properly set when specifying the connection with
on()
Commands
- Made the
-P/--pretend
command option work.
Schema
- Fixed schema grammars.
- Fixed an error when modify a table with an enum column in MySQL.
DBAL
- Fixed behavior for enum columns.
0.8.2
Fixes
ORM
- Fixing a possible
Memory Error: stack overflow
error when accessing relations. - Fixing builder copying process to avoir issues with
PyMySQL
(thanks to ihumanable).
Commands
- Fixing the
-n/--no-interaction
option not automatically confirming questions. - Removing the check character in migration commands output to avoid errors on Windows.
Connection
- Updating connectors to raise an exception when backend packages are missing.
- Adding standard name resolution to the
purge
method (thanks to ihumanable).
DBAL
- Fixing setting foreign key constraint name for MySQL.
- Handling missing
constraint_name
for sqlite (thanks to ihumanable).
0.8.1
Fixes
ORM
- Removing call to
Model._boot_columns()
to avoid errors for column types not supported by the dbal.
Schema Builder
- Fixing
Blueprint.char()
method (thanks to ihumanable). - Fixing
Fluent
behavior.
Commands
- Fixing
orator
command not working on Windows. - Fixing
migrate:status
command not switching databases.
Connection
- Fixing a bug when calling
Connnection.disconnect()
after a reconnection when not using read/write connections. - Fixing
MySQLConnection.get_server_version()
method to be compatible withPyMySQL
(thanks to gdraynz).
0.8.0
Improvements
ORM
- #30 Support for default values
- #29 Supporting only one timetamp column on models
- #26 Adding support for extra conditions on relationships
- Adding
@scope
decorator to define query scopes. - Improving global scopes
Schema builder
- Adding support for a
use_current()
on timestamps - Improving dbal to support SQLite fully.
- Improving fluents
Query Builder
- #28 Making where_in() method accept Collection instances
Commands
- Adding a
make:model
command
Connection
- Using unicode by default for mysql and postgres.
- Improves how queries are run in
Connection
class
Collections
- Adds
flatten()
method toCollection
class
Fixes
ORM
- Fixes
Model.get_foreign_key()
method - Fixes soft deletes
- Avoid going through setattr method when setting timestamps
Schema Builder
- #33 [SQLite] Renaming or dropping columns loses NULL constraint
- #32 [SQLite] Renaming or dropping columns fails when columns' name is a keyword
- #31 [SQLite] Changing columns loses default column values.
Query Builder
- Fixes query grammar default columns value
Connection
- Fixing
Connection._try_again_if_caused_by_lost_connection()
not being called - Preventing default connection being set to None
- Fixing json type behavior for Postgres
Migrations
- Fixing migration stubs