(filePath: string)
| 23 | }; |
| 24 | |
| 25 | async function checkFileExists(filePath: string): Promise<boolean> { |
| 26 | try { |
| 27 | await fs.access(filePath); |
| 28 | return true; // File exists |
| 29 | } catch (error) { |
| 30 | return false; // File does not exist |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | export async function up() { |
| 35 | const accountCount = await db.account.count(); |