Add calculate_history table to ignore list for reset

This commit is contained in:
2025-02-10 21:47:09 -05:00
parent f4f6215d03
commit 344b863865

View File

@@ -156,7 +156,7 @@ async function resetDatabase() {
SELECT GROUP_CONCAT(table_name) as tables
FROM information_schema.tables
WHERE table_schema = DATABASE()
AND table_name NOT IN ('users', 'import_history')
AND table_name NOT IN ('users', 'import_history', 'calculate_history')
`);
if (!tables[0].tables) {
@@ -175,7 +175,7 @@ async function resetDatabase() {
DROP TABLE IF EXISTS
${tables[0].tables
.split(',')
.filter(table => table !== 'users')
.filter(table => table !== 'users' && table !== 'calculate_history' && table !== 'import_history')
.map(table => '`' + table + '`')
.join(', ')}
`;