-
Notifications
You must be signed in to change notification settings - Fork 779
Expand file tree
/
Copy path2025-09-01--17-20.sql
More file actions
55 lines (48 loc) · 2.46 KB
/
2025-09-01--17-20.sql
File metadata and controls
55 lines (48 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#1725211254
-- This file is part of Hercules.
-- http://herc.ws - http://github.com/HerculesWS/Hercules
--
-- Copyright (C) 2025 Hercules Dev Team
--
-- Hercules is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
-- SQL date/time fields and general improvements
-- Convert DATETIME to TIMESTAMP for timezone support
ALTER TABLE `charlog` MODIFY `time` TIMESTAMP NULL;
ALTER TABLE `interlog` MODIFY `time` TIMESTAMP NULL;
ALTER TABLE `ipbanlist` MODIFY `btime` TIMESTAMP NULL;
ALTER TABLE `ipbanlist` MODIFY `rtime` TIMESTAMP NULL;
ALTER TABLE `login` MODIFY `lastlogin` TIMESTAMP NULL;
-- Convert BIGINT to TIMESTAMP for last_login
ALTER TABLE `char` MODIFY `last_login` TIMESTAMP NULL DEFAULT NULL;
-- Allow NULL for optional IDs
ALTER TABLE `char` MODIFY `party_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `guild_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `clan_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `pet_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `homun_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `elemental_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `partner_id` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `father` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `mother` INT UNSIGNED NULL DEFAULT NULL;
ALTER TABLE `char` MODIFY `child` INT UNSIGNED NULL DEFAULT NULL;
-- Log tables
ALTER TABLE `atcommandlog` MODIFY `atcommand_date` TIMESTAMP NULL;
ALTER TABLE `branchlog` MODIFY `branch_date` TIMESTAMP NULL;
ALTER TABLE `chatlog` MODIFY `time` TIMESTAMP NULL;
ALTER TABLE `loginlog` MODIFY `time` TIMESTAMP NULL;
ALTER TABLE `mvplog` MODIFY `mvp_date` TIMESTAMP NULL;
ALTER TABLE `npclog` MODIFY `npc_date` TIMESTAMP NULL;
ALTER TABLE `picklog` MODIFY `time` TIMESTAMP NULL;
ALTER TABLE `zenylog` MODIFY `time` TIMESTAMP NULL;
INSERT INTO `sql_updates` (`timestamp`) VALUES (1725211254);