Would it have anything to do with the database collation? Im not a sql expert. I use unicode_ci. Would the charset make a difference? I use utf8mb4 on the whole database so this sql matches my stuff anyway. Do we have any sql experts here? I do know that InnoDB and MyISAM can be mixed, so that isnt an issue
/*********************************************/
/* By OXYDE - torrenttrader.uk (2023) */
/* */
/* Torrent Trader v3 */
/*********************************************/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for commonpot
-- ----------------------------
DROP TABLE IF EXISTS `commonpot`;
CREATE TABLE `commonpot` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`userid` int(6) NULL DEFAULT NULL,
`points` decimal(25, 0) NULL DEFAULT NULL,
`added` datetime NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of commonpot
-- ----------------------------
-- ----------------------------
-- Table structure for commonpot_status
-- ----------------------------
DROP TABLE IF EXISTS `commonpot_status`;
CREATE TABLE `commonpot_status` (
`status` enum('stopped','started') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'stopped',
`start_date` datetime NULL DEFAULT NULL,
`stop_date` datetime NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of commonpot_status
-- ----------------------------
INSERT INTO `commonpot_status` VALUES ('stopped', NULL, NULL);
SET FOREIGN_KEY_CHECKS = 1;
perhaps this would be better? I dont know your sql, so I took a guess
DROP TABLE IF EXISTS `commonpot`;
CREATE TABLE `commonpot` (
`id` int(6) NOT NULL AUTO_INCREMENT,
`userid` int(6) NULL DEFAULT NULL,
`points` decimal(25, 0) NULL DEFAULT NULL,
`added` datetime NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = MyISAM AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci;
DROP TABLE IF EXISTS `commonpot_status`;
CREATE TABLE `commonpot_status` (
`status` enum('stopped','started') CHARACTER SET utf8 NOT NULL DEFAULT 'stopped',
`start_date` datetime NULL DEFAULT NULL,
`stop_date` datetime NULL DEFAULT NULL
) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_General_ci;
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2023-02-04 21:31:11