|
1 | 1 | # CHANGELOG
|
2 | 2 |
|
| 3 | +## 0.11.0 (2017-04-25) |
| 4 | + |
| 5 | +### Breaking Changes (that fix bugs) |
| 6 | ++ lib: Always drop keys not created by mysql-plus during migrations ([`6bfa2af`](https://github.com/nwoltman/node-mysql-plus/commit/6bfa2af04a5c8a3c5411a9c58c63b643535d2cea)) |
| 7 | + + This fixes a bug where syncing would throw an error when attempting to drop a key not created by `mysql-plus`. |
| 8 | ++ ColumnDefinitions: Define certain numeric types as synonyms ([`79c5acb`](https://github.com/nwoltman/node-mysql-plus/commit/79c5acb67795eedd82cb8b7b3d1ef60a27a40dc3)) |
| 9 | + + This fixes a bug where using `integer`, `dec`, `numeric`, `fixed`, `bool`, or `boolean` would always cause the table to run unnecessary `ALTER` queries during migrations. |
| 10 | + + Feature: The `bool` and `boolean` ColType methods now return a [`NumericColumnDefinition`](https://github.com/nwoltman/node-mysql-plus#numericcolumndefinition) instance. |
| 11 | + |
| 12 | +### New Features |
| 13 | ++ MySQLTable: Implement an [`.exists()`](https://github.com/nwoltman/node-mysql-plus#MySQLTable+exists) method ([`a01e6fb`](https://github.com/nwoltman/node-mysql-plus/commit/a01e6fb23625afd1249c4fadb78738afc46aacab)) |
| 14 | ++ doc: Fix `MySQLTable#insert()` example with using only the `sqlString` argument ([`1da7a2a`](https://github.com/nwoltman/node-mysql-plus/commit/1da7a2ad99debafa9ecf9e3e5d50652361935af6)) |
| 15 | + |
| 16 | + |
3 | 17 | ## 0.10.1 (2017-04-14)
|
4 | 18 |
|
5 | 19 | ### Bug Fixes
|
6 | 20 | + lib: Fix bug when migrating a table with no foreign keys to having some ([`fa8960b`](https://github.com/nwoltman/node-mysql-plus/commit/fa8960b128340a205cd28fd15e49b190f092aca7))
|
7 | 21 |
|
| 22 | + |
8 | 23 | ## 0.10.0 (2017-04-05)
|
9 | 24 |
|
10 | 25 | ### Possibly Breaking Changes
|
|
16 | 31 | ### New Features
|
17 | 32 | + PoolPlus: Add [`.basicTable()`](https://github.com/nwoltman/node-mysql-plus#PoolPlus+basicTable) method that just creates a `MySQLTable` instance ([`2ca6e43`](https://github.com/nwoltman/node-mysql-plus/commit/2ca6e4389b1c4a13aeec5fbc18b2a49aa3117b1a))
|
18 | 33 |
|
| 34 | + |
19 | 35 | ## 0.9.0 (2017-03-26)
|
20 | 36 |
|
21 | 37 | ### Breaking Changes
|
22 | 38 | + ColumnDefinition: Make timestamp columns NULL by default ([`dfcd030`](https://github.com/nwoltman/node-mysql-plus/commit/dfcd030d52ff033f9121062f7048b51d387e5fb0))
|
23 | 39 | + See the [TimestampColumnDefinition documentation](https://github.com/nwoltman/node-mysql-plus#timestampcolumndefinition) for details
|
24 | 40 |
|
| 41 | + |
25 | 42 | ## 0.8.0 (2017-03-21)
|
26 | 43 |
|
27 | 44 | ### Possibly Breaking Changes
|
|
36 | 53 | ### Bug Fixes
|
37 | 54 | + MySQLTable: Fix bug in [`.insert()`](https://github.com/nwoltman/node-mysql-plus#MySQLTable+insert) where `sqlString` was ignored if data was an array ([`55cc324`](https://github.com/nwoltman/node-mysql-plus/commit/55cc324adccdc6f3b79f45ec8e4a19c09077e79e))
|
38 | 55 |
|
| 56 | + |
39 | 57 | ## 0.7.0 (2017-03-13)
|
40 | 58 |
|
41 | 59 | ### Breaking Changes
|
|
51 | 69 | + Fixes issues with migrating tables with an AUTO_INCREMENT column
|
52 | 70 | + PoolPlus: Fix bug in debug mode where the sync callback would not get called ([`231e7ec`](https://github.com/nwoltman/node-mysql-plus/commit/231e7ec62a5f45612fa2056c0106d2d39b6fe214))
|
53 | 71 |
|
| 72 | + |
54 | 73 | ## 0.6.3 (2017-02-25)
|
55 | 74 |
|
56 | 75 | ### New Features
|
|
60 | 79 | ### Bug Fixes
|
61 | 80 | + lib: Fix bug when altering a multi-column index and the first column in that index has a foreign key ([`585b7dc`](https://github.com/nwoltman/node-mysql-plus/commit/585b7dc9ac1d43ba4cf6b8bca5cc3ec50004c8fc))
|
62 | 81 |
|
| 82 | + |
63 | 83 | ## 0.6.2 (2017-02-18)
|
64 | 84 |
|
65 | 85 | ### Bug Fixes
|
66 | 86 | + lib: Fix foreign key bug introduced in [`d43235a`](https://github.com/nwoltman/node-mysql-plus/commit/d43235a56772115ac1b945cc670f7ffd8f76c447) ([`03374e4`](https://github.com/nwoltman/node-mysql-plus/commit/03374e4746cc606e92d5d4676cce1c122cf559c9))
|
67 | 87 | + lib: Fix bug caused by columns with a default value ([`8f1e963`](https://github.com/nwoltman/node-mysql-plus/commit/8f1e963c5c9b3ca85959b75f5bbe9eb2994c72bb))
|
68 | 88 |
|
| 89 | + |
69 | 90 | ## 0.6.1 (2017-02-11)
|
70 | 91 |
|
71 | 92 | ### New Features
|
72 | 93 | + lib: Support spatial indexes ([`9a4a2be`](https://github.com/nwoltman/node-mysql-plus/commit/9a4a2be169294c49bb2be9318a3eead342626148))
|
73 | 94 | + ColumnDefinitions: Add support for spatial data (geometry) and JSON column types ([`46f3034`](https://github.com/nwoltman/node-mysql-plus/commit/46f3034b24fe25c718522b17e1aad42b0d1e63a6))
|
74 | 95 |
|
| 96 | + |
75 | 97 | ## 0.6.0 (2017-02-09)
|
76 | 98 |
|
77 | 99 | ### Breaking Changes
|
|
88 | 110 | ### Bug Fixes
|
89 | 111 | + lib: Prevent error when changing columns or keys with foreign keys ([`d43235a`](https://github.com/nwoltman/node-mysql-plus/commit/d43235a56772115ac1b945cc670f7ffd8f76c447))
|
90 | 112 |
|
| 113 | + |
91 | 114 | ## 0.5.0 (2016-12-12)
|
92 | 115 |
|
93 | 116 | ### Deprecations
|
|
97 | 120 | ### New Features
|
98 | 121 | + UpdatableTimeColumnDefinition: Add [`.defaultCurrentTimestamp()`](https://github.com/nwoltman/node-mysql-plus#updatabletimecolumndefinition) method ([`949d72f`](https://github.com/nwoltman/node-mysql-plus/commit/949d72f5a7f04b4da57b484e27fa0eeca946aa0e))
|
99 | 122 |
|
| 123 | + |
100 | 124 | ## 0.4.1 (2016-12-10)
|
101 | 125 |
|
102 | 126 | ### Bug Fixes
|
103 | 127 | + TableDefinition: Use `defaultRaw()` over `default()` when appropriate ([`4d0ed0f`](https://github.com/nwoltman/node-mysql-plus/commit/4d0ed0f6f794c42d0963f4969cbf36f291af71ac))
|
104 | 128 | + changelog: Add missing deprecation ([`5420a08`](https://github.com/nwoltman/node-mysql-plus/commit/5420a08577e21316dc3dd420f322346ee782625f))
|
105 | 129 |
|
| 130 | + |
106 | 131 | ## 0.4.0 (2016-12-08)
|
107 | 132 |
|
108 | 133 | ### Deprecations
|
|
127 | 152 | + ci: Test with MySQL 5.7 ([`5f42b10`](https://github.com/nwoltman/node-mysql-plus/commit/5f42b107133a277ed3e1db46230b05a2677eaf27))
|
128 | 153 | + lib: Prevent unnecessary ALTER TABLE operation when the collation is unchanged ([`b5ae554`](https://github.com/nwoltman/node-mysql-plus/commit/b5ae554244ea9831f04f5ab7b681c3f4afed3941))
|
129 | 154 |
|
| 155 | + |
130 | 156 | ## 0.3.0 (2016-05-28)
|
131 | 157 |
|
132 | 158 | ### Breaking Changes
|
|
142 | 168 | + doc: Fix typo in `MySQLTable.insertIgnore()` example ([`e5328ff`](https://github.com/nwoltman/node-mysql-plus/commit/e5328ffb75b2bdc7accb7e8842335f5f6c136643))
|
143 | 169 | + MySQLTable: Fix argument handling bug in `.update()` ([`362ed2b`](https://github.com/nwoltman/node-mysql-plus/commit/362ed2bc252345c50ff6b756d7536e5609c9dcdd))
|
144 | 170 |
|
| 171 | + |
145 | 172 | ## 0.2.0 (2016-05-25)
|
146 | 173 | + lib: Require the m argument for varchar and varbinary ([`0564137`](https://github.com/nwoltman/node-mysql-plus/commit/0564137180f44ced3faf9ccfe6e18859e39bf59c))
|
147 | 174 |
|
|
0 commit comments