firt commit
This commit is contained in:
commit
c2e63830e1
71 changed files with 9613 additions and 0 deletions
14
server/scripts/resetDb.js
Normal file
14
server/scripts/resetDb.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import initDatabase from '../utils/initDatabase.js';
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
console.log('Starting database reset...');
|
||||
await initDatabase(true);
|
||||
console.log('Database reset script finished.');
|
||||
} catch (error) {
|
||||
console.error('Database reset script failed:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
Loading…
Add table
Add a link
Reference in a new issue