diff options
author | shennetsind <ind@henn.et> | 2014-02-19 15:16:46 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-02-19 15:16:46 -0300 |
commit | d0b9510cf0d7a47e53aa341462a1175326dfc09d (patch) | |
tree | 9fd3bc153a33cca6ad077545c23ad984d9bd0982 /sql-files/upgrades | |
parent | 37c20c832728b22ba23c3a3dfbe961fdbf9a3fb9 (diff) | |
download | hercules-d0b9510cf0d7a47e53aa341462a1175326dfc09d.tar.gz hercules-d0b9510cf0d7a47e53aa341462a1175326dfc09d.tar.bz2 hercules-d0b9510cf0d7a47e53aa341462a1175326dfc09d.tar.xz hercules-d0b9510cf0d7a47e53aa341462a1175326dfc09d.zip |
Follow up 9132878d911cfe720eaad94ad3d4a5dd11958f99
Fixed issue (8023) with sc rows (only those of tick = -1, aka permanent scs) duplicating due to lack of primary index.
Special Thanks to Flash, Haru.
Note that the upgrade script will clear the permanent statuses from your sc_data table (e.g. lex aeterna, carts) to ensure no issues are left.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'sql-files/upgrades')
-rw-r--r-- | sql-files/upgrades/2014-02-19--17-57.sql | 4 | ||||
-rw-r--r-- | sql-files/upgrades/index.txt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sql-files/upgrades/2014-02-19--17-57.sql b/sql-files/upgrades/2014-02-19--17-57.sql new file mode 100644 index 000000000..ebebe6665 --- /dev/null +++ b/sql-files/upgrades/2014-02-19--17-57.sql @@ -0,0 +1,4 @@ +#1392832626 +DELETE FROM `sc_data` WHERE `tick` = '-1'; +ALTER TABLE `sc_data` ADD PRIMARY KEY (`account_id`,`char_id`,`type`); +INSERT INTO `sql_updates` (`timestamp`) VALUES (1392832626);
\ No newline at end of file diff --git a/sql-files/upgrades/index.txt b/sql-files/upgrades/index.txt index bf404d919..39fbd0070 100644 --- a/sql-files/upgrades/index.txt +++ b/sql-files/upgrades/index.txt @@ -17,4 +17,5 @@ 2013-11-18--08-23.sql 2013-12-24--00-15.sql 2014-01-04--16-47.sql -2014-01-06--17-22.sql
\ No newline at end of file +2014-01-06--17-22.sql +2014-02-19--17-57.sql
\ No newline at end of file |