mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 13:14:07 -08:00
048b588852
## Summary Make params panel double width for all SQL nodes <img width="1445" alt="image" src="https://github.com/n8n-io/n8n/assets/8850410/422e7c6c-90c9-4cf0-832b-fab7679275d3"> ## Related tickets and issues https://linear.app/n8n/issue/NODE-986/make-all-sql-nodes-have-a-double-width-params-pane ## Review / Merge checklist - [ ] PR title and summary are descriptive. **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** ([conventions](https://github.com/n8n-io/n8n/blob/master/.github/pull_request_title_conventions.md)) - [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up ticket created. - [ ] Tests included. > A bug is not considered fixed, unless a test is added to prevent it from happening again. > A feature is not complete without tests.
29 lines
802 B
TypeScript
29 lines
802 B
TypeScript
import type { INodeTypeBaseDescription, IVersionedNodeType } from 'n8n-workflow';
|
|
import { VersionedNodeType } from 'n8n-workflow';
|
|
|
|
import { MySqlV1 } from './v1/MySqlV1.node';
|
|
import { MySqlV2 } from './v2/MySqlV2.node';
|
|
|
|
export class MySql extends VersionedNodeType {
|
|
constructor() {
|
|
const baseDescription: INodeTypeBaseDescription = {
|
|
displayName: 'MySQL',
|
|
name: 'mySql',
|
|
icon: 'file:mysql.svg',
|
|
group: ['input'],
|
|
defaultVersion: 2.2,
|
|
description: 'Get, add and update data in MySQL',
|
|
parameterPane: 'wide',
|
|
};
|
|
|
|
const nodeVersions: IVersionedNodeType['nodeVersions'] = {
|
|
1: new MySqlV1(baseDescription),
|
|
2: new MySqlV2(baseDescription),
|
|
2.1: new MySqlV2(baseDescription),
|
|
2.2: new MySqlV2(baseDescription),
|
|
};
|
|
|
|
super(nodeVersions, baseDescription);
|
|
}
|
|
}
|