mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
10 lines
270 B
TypeScript
10 lines
270 B
TypeScript
|
import { DatabaseManager } from '../database/manager';
|
||
|
|
||
|
async function execute(dm: DatabaseManager) {
|
||
|
await dm.db!.knex!('Payment')
|
||
|
.where({ referenceType: null })
|
||
|
.update({ referenceType: 'SalesInvoice' });
|
||
|
}
|
||
|
|
||
|
export default { execute, beforeMigrate: true };
|