Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > discordbot@1.0.0 dev
- > nodemon app.js
- [nodemon] 3.1.4
- [nodemon] TO restart at any TIME, enter `rs`
- [nodemon] watching path(s): *.*
- [nodemon] watching extensions: js,mjs,cjs,json
- [nodemon] starting `node app.js index.js`
- Executing (DEFAULT): SELECT name FROM sqlite_master WHERE TYPE='table' AND name='AccountInformations';
- Executing (DEFAULT): SELECT 1+1 AS RESULT
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Connection has been established successfully.
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations_backup`;
- Executing (DEFAULT): DROP TABLE `AccountInformations_backup`;
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): SELECT name FROM sqlite_master WHERE TYPE='table' AND name='Transactions';
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions_backup` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE, `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions_backup` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions`;
- Executing (DEFAULT): DROP TABLE `Transactions`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`) ON DELETE CASCADE ON UPDATE CASCADE, `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions_backup`;
- Executing (DEFAULT): DROP TABLE `Transactions_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions_backup` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions_backup` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions`;
- Executing (DEFAULT): DROP TABLE `Transactions`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions_backup`;
- Executing (DEFAULT): DROP TABLE `Transactions_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions_backup` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions_backup` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions`;
- Executing (DEFAULT): DROP TABLE `Transactions`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions_backup`;
- Executing (DEFAULT): DROP TABLE `Transactions_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions_backup` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Ready! Logged IN AS Master Builder#8495
- Executing (DEFAULT): INSERT INTO `Transactions_backup` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions`;
- Executing (DEFAULT): DROP TABLE `Transactions`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions_backup`;
- Executing (DEFAULT): DROP TABLE `Transactions_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions_backup` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions_backup` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions`;
- Executing (DEFAULT): DROP TABLE `Transactions`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions_backup`;
- Executing (DEFAULT): DROP TABLE `Transactions_backup`;
- Executing (DEFAULT): PRAGMA TABLE_INFO(`Transactions`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`Transactions`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions_backup` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions_backup` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions`;
- Executing (DEFAULT): DROP TABLE `Transactions`;
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `Transactions` (`id` INTEGER PRIMARY KEY, `AccountInformationID` INTEGER NOT NULL REFERENCES `AccountInformations` (`ID`), `TransactionType` VARCHAR(255) NOT NULL, `TransactionValue` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `Transactions` SELECT `id`, `AccountInformationID`, `TransactionType`, `TransactionValue`, `Timestamp`, `createdAt`, `updatedAt` FROM `Transactions_backup`;
- Executing (DEFAULT): DROP TABLE `Transactions_backup`;
- Executing (DEFAULT): PRAGMA INDEX_LIST(`Transactions`)
- DATABASE & TABLES created WITH associations!
- restart my bot
- > discordbot@1.0.0 dev
- > nodemon app.js
- [nodemon] 3.1.4
- [nodemon] TO restart at any TIME, enter `rs`
- [nodemon] watching path(s): *.*
- [nodemon] watching extensions: js,mjs,cjs,json
- [nodemon] starting `node app.js index.js`
- Executing (DEFAULT): SELECT name FROM sqlite_master WHERE TYPE='table' AND name='AccountInformations';
- Executing (DEFAULT): SELECT 1+1 AS RESULT
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Connection has been established successfully.
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): PRAGMA TABLE_INFO(`AccountInformations`);
- Executing (DEFAULT): PRAGMA INDEX_LIST(`AccountInformations`)
- Executing (DEFAULT): PRAGMA foreign_key_list(`AccountInformations`)
- Executing (DEFAULT): CREATE TABLE IF NOT EXISTS `AccountInformations_backup` (`ID` INTEGER PRIMARY KEY, `DiscordID` VARCHAR(255) NOT NULL, `DiscordUsername` VARCHAR(255) NOT NULL, `DiscordServerID` VARCHAR(255) NOT NULL, `DiscordServerName` VARCHAR(255) NOT NULL, `Balance` INTEGER NOT NULL, `Timestamp` DATETIME, `createdAt` DATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
- Executing (DEFAULT): INSERT INTO `AccountInformations_backup` SELECT `ID`, `DiscordID`, `DiscordUsername`, `DiscordServerID`, `DiscordServerName`, `Balance`, `Timestamp`, `createdAt`, `updatedAt` FROM `AccountInformations`;
- Executing (DEFAULT): DROP TABLE `AccountInformations`;
- Error creating DATABASE & TABLES WITH associations: Error
- at DATABASE.<anonymous> (/home/discordbot/node_modules/sequelize/lib/dialects/sqlite/query.js:185:27)
- at /home/discordbot/node_modules/sequelize/lib/dialects/sqlite/query.js:183:50
- at NEW Promise (<anonymous>)
- at Query.run (/home/discordbot/node_modules/sequelize/lib/dialects/sqlite/query.js:183:12)
- at /home/discordbot/node_modules/sequelize/lib/sequelize.js:315:28
- at async SQLiteQueryInterface.changeColumn (/home/discordbot/node_modules/sequelize/lib/dialects/sqlite/query-interface.js:43:7)
- at async AccountInformation.sync (/home/discordbot/node_modules/sequelize/lib/model.js:984:11)
- at async Sequelize.sync (/home/discordbot/node_modules/sequelize/lib/sequelize.js:377:9) {
- name: 'SequelizeForeignKeyConstraintError',
- parent: [Error: SQLITE_CONSTRAINT: FOREIGN KEY CONSTRAINT failed] {
- errno: 19,
- code: 'SQLITE_CONSTRAINT',
- SQL: 'DROP TABLE `AccountInformations`;'
- },
- original: [Error: SQLITE_CONSTRAINT: FOREIGN KEY CONSTRAINT failed] {
- errno: 19,
- code: 'SQLITE_CONSTRAINT',
- SQL: 'DROP TABLE `AccountInformations`;'
- },
- SQL: 'DROP TABLE `AccountInformations`;',
- parameters: {},
- TABLE: undefined,
- FIELDS: undefined,
- VALUE: undefined,
- INDEX: undefined,
- reltype: undefined
- }
- Ready! Logged IN AS Master Builder#8495
Advertisement
Add Comment
Please, Sign In to add comment