chore: stop when generated column found
This commit is contained in:
parent
42b055e58b
commit
18f5fb9cef
|
@ -104,6 +104,10 @@ export const miRepository = {
|
|||
},
|
||||
createTableColumnNamesWithPrimaryKey(queryBuilder) {
|
||||
const columnNames = this.createTableColumnNames(queryBuilder);
|
||||
if (this.metadata.columns.filter((column) => column.isGenerated).length) {
|
||||
console.log(this.metadata.columns);
|
||||
throw null;
|
||||
}
|
||||
if (!columnNames.includes('id')) {
|
||||
columnNames.unshift('id');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue