Skip to content

Allow ignoring tables when running db:wipe command

Compare
Choose a tag to compare
@thetutlage thetutlage released this 08 Oct 05:16

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 to wipe.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

Full Changelog: v18.1.1...v18.2.0