0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-04-07 23:41:43 -05:00

chore: todo

This commit is contained in:
bholmesdev 2024-02-08 13:04:36 -05:00
parent 8f7da6cc79
commit 25393279c5

View file

@ -105,6 +105,7 @@ function columnMapper(fieldName: string, field: DBField, isJsonSerializable: boo
case 'number': {
c = integer(fieldName);
if (field.default !== undefined) c = c.default(field.default);
// TODO: remove autoincrement per https://www.sqlite.org/autoinc.html
if (field.primaryKey === true) c = c.primaryKey({ autoIncrement: true });
break;
}