mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-17 01:55:27 +10:00
update database stuff and and package.json to help generate migrations
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import { AppDataSource } from "./data-source"
|
||||
import AppDataSource from "./data-source"
|
||||
|
||||
AppDataSource.initialize().then(async () => {
|
||||
|
||||
}).catch(error => console.log(error))
|
||||
AppDataSource.initialize()
|
||||
.then(() => {
|
||||
console.log('✅ Connected successfully');
|
||||
process.exit(0);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error('❌ Connection failed:', err);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user