Added manticore sync all tool, updated manticore driver.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { rebuildActors } from './manticore-actors.js';
|
||||
import { rebuildMovies } from './manticore-movies.js';
|
||||
import { rebuildScenes } from './manticore-scenes.js';
|
||||
import { rebuildStashes } from './manticore-stashes.js';
|
||||
import runTool from './run-tool.js';
|
||||
|
||||
// recreates and fills every manticore table from postgres, i.e. after a manticore upgrade or on a fresh data directory
|
||||
runTool(async () => {
|
||||
// stashes first, the scenes sync also writes scene stashes and fails if their table doesn't exist yet
|
||||
await rebuildStashes();
|
||||
await rebuildScenes();
|
||||
await rebuildMovies();
|
||||
await rebuildActors();
|
||||
|
||||
console.log('Rebuilt all manticore tables');
|
||||
});
|
||||
Reference in New Issue
Block a user