Added sql files, no longer need to get them from Trinity Core.

This commit is contained in:
hondacrx
2017-11-22 13:14:38 -05:00
parent 0909720464
commit 65fbebb12f
11507 changed files with 6456329 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
-- add temporary column
ALTER TABLE guild ADD COLUMN created_temp bigint(20) default '0';
-- update temporary columns data
UPDATE guild SET created_temp = UNIX_TIMESTAMP(createdate);
-- drop current column
ALTER TABLE guild DROP COLUMN createdate;
-- create new column with correct type
ALTER TABLE guild ADD COLUMN createdate bigint(20) NOT NULL default '0' AFTER motd;
-- copy data to new column
UPDATE guild set createdate = created_temp;
-- remove old column
ALTER TABLE guild DROP COLUMN created_temp;