diff --git a/db_scripts/diff/10950.down b/db_scripts/diff/10950.down new file mode 100644 index 00000000..ceb8bc6a --- /dev/null +++ b/db_scripts/diff/10950.down @@ -0,0 +1,2 @@ +use accounting; +alter table prepaid_costs drop column timestamp; diff --git a/db_scripts/diff/10950.up b/db_scripts/diff/10950.up new file mode 100644 index 00000000..926d0af6 --- /dev/null +++ b/db_scripts/diff/10950.up @@ -0,0 +1,5 @@ +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);