You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-16 00:14:34 +02:00
Chore: All: Improve how migrations are handled
This commit is contained in:
4
packages/lib/services/database/addMigrationFile.ts
Normal file
4
packages/lib/services/database/addMigrationFile.ts
Normal file
@ -0,0 +1,4 @@
|
||||
export default (num: number) => {
|
||||
const timestamp = Date.now();
|
||||
return { sql: 'INSERT INTO migrations (number, created_time, updated_time) VALUES (?, ?, ?)', params: [num, timestamp, timestamp] };
|
||||
};
|
Reference in New Issue
Block a user