We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb7c1da commit 2685b88Copy full SHA for 2685b88
.stacks/core/database/src/migrations/index.ts
@@ -82,8 +82,9 @@ ${model.name?.toLowerCase()}Id Int?
82
fs.writeFile(path, schema, (err) => {
83
if (err)
84
console.error(`Error writing schema file: ${err.message}`)
85
- // else
86
- // console.log(`Schema file generated successfully at path: ${path}`)
+ else
+ // eslint-disable-next-line no-console
87
+ console.log(`Schema file generated successfully at path: ${path}`)
88
})
89
}
90
@@ -103,7 +104,7 @@ function readModelsFromFolder(folderPath: string): Promise<Model[]> {
103
104
return import(filePath).then((data) => {
105
models.push({
106
name: data.default.name,
- columns: data.default.fields,
107
+ fields: data.default.fields,
108
109
110
0 commit comments