Releases: adonisjs/lucid
Releases · adonisjs/lucid
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
Add support to force update model even when there are no dirty properties
Fix rollback command to use the batch flag
Improvements to model factories, new make:factory command and bug fixes
Commits
- feat: add
parent
property to the factory builder for a relationship cd77bcd - refactor: install sqlite3 package instead of unsupported @vscode/sqlite3 5a6862c
- refactor: call build method on the factory e498726
- feat: add support for recursively merging attributes from factories 8f708b3
- chore: update dependencies 0ecf89a
- fix: prefix table name when making relationship join queries 9385a9b
- refactor: use knex whereLike and whereILike methods under the hood f2e7d36
- feat: add where"JSON" methods introduced by Knex 1.0 f875828
- feat: add
--compact-output
on DbSeed command (#838) 3880c8d - feat: expose knex query builder instance in schema classes dff3f84
- feat: add "whereLike" and "whereILike" methods 1b6001d
- feat: add withMaterialized and withNotMaterialized to query builder 04c5c25
- chore: add a space between migrator output and time elapsed in
compact-output
mode ed15ba9 - feat:
make:factory
command +--factory
flag tomake:model
(#837) bd22c96 - feat: add
--compact-output
flag to run/rollback commands (#836) f8e0c8c - feat: allow model properties to report if they are dirty or not e40297c
- feat: allow passing model assignment options via relationship persistence methods 5b2f846
- feat: add support to define pivot attributes via factory builder 49a1d04
- fix: do not wrap connection name in quotes when running migrations from tests 73a43ca
- refactor: remove inline callbacks in favor of tap method 13588af
- refactor: pass factory builder instance to all factory operations 72f233c
- chore: remove @vscode/sqlite3 in favor of sqlite3 2332fbf
- chore: update dependencies 9f87bc3
- refactor: use anonymous classes for migrations (#829) 3d12a45
- docs: remove outdated changelog.md (#834) bb7c81d
- Fix the Contributing link at README (#833) 41a6135
- feat(query-builder): add support for columns for with and withRecursive (#826) 1518dc6
PRs
- feat(query-builder): add support for columns for with and withRecursive by @Melchyore in #826
- Fix the Contributing link at README by @brkn in #833
- Remove outdated CHANGELOG.md by @brkn in #834
- Use anonymous classes for migrations by @RomainLanz in #829
- feat: add
--compact-output
flag to run/rollback commands by @Julien-R44 in #836 - feat:
make:factory
command +--factory
flag tomake:model
by @Julien-R44 in #837 - feat: add
--compact-output
on DbSeed command by @Julien-R44 in #838
New Contributors
- @Melchyore made their first contribution in #826
- @brkn made their first contribution in #833
Full Changelog: v17.2.0...v18.0.0
Bug fixes and remove returning warning
Surpress knex warnings and upgrade to latest version of faker
Adding test utilities and bug fixes
- test: remove unwanted assertion breaking across dialects 1657b0a
- fix: make assertions more resilient bed3cca
- fix: breaking tests ebf2575
- fix: retain model default values when creating a model instance af25299
- chore: update dependencies 6b1c21c
- fix: insturctions to install @vscode/sqlite3 2b1debe
- feat: add test utils for migrations and database seeders 1e52ea6
- chore: update dependencies bfa3aa0
- chore: remove direct dependency on @adonisjs/ace 6882798
- refactor: cleanup commands to use each other using ace directly fa090d8
- feat: add test utils for migrate database and run seeders 9185bd4
Do not attempt to remove types and views when not supported by db
- chore: release under latest tag 0889732
- refactor: do not attempt to remove types and views when not support by db 780167a
- refactor: log message when performing version upgrade 454ecb2
- test: migrate to the new Japa (#803) cb15d56
PRs
- refactor: migrate to the new Japa by @Julien-R44 in #803
- Small improvements for PR 764 by @thetutlage in #802
Full Changelog: v17.0.0...v17.0.1
Full of goodies
Highlights
- This release includes a drop-in replacement for
faker-js
(a project no longer active) - Support for
better-sqlite3
. 16x faster replacement to sqlite3. - Fixing migration names to be platform agnostics
- New commands
migration:refresh
,migration:reset
,migration:fresh
anddb:wipe
.
Breaking changes
- The
returning
method now returns an array of objects, even when one column is mentioned. It is a direct result of changes made by knex knex/knex#4471 - The
sqlite3
package is no longer supported. Instead, you can use@vscode/sqlite3
as a drop-in replacement. - The
fakerjs
package is no longer supported. Instead, you can use@faker-js/faker
as a drop-in replacement.
Commits
- chore: release under next tag cad1e8c
- test: fix breaking tests 6ea257b
- fix: Fix migration filenames to be platform agnostic eecdc56
- fix: retain existing attributes when calling loadCount on the model instance 0e19c53
- refactor: remove unused imports 27e1dfd
- feat: add support for better-sqlite3 5d006b8
- fix: ddl logs to lowercase the SQL query b991e82
- chore: dropping log statements to debug failing mssql tests 5aea733
- ci: update docker setup and failing mysql tests a118455
- test: fixing breaking tests after knex upgrade 851b23f
- ci: running sqlite tests outside of docker 78c4939
- ci: attempt to fix sqlite3 errors 5149a81
- refactor: allow returning calls for sqlite 3b3bb7a
- chore: attempt to fix dockerfile python issues b7ce89c
- fix: node-gyp docker-alpine error and switch to lts 3d9f752
- chore: use @vscode/sqlite3 over sqlite3 02468dc
- test: fix test script path d27a87f
- chore: update dependencies e35170f
- refactor: reorganize meta config 64bffa4
- chore: update dependencies bfcc2e6
- refactor: use @faker-js/faker instead of faker (#791) 759f2e4
- feat: add
getAllViews
getAllTypes
dropAllTypes
anddropAllViews
functions (#784) f7aa5b9 - feat: add
migration:refresh
,migration:reset
,migration:fresh
anddb:wipe
commands (#764) 441d9b5 - refactor: add missing "wrapIdentifier" option on PostgreConfig (#763) 19990dc
- feat(real): add helper to load all factories (#760) 7e88ad6
- refactor(stub): Enable foreign key support in SQLite config 87ce418
PRs
- Enable foreign key support in SQLite by @akatora28 in #745
- Add helper to load all factories by @RomainLanz in #760
- Adding "wrapIdentifier" option on PostgreConfig by @lucianostegun in #763
- Add
migration:refresh
,migration:reset
,migration:fresh
anddb:wipe
commands by @Julien-R44 in #764 - feat: add
getAllViews
getAllTypes
dropAllTypes
anddropAllViews
functions by @Julien-R44 in #784 - use @faker-js/faker instead of faker by @bnoufel in #791
New Contributors
- @akatora28 made their first contribution in #745
- @lucianostegun made their first contribution in #763
- @Julien-R44 made their first contribution in #764
- @bnoufel made their first contribution in #791
Full Changelog: v16.3.2...v17.0.0