View Single Post
  #23  
Old 03-22-2017, 02:13 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

IIRC, I dropped the 'value' column in the newer table..and since it doesn't exist if the older table doesn't, the query errors out.

What I should do is just replace:
Code:
SHOW COLUMNS FROM `bot_spell_casting_chances` LIKE 'value'
..with an `information_schema` table check for that column and it shouldn't error out due to the table not being there.

SHOW COLUMNS is convenient to use..but, it doesn't play well when the table doesn't exist...


EDIT: Lol! I wish I had learned it 20 years ago..I was too busy loading 500/2000 pound munitions on F-15s/16s
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote