mirror of https://github.com/laurent22/joplin.git
Chore: Fixed database type generation script
parent
907721f3f8
commit
9047605637
|
@ -42,6 +42,17 @@ async function main() {
|
|||
return t;
|
||||
});
|
||||
|
||||
definitions.tables = definitions.tables.map((table: any) => {
|
||||
table.columns = table.columns.map((column: any) => {
|
||||
return {
|
||||
...column,
|
||||
optional: true,
|
||||
};
|
||||
});
|
||||
|
||||
return table;
|
||||
});
|
||||
|
||||
const tsString = sqlts.fromObject(definitions, sqlTsConfig)
|
||||
.replace(/": /g, '"?: ');
|
||||
const header = `// AUTO-GENERATED BY ${__filename.substr(rootDir.length + 1)}`;
|
||||
|
|
Loading…
Reference in New Issue