Releases: nwoltman/node-mysql-plus
Releases · nwoltman/node-mysql-plus
0.16.2
0.16.0
Breaking Changes
- feat!: Change the interface for how keys are defined in the table schema (
8cab7ce)- Check out the new documentation on how to define table keys
- chore(ci)!: Update config and stop testing on Node 6 and 11 (
56564e8)
New Features
Improvements
- improvement: Don't run unnecessary DROP/ADD_FOREIGN_KEY operations (
687df26) - improvement: Improve error messages when creating ColumnDefinitions with improper arguments (
fff463e) - chore(deps):
[email protected](6281eab) - chore: Fix spelling - 'geometrical' -> 'geometry' (
b88c815)
Documentation
- docs: Use clearer language in the readme intro (
ceb11ca)
0.15.0
Breaking Changes
New Features
- deps: [email protected] (
e62a99a) - ci: Test on Node 10 (
c4dfb02)
Bug Fixes
- fix: Run
ADD COLUMNoperations beforeMODIFY/CHANGE COLUMNoperations (5e72c04)
Documentation
- doc: Add section for known migrations that will not work (
0650b44)
0.14.0
Breaking Changes
- lib: Remove support for deprecated
{__raw: ...}objects (739a293)
New Features
- PoolPlus: Add Promise support to
pool.sync()(0704b40)
Performance
- lib: Use
===where possible (9d31c23)
Documentation
0.13.1
0.13.0
Deprecations
- lib: Remove
{__raw: ...}object documentation (1ad76d0)- Use
mysql.raw()orpool.raw()instead to create raw values - This is currently a soft deprecation. In
v0.13.1,mysql-pluswill log a warning if you use a{__raw: ...}object with theMySQLTable#insertIfNotExists()method and support for{__raw: ...}objects will be removed completely inv0.14.0.
- Use
New Features
- deps: [email protected] (
91ff662) - lib: Improve debug output formatting (
a43815f) - PoolPlus: Add
.raw()method (f0779c9)- This is an alias of the
mysql.raw()function added in[email protected]
- This is an alias of the
- TableDefinition: Expand foreign key shorthand syntax (
ccb3c53)- You can now specify the
onDeleteandonUpdateoptions in the shorthand like so:'table.column CASCADE'
- You can now specify the
Misc
0.12.1
0.12.0
Notable Changes
- TableDefinition: When a column changes, update its position (
3836d3b) - lib: Replace lodash/isEmpty with a custom function (
a2b68f9) - lib: Replace lodash/cloneDeep with a custom function for cloning keys (
73651c9) - lib: Replace lodash/isEqual with a custom function for comparing key definitions (
db32bec)- Lodash is no longer a dependency!
- lib: Change how debugging logs to the console and test debugging code (
c9aacb2) - deps: [email protected] (
adfb9b4)
0.11.1
0.11.0
Breaking Changes (that fix bugs)
- lib: Always drop keys not created by
mysql-plusduring migrations (6bfa2af)- This fixes a bug where syncing would throw an error when attempting to drop a key not created by
mysql-plus.
- This fixes a bug where syncing would throw an error when attempting to drop a key not created by
- ColumnDefinitions: Define certain numeric types as synonyms (
79c5acb)- This fixes a bug where using
integer,dec,numeric,fixed,bool, orbooleanwould always cause the table to run unnecessaryALTERqueries during migrations. - Feature: The
boolandbooleanColType methods now return aNumericColumnDefinitioninstance.
- This fixes a bug where using