Skip to content

Commit

Permalink
Add in undocumented mssql option for backwards compatibility. (#93)
Browse files Browse the repository at this point in the history
* Add in undocumented mssql option for backwards compatibility.

* Mssql dependency.
  • Loading branch information
reynoldsalec authored Feb 21, 2024
1 parent f528ad9 commit 663491d
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.1.0 - [February 20, 2024](https://github.com/lando/drupal/releases/tag/v1.1.0)

* Included ability to specify `database: mssql` in the `config` section to maintain backwards compatibility. [@lando/mssql#31](https://github.com/lando/mssql/issues/31)

## v1.0.1 - [January 15, 2024](https://github.com/lando/drupal/releases/tag/v1.0.1)

* Fixed issue with missing `semver` dependency.
Expand Down
15 changes: 15 additions & 0 deletions builders/drupal-mssql.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

const _ = require('lodash');
const LandoMssql = require('./../node_modules/@lando/mssql/builders/mssql.js');

// Builder
module.exports = {
name: 'drupal-mssql',
parent: '_service',
builder: (parent, config) => class DrupalMssql extends LandoMssql.builder(parent, LandoMssql.config) {
constructor(id, options = {}) {
super(id, options, {services: _.set({}, options.name)});
};
},
};
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
},
"dependencies": {
"@lando/mariadb": "^1.0.0",
"@lando/mssql": "^1.0.0",
"@lando/mysql": "^1.0.0",
"@lando/nginx": "^1.0.0",
"@lando/php": "^1.0.0",
Expand Down

0 comments on commit 663491d

Please sign in to comment.