Drop the old table not the new table

This commit is contained in:
Mark Haines 2015-05-08 16:04:32 +01:00
parent 9d36eb4eab
commit 1c7912751e

View File

@ -27,6 +27,6 @@ CREATE TABLE IF NOT EXISTS new_server_keys_json (
INSERT INTO new_server_keys_json
SELECT server_name, key_id, from_server,ts_added_ms, ts_valid_until_ms, key_json FROM server_keys_json ;
DROP TABLE new_server_keys_json;
DROP TABLE server_keys_json;
ALTER TABLE new_server_keys_json RENAME TO server_keys_json;