use accounting; alter table prepaid_costs add column timestamp timestamp not null; update prepaid_costs set timestamp = now(); alter table prepaid_costs add key (timestamp);