Postado Março 14, 2017 8 anos Tenta assim ALTER TABLE `players` ADD COLUMN `skill_critical_hit_chance` INT(10) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_critical_hit_chance_tries` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_critical_hit_damage` INT(10) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_critical_hit_damage_tries` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_life_leech_chance` INT(10) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_life_leech_chance_tries` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_life_leech_amount` INT(10) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_life_leech_amount_tries` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_mana_leech_chance` INT(10) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_mana_leech_chance_tries` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_mana_leech_amount` INT(10) UNSIGNED NOT NULL DEFAULT 0; ALTER TABLE `players` ADD COLUMN `skill_mana_leech_amount_tries` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0; Editado Março 14, 2017 8 anos por rogaforyn2 (veja o histórico de edições) Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Março 14, 2017 8 anos Autor Antes da linha 1 eu tinha selecionado a table Players: SELECT * FROM `players` WHERE 1 Tentei selecionando a base de dados direta tbm, e não funcionou Tentei adicionar a coluna em Players através da estrutura (nas duas maneiras que você ensinou) por VARCHAR e INT, assim eu consegui adicionar a coluna com sucesso Só que o erro no console persistiu e o char não entrou ;/
Postado Março 14, 2017 8 anos A coluna que tá lá na tabela é a que ta aparecendo no erro? Tenta deixar INT, eu não sei pra que serve ela, se você souber coloca no tipo que vem na scheme ou algo do tipo se quiser. Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Março 14, 2017 8 anos Autor @rogaforyn2 Eu acabei trocando a database por uma que ja estava com a coluna na table Players (graças ao @Boos que me passou) e deu certo :D Obrigado pela ajuda #REP+ Editado Março 14, 2017 8 anos por Dornellas (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.