From 3e5770f7de51bdf2bc0f1f38c7ceb9ef0f4dcd00 Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Fri, 13 Nov 2020 16:37:52 +0100 Subject: [PATCH] fix: zero fill field option was not saved --- README.md | 9 +++++---- src/main/libs/clients/MySQLClient.js | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index dc67aa3f..386ae509 100644 --- a/README.md +++ b/README.md @@ -28,10 +28,11 @@ An application created with minimalism and semplicity in mind, with features in ## Current main features - Multiple database connections at same time. -- Table's content management (add/edit/delete). +- Database management (add/edit/delete). +- Tables fields management (add/edit/delete). +- Tables content management (add/edit/delete). - Run queries on multiple tabs. - Query suggestions. -- Database management (add/edit/delete). - Native dark theme. - Multi language. - Auto updates. @@ -40,13 +41,13 @@ An application created with minimalism and semplicity in mind, with features in This is a roadmap with major features will come in near future. -- Improvements of query editor area. - Tables management (add/edit/delete). - Users management (add/edit/delete). -- Stored procedures, views, schedulers and trigger support. +- Stored procedures, views, schedulers and triggers support. - More secure password storage. - Database tools (variables, process list...). - Support for other databases. +- Improvements of query editor area. - Improvements of query suggestions. - Query history. - More context menu shortcuts. diff --git a/src/main/libs/clients/MySQLClient.js b/src/main/libs/clients/MySQLClient.js index 464ce1c8..1a1a4e87 100644 --- a/src/main/libs/clients/MySQLClient.js +++ b/src/main/libs/clients/MySQLClient.js @@ -291,6 +291,7 @@ export class MySQLClient extends AntaresCore { alterColumns.push(`ADD COLUMN \`${addition.name}\` ${addition.type.toUpperCase()}${length ? `(${length})` : ''} ${addition.unsigned ? 'UNSIGNED' : ''} + ${addition.zerofill ? 'ZEROFILL' : ''} ${addition.nullable ? 'NULL' : 'NOT NULL'} ${addition.autoIncrement ? 'AUTO_INCREMENT' : ''} ${addition.default ? `DEFAULT ${addition.default}` : ''} @@ -307,6 +308,7 @@ export class MySQLClient extends AntaresCore { alterColumns.push(`CHANGE COLUMN \`${change.orgName}\` \`${change.name}\` ${change.type.toUpperCase()}${length ? `(${length})` : ''} ${change.unsigned ? 'UNSIGNED' : ''} + ${change.zerofill ? 'ZEROFILL' : ''} ${change.nullable ? 'NULL' : 'NOT NULL'} ${change.autoIncrement ? 'AUTO_INCREMENT' : ''} ${change.default ? `DEFAULT ${change.default}` : ''}