Skip to content

Commit cd38585

Browse files
committed
fix(migration): adjust reference handling in _initMigration for improved compatibility
1 parent 321a8d0 commit cd38585

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/migration.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function _initMigration(file, queries = {}) {
233233
name: options.foreignKey ? options.foreignKey : 'fk_' + table + '_' + options.columnName,
234234
table: table,
235235
column: options.columnName,
236-
references: options.reference || options.references // 兼容性处理
236+
references: options.references || options.reference // 兼容性处理
237237
});
238238
const builder = new ManageSQLBuilder(options);
239239
queries[file].push({ sql: builder.sql, values: builder.values });

0 commit comments

Comments
 (0)