Selaa lähdekoodia

- Added an upgrade_svn file to fix the party sql table (it lacks the auto-increment property on the party_id column)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5311 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 19 vuotta sitten
vanhempi
commit
d0c9123432
3 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 3 0
      Changelog-Trunk.txt
  2. 1 1
      sql-files/main.sql
  3. 1 0
      sql-files/upgrade_svn5311.sql

+ 3 - 0
Changelog-Trunk.txt

@@ -5,6 +5,9 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EV
 GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS
 
 2006/02/17
+	* Added an upgrade_svn file that should fix the party table by making the
+	  party_id auto-incremental. Apply this or new parties will always fail!
+	  [Skotlex]
 	* Changed around the included files in irc.c to see if it compiles under
 	  Win32 native. [Skotlex]
 	* Char-SQL server updates: [Skotlex]

+ 1 - 1
sql-files/main.sql

@@ -433,7 +433,7 @@ CREATE TABLE `memo` (
 
 DROP TABLE IF EXISTS `party`;
 CREATE TABLE `party` (
-  `party_id` int(11) unsigned NOT NULL default '100',
+  `party_id` int(11) unsigned NOT NULL auto_increment,
   `name` char(100) NOT NULL default '',
   `exp` tinyint(11) unsigned NOT NULL default '0',
   `item` tinyint(11) unsigned NOT NULL default '0',

+ 1 - 0
sql-files/upgrade_svn5311.sql

@@ -0,0 +1 @@
+ALTER TABLE `party` MODIFY `party_id` int(11) unsigned NOT NULL auto_increment;