Sjobbe Posted May 13, 2013 Posted May 13, 2013 I have found that when you install the clan-wars module it trys to put 2 declareER in the sql replace into clans_stats_types(name) values('Honor'); CREATE TABLE IF NOT EXISTS clan_wars ( id int(10) NOT NULL AUTO_INCREMENT, declareER int(10) NOT NULL, declaredON int(10) NOT NULL, reason varchar(255) COLLATE utf8_unicode_ci NOT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, declareER int(10) NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin; after what I can see it should have surrenderER in it, but not sure on what spot and the different setups, I will post more when I fint out of that. Quote
KyleMassacre Posted May 13, 2013 Posted May 13, 2013 (edited) Change that last declareER to surrenderER. Ill look up my sql and fix it and submit the update. Here is the correct sql replace into clans_stats_types(name) values('Honor'); CREATE TABLE IF NOT EXISTS clan_wars ( id int(10) NOT NULL AUTO_INCREMENT, declareER int(10) NOT NULL, declaredON int(10) NOT NULL, reason varchar(255) COLLATE utf8_unicode_ci NOT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, surrenderER int(10) NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin; Edited May 13, 2013 by KyleMassacre added sql Quote
Sjobbe Posted May 13, 2013 Author Posted May 13, 2013 Change that last declareER to surrenderER. Ill look up my sql and fix it and submit the update. Here is the correct sql replace into clans_stats_types(name) values('Honor'); CREATE TABLE IF NOT EXISTS clan_wars ( id int(10) NOT NULL AUTO_INCREMENT, declareER int(10) NOT NULL, declaredON int(10) NOT NULL, reason varchar(255) COLLATE utf8_unicode_ci NOT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, surrenderER int(10) NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin; thanks but now when I click on Clan in the menu I get this error Query error: Unknown column 'declareER' in 'field list' select id, declareER, declaredON, reason, time, surrenderER from clan_wars where (declareER = ?) OR (declaredON = ?) if I disable clan_wars it works. Quote
KyleMassacre Posted May 14, 2013 Posted May 14, 2013 That is strange because the column does exists. Do you have a site up? If so you wanna pm me the domain so I can see for myself? Quote
KyleMassacre Posted May 18, 2013 Posted May 18, 2013 same error I get Try this: DROP TABLE clan_wars; CREATE TABLE IF NOT EXISTS clan_wars ( id int(10) NOT NULL AUTO_INCREMENT, declareER int(10) NOT NULL, declaredON int(10) NOT NULL, reason varchar(255) COLLATE utf8_unicode_ci NOT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, surrenderER int(10) NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin; Quote
VashNaroom Posted May 19, 2013 Posted May 19, 2013 clan wars and clans donate both work excellent for some reason I had to dump the original SQL from the db then reinstall mod and sql now both work great. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.