Releases: adonisjs/lucid
Bug fixes and update dependencies
- chore: update dependencies a6f290d
- feat(errors): use new way to define exceptions (#966) 123b275
- fix(configure): add missing luxon install (#964) 492f476
- fix(datetime): check equalities properly (#959) a66f901
- fix(migrator): set primary key for schema_versions table (#957) 62e5b5e
- fix(types): allow belongs to and has one to be null (#958) a014c21
What's Changed
- fix(types): allow belongs to and has one to be null by @RomainLanz in #958
- fix(migrator): set primary key for schema_versions table by @RomainLanz in #957
- fix(datetime): check equalities properly by @RomainLanz in #959
- fix(configure): add missing luxon install by @RomainLanz in #964
- feat(errors): use new way to define exceptions by @RomainLanz in #966
Full Changelog: v19.0.0-2...v19.0.0-3
Change default env variable values
- fix(configure): change localhost to 127.0.0.1 0417d84
Full Changelog: v18.4.1...v18.4.2
Relations can now be nullable
What's Changed
- Enhancement: Nullable 1-1 Relations by @the-mediocre-dev in #944
- test(component): fix references to missing types upon compiling in tests by @pokedpeter in #951
New Contributors
- @the-mediocre-dev made their first contribution in #944
- @pokedpeter made their first contribution in #951
Full Changelog: v18.4.0...v18.4.1
Correct types path & definition of the $adapter property
What's Changed
- fix: correct path for exporting types by @RomainLanz in #955
- fix(provider): properly define the adapter for the base model by @RomainLanz in #956
- fix(configure): add commands to the rc file by @RomainLanz in #954
Full Changelog: v19.0.0-1...v19.0.0-2
Remove IoC container dependency and some bug fixes
- test: fix breaking test 2cc1460
- feat: add BaseModel.useAdapter method to define an adapter for the model 498572f
- feat: add method to create a model adapter from database service 1f6cf33
- refactor: remove container dependency 054554f
- fix: bug fixes from the last release e4bd887
Full Changelog: v19.0.0-0...v19.0.0-1
Migrate to work with AdonisJS v6 core
This release updates the Lucid codebase to work with AdonisJS v6. There are minor breaking changes in the API of the ORM, alongside the ESM migration.
Breaking changes
- The package is ESM only.
- The
@ioc
style import paths have been removed in favor of standard imports. The final AdonisJS migration guide will contain the new import paths. - The deprecated
developmentOnly
flag has been removed from seeders. Useenvironment
property instead. - Rename
table
CLI flag inmake:migration
command toalter
. - The
alter
andcreate
CLI flags inmake:migration
command now accept boolean values and act as an action.
That is all!
Commits
- chore: update dependencies and peer dependencies c9d28af
- docs: update README 98d74e9
- ci: update typecheck job's command e50c45d
- fix: path for sqlite and mssql db password f41bd17
- fix: env variables 25d6e87
- ci: fix env vars cabefba
- ci: fix env vars 9472db9
- feat: add configure instructions 1417942
- test: fix breaking tests 3a219a6
- refactor: remove test utils and validator bindings for now 49b33b6
- refactor: migrate commands 50b098b
- refactor: migrate factories codebase 2ecaac6
- refactor: relationships module 7af92d9
- feat: migrate orm BaseModel 532b9cb
- refactor: migrate seeders module 887f5f1
- refactor: migrate migrations module 26c7466
- refactor: migrate schema module c523cc2
- refactor: migrate connection and db modules 145ee86
Full Changelog: v18.4.0...v19.0.0-0
Add support for disabling locks during migrations
- docs(README): update github actions badge url 5562cef
- chore: update knex-dynamic-connection package version 0e51132
- ci: not running mssql tests on node 14 as tedious does not support it ecb7d77
- style: format source code 92f0de6
- chore: update dependencies f59ef9e
- refactor: update disable-locks flag description 05f28e4
- feat: add disable-locks flag (#932) 9bf8f24
- Use import type for importing type (#922) 8955b12
What's Changed
- Use import type for importing type by @shahshahid81 in #922
- feat: add disable-locks flag by @Reptiluka in #932
New Contributors
- @shahshahid81 made their first contribution in #922
- @Reptiluka made their first contribution in #932
Full Changelog: v18.3.0...v18.4.0
Add truncating test util
Documentation - https://docs.adonisjs.com/guides/testing/introduction#truncate-database-after-each-run-cycle
Commits
- chore: use typescript 4.8 1db0c74
- chore: use typescript 4.8 a5f03b6
- chore(package): update dependencies 55799a5
- Add
db:truncate
command with TestUtils helper (#889) 215631e - test: remove pin from test 6afea22
- chore: update dependencies 72d869d
PR's
- Add
db:truncate
command with TestUtils helper by @Julien-R44 in #889
Full Changelog: v18.2.0...v18.3.0
Allow ignoring tables when running db:wipe command
A database might have certain tables not controlled/managed by AdonisJS migrations, therefore you would not want them to the dropped during the db:wipe
command. The wipe.ignoreTables
config property allows you to define an array of tables to ignore
Commits
- refactor: install mysql2 driver for mysql database ba74a38
- feat: add
wipe.ignoreTables
config (#881) af78689 - chore: revert commits related to #847 8c92165
- fix: when ignoredTables is empty ed1596a
- feat: implement ignoreTables for mssql 258a40c
- feat: implement ignoreTables for sqlite 396cb88
- refactor: move
dontDrop
property towipe.ignoreTables
in SharedConfigNode bbe2335 - test: drop table that cause test to fails bad682c
- feat: add a "dontDrop" property in shared config to define tables not to be dropped, close #820 0e5df7e
PRs
- feat: add
wipe.ignoreTables
config by @Julien-R44 in #881
Full Changelog: v18.1.1...v18.2.0
Bug fixes and suggest mysql2 driver for MYSQL database
Commits
- fix: allow paginate to work with distinct a315cb1
- ci: disable cache 1e269d5
- refactor: new ci pipeline (#878) 5a29d97
- chore: update dependencies (#876) a769c7f
- fix: add missing
connectString
option to oracle config cbc5d2e - chore: remove mysql package in favor of mysql2 5563558
- refactor: update
mysql
client tomysql2
(#871) 4d7498d - test(seeds): new environment config (#851) 11ae8b6
- test: increase docker wait-for-it timeout time 170f2a8
- test: fix breaking tests 9a60707
- test: fix breaking test f65bdac
- fix: typings for query scope params 352aac0
- test: use mysql2 for tests 9864499
- refactor: turn off force update after first save call cee70d4
What's Changed
- test(seeds): new environment config by @RomainLanz in #851
- refactor: update
mysql
client tomysql2
by @McSneaky in #871 - chore: update dependencies by @targos in #876
- refactor: new ci pipeline by @Julien-R44 in #878
- Fix paginate count query when used with distinct by @ptrpiero in #852
New Contributors
Full Changelog: v18.1.0...v18.1.1