aboutsummaryrefslogtreecommitdiff
path: root/bot/src/utils/sync.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/utils/sync.js')
-rw-r--r--bot/src/utils/sync.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/bot/src/utils/sync.js b/bot/src/utils/sync.js
new file mode 100644
index 0000000..ecee7b1
--- /dev/null
+++ b/bot/src/utils/sync.js
@@ -0,0 +1,17 @@
+import { quote, pendingQuote } from '../models/quote.js';
+import { guildSettings } from '../models/guild-settings.js';
+
+
+export function syncDB() {
+ quote.sync({alter: true}).then(() => {
+ console.log('Quote database synced!');
+ });
+
+ pendingQuote.sync({alter: true}).then(() => {
+ console.log('Pending Quote database synced!');
+ });
+
+ guildSettings.sync({alter: true}).then(() => {
+ console.log('Guild database synced!');
+ });
+}