Is there a simple way to modify a table in recent sqlite versions so that it matches a predefined schema?
Schema:
war_id INTEGER NOT NULL,
clanname VARCHAR(64),
clanhomepage VARCHAR(128),
date DATETIME,
server VARCHAR(64),
warmode_id INTEGER,
squad_id INTEGER,
notes TEXT, clantag String(16),
PRIMARY KEY (war_id),
FOREIGN KEY(warmode_id) REFERENCES warmodes (warmode_id),
FOREIGN KEY(squad_id) REFERENCES squads (squad_id),
FOREIGN KEY(orgamember_id) REFERENCES users (user_id)
Now I want to insert clantag VARCHAR(16) after clanname so it is consistent with other setups.
I don't mind exporting, ditching, recreating, yet I wonder if there's an option to do so without that, given other sql databases can handle that...