aboutsummaryrefslogtreecommitdiff
path: root/bot/src/db/migrations
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-04-01 21:52:44 -0400
committerAndrew Lee <andrew@alee14.me>2025-04-01 21:52:44 -0400
commit657599acccf351c7c9366cec9f648b7496c89bdb (patch)
treed35ed13d5234312d8eef5f9584c46ebb16d4b155 /bot/src/db/migrations
parent43e2344173178a5945ddca24a9ef7c091269b040 (diff)
downloadAleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.tar.gz
AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.tar.bz2
AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.zip
New commands (warn, adventure); Splitting log channels
Diffstat (limited to 'bot/src/db/migrations')
-rw-r--r--bot/src/db/migrations/20250401223204-rename-logchannelid.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/bot/src/db/migrations/20250401223204-rename-logchannelid.js b/bot/src/db/migrations/20250401223204-rename-logchannelid.js
new file mode 100644
index 0000000..2313c4f
--- /dev/null
+++ b/bot/src/db/migrations/20250401223204-rename-logchannelid.js
@@ -0,0 +1,45 @@
+'use strict';
+
+/** @type {import('sequelize-cli').Migration} */
+export const up = async (queryInterface, Sequelize) => {
+// Assuming we have a table in SQLite created as follows:
+ await queryInterface.createTable('guild-settings', {
+ id: {
+ type: Sequelize.INTEGER,
+ primaryKey: true,
+ autoIncrement: true,
+ },
+ guildID: {
+ type: Sequelize.STRING,
+ allowNull: false
+ },
+ memberLogChannelID: {
+ type: Sequelize.STRING,
+ allowNull: true
+ },
+ messageLogChannelID: {
+ type: Sequelize.STRING,
+ allowNull: true
+ },
+ suggestionsChannelID: {
+ type: Sequelize.STRING,
+ allowNull: true
+ },
+ qotdChannelID: {
+ type: Sequelize.STRING,
+ allowNull: true
+ },
+ qotdToggle: {
+ type: Sequelize.BOOLEAN,
+ allowNull: true
+ },
+ ollamaEnabled: {
+ type: Sequelize.BOOLEAN,
+ allowNull: true
+ },
+ });
+};
+
+export const down = async (queryInterface) => {
+
+};