- Katılım
- 5 yıl 7 ay 21 gün
- Mesajlar
- 31
- Discord
- sequester#2640
Yardımcı olabilir misiniz ? Şimdiden teşekkürler.
Hata
SQL sorgusu:
CREATE TABLE IF NOT EXISTS `banlist` (
`identifier` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`license` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
`playerip` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
`targetplayername` varchar(32) COLLATE utf8mb4_bin NOT NULL,
`sourceplayername` varchar(32) COLLATE utf8mb4_bin NOT NULL,
`reason` varchar(75) COLLATE utf8mb4_bin NOT NULL,
`timeat` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`added` datetime DEFAULT CURRENT_TIMESTAMP,
`expiration` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`permanent` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
MySQL çıktısı:
#1067 - Invalid default value for 'added'
Hata
SQL sorgusu:
CREATE TABLE IF NOT EXISTS `banlist` (
`identifier` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`license` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
`playerip` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
`targetplayername` varchar(32) COLLATE utf8mb4_bin NOT NULL,
`sourceplayername` varchar(32) COLLATE utf8mb4_bin NOT NULL,
`reason` varchar(75) COLLATE utf8mb4_bin NOT NULL,
`timeat` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`added` datetime DEFAULT CURRENT_TIMESTAMP,
`expiration` varchar(50) COLLATE utf8mb4_bin NOT NULL,
`permanent` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
MySQL çıktısı:
#1067 - Invalid default value for 'added'