I extracted the init database logic into its own file. You can now run it with yarn database:init. Added database entry for GitHub stars. Do you want me to remove the init route or is it used for something else ? --------- Co-authored-by: Ady Beraud <a.beraud96@gmail.com> Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
9 lines
154 B
TypeScript
9 lines
154 B
TypeScript
import { migrate } from '@/database/database';
|
|
|
|
export const migrateDatabase = async () => {
|
|
await migrate();
|
|
process.exit(0);
|
|
};
|
|
|
|
migrateDatabase();
|