File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,6 @@ function validateMigrationStrategy(strategy) {
35
35
*/
36
36
class PoolPlus extends Pool {
37
37
constructor ( config ) {
38
- // TODO: Remove before v0.7.0 is released
39
- if ( 'allowAlterInProduction' in config || 'migrationStrategy' in config ) {
40
- throw new Error (
41
- 'The `allowAlterInProduction` and `migrationStrategy` options must now be namespaced under ' +
42
- 'a `plusOptions` property in the config. See the documentation for more information: ' +
43
- 'https://github.com/nwoltman/node-mysql-plus#module_mysql-plus..createPool'
44
- ) ;
45
- }
46
-
47
38
const plusOptions = config . plusOptions || { } ;
48
39
validateMigrationStrategy ( plusOptions . migrationStrategy ) ;
49
40
Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ describe('PoolPlus', () => {
49
49
) ;
50
50
} ) ;
51
51
52
- // TODO: Remove before v0.7.0 is released
53
- it ( 'should throw if the PoolPlus options are not in the `plusOptions` property' , ( ) => {
54
- should . throws ( ( ) => new PoolPlus ( { migrationStrategy : 'alter' } ) ) ;
55
- should . throws ( ( ) => new PoolPlus ( { allowAlterInProduction : false } ) ) ;
56
- } ) ;
57
-
58
52
} ) ;
59
53
60
54
You can’t perform that action at this time.
0 commit comments