1
0
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:
Laurent Cozic
2023-10-21 15:52:22 +01:00
parent 240f9a3ff0
commit 63aea35e36
9 changed files with 77 additions and 33 deletions

View 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] };
};