DROP TABLE IF EXISTS character_custom_spell_display; CREATE TABLE character_custom_spell_display ( charid INTEGER NOT NULL, spell_id INTEGER NOT NULL, idx INTEGER NOT NULL, field TEXT NOT NULL, value TEXT, PRIMARY KEY (charid, spell_id, idx, field) );