Final migration step, remove identity_key column from keys table.

This commit is contained in:
Moxie Marlinspike 2014-06-25 21:51:22 -07:00
parent 3bd58bf25e
commit 98d277368f
1 changed files with 4 additions and 0 deletions

View File

@ -167,4 +167,8 @@
<sql>UPDATE accounts SET data = custom_json_object_set_key(data, 'identityKey', k.identity_key) FROM keys k WHERE (data->>'identityKey')::text is null AND k.number = data->>'number' AND k.last_resort = 1;</sql>
<sql>UPDATE accounts SET data = custom_json_object_set_key(data, 'identityKey', k.identity_key) FROM keys k WHERE (data->>'identityKey')::text is null AND k.number = data->>'number';</sql>
</changeSet>
<changeSet id="4" author="moxie">
<dropColumn tableName="keys" columnName="identity_key"/>
</changeSet>
</databaseChangeLog>