mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix: build
This commit is contained in:
parent
a4313637b1
commit
000372bd4a
2 changed files with 4 additions and 1 deletions
|
@ -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':
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue