1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

fix: unable to set an empty string as field default

This commit is contained in:
2022-05-05 23:09:10 +02:00
parent 9fcc7d1cef
commit bfdb463390
3 changed files with 7 additions and 7 deletions

View File

@ -306,7 +306,7 @@ export class SQLiteClient extends AntaresCore {
${field.unsigned ? 'UNSIGNED' : ''}
${field.nullable ? 'NULL' : 'NOT NULL'}
${field.autoIncrement ? 'AUTO_INCREMENT' : ''}
${field.default ? `DEFAULT ${field.default}` : ''}
${field.default !== null ? `DEFAULT ${field.default || '\'\''}` : ''}
${field.onUpdate ? `ON UPDATE ${field.onUpdate}` : ''}`);
});