feat(datatypes): Add decimal / numeric attribute support + organize field row (#715)

* added decimal scale and precision support

* update i18n

* added button to reset - made values always enabled in pairs

* made button use ml

* added fix for when manually defined scales are set to 0

* fix

* some fixes

* some fixes

* some fixes

* some fixes

* some fixes

---------

Co-authored-by: Alexander Harris <mcalapurge@techie.com>
Co-authored-by: Guy Ben-Aharon <baguy3@gmail.com>
This commit is contained in:
Jonathan Fishner
2025-07-24 15:18:33 +03:00
committed by GitHub
parent fb92be7d3e
commit 778f85d492
42 changed files with 716 additions and 98 deletions

View File

@@ -254,7 +254,8 @@ export const exportBaseSQL = ({
// Add size for character types
if (
field.characterMaximumLength &&
parseInt(field.characterMaximumLength) > 0
parseInt(field.characterMaximumLength) > 0 &&
field.type.name.toLowerCase() !== 'decimal'
) {
sqlScript += `(${field.characterMaximumLength})`;
} else if (field.type.name.toLowerCase().includes('varchar')) {