2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00
books/backend/patches/fixItemHSNField.ts

12 lines
290 B
TypeScript

import { DatabaseManager } from '../database/manager';
async function execute(dm: DatabaseManager) {
const knexSchema = dm.db?.knex?.schema;
await knexSchema?.alterTable('Item', (table) => {
table.text('hsnCode').alter();
});
}
export default { execute, beforeMigrate: true };