ALTER TABLE exlog ADD COLUMN movenum INTEGER NOT NULL DEFAULT 0;

UPDATE exlog SET movenum = rowid;