0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

fix: build

This commit is contained in:
Princesseuh 2024-05-16 18:45:16 +02:00
parent a4313637b1
commit 000372bd4a
No known key found for this signature in database
GPG key ID: 105BBD6D57F2B0C0
2 changed files with 4 additions and 1 deletions

View file

@ -101,6 +101,7 @@ export function schemaTypeToSqlType(type: ColumnType): 'text' | 'integer' {
switch (type) {
case 'date':
case 'text':
case 'file':
case 'json':
return 'text';
case 'number':

View file

@ -30,6 +30,7 @@ export type DateColumn = z.infer<typeof dateColumnSchema>;
export type DateColumnInput = z.input<typeof dateColumnSchema>;
export type JsonColumn = z.infer<typeof jsonColumnSchema>;
export type JsonColumnInput = z.input<typeof jsonColumnSchema>;
export type FileColumn = z.infer<typeof fileColumnSchema>;
export type FileColumnInput = z.input<typeof fileColumnSchema>;
export type ColumnType =
@ -37,7 +38,8 @@ export type ColumnType =
| NumberColumn['type']
| TextColumn['type']
| DateColumn['type']
| JsonColumn['type'];
| JsonColumn['type']
| FileColumn['type'];
export type DBColumn = z.infer<typeof columnSchema>;
export type DBColumnInput =