summaryrefslogtreecommitdiff
path: root/sql-files
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-14 23:38:31 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-01-14 23:38:31 +0000
commit7b5a33083c2b411e37f9412091937c18dbe92e29 (patch)
tree958618a37e721e0072a0191dce1cc027ccba07c3 /sql-files
parent178e1269471a35507a1965fdb1548f052312a6a3 (diff)
downloadhercules-7b5a33083c2b411e37f9412091937c18dbe92e29.tar.gz
hercules-7b5a33083c2b411e37f9412091937c18dbe92e29.tar.bz2
hercules-7b5a33083c2b411e37f9412091937c18dbe92e29.tar.xz
hercules-7b5a33083c2b411e37f9412091937c18dbe92e29.zip
* Added 'birthdate' field to account data. For SQL apply upgrade_svn14672.sql to upgrade table `login`; for TXT no action is necessary, as it upgrades itself.
- Control panel developers are encouraged to enable players to modify this value, as it is required for new character deletion (2010-08-03aRagexeRE and later, not yet implemented). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14672 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'sql-files')
-rw-r--r--sql-files/main.sql1
-rw-r--r--sql-files/upgrade_svn14672.sql1
2 files changed, 2 insertions, 0 deletions
diff --git a/sql-files/main.sql b/sql-files/main.sql
index 9e55daf33..55cc8b4bc 100644
--- a/sql-files/main.sql
+++ b/sql-files/main.sql
@@ -406,6 +406,7 @@ CREATE TABLE IF NOT EXISTS `login` (
`logincount` mediumint(9) unsigned NOT NULL default '0',
`lastlogin` datetime NOT NULL default '0000-00-00 00:00:00',
`last_ip` varchar(100) NOT NULL default '',
+ `birthdate` DATE NOT NULL DEFAULT '0000-00-00',
PRIMARY KEY (`account_id`),
KEY `name` (`userid`)
) ENGINE=MyISAM AUTO_INCREMENT=2000000;
diff --git a/sql-files/upgrade_svn14672.sql b/sql-files/upgrade_svn14672.sql
new file mode 100644
index 000000000..f0658f40c
--- /dev/null
+++ b/sql-files/upgrade_svn14672.sql
@@ -0,0 +1 @@
+ALTER TABLE `login` ADD `birthdate` DATE NOT NULL DEFAULT '0000-00-00';