From 657599acccf351c7c9366cec9f648b7496c89bdb Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 1 Apr 2025 21:52:44 -0400 Subject: New commands (warn, adventure); Splitting log channels --- .../20250401223204-rename-logchannelid.js | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 bot/src/db/migrations/20250401223204-rename-logchannelid.js (limited to 'bot/src/db/migrations') 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) => { + +}; -- cgit v1.2.3