fix order of drop statement

This commit is contained in:
Andrea Maria Piana 2023-10-27 15:24:50 +01:00
parent 360c2d50d4
commit d47b5733c0
No known key found for this signature in database
3 changed files with 9 additions and 10 deletions

View File

@ -106,7 +106,7 @@
// 1695918296_add_validated_at.up.sql (377B)
// 1697699419_community_control_node_sync.up.sql (435B)
// 1698137561_add_profile_showcase_tables.up.sql (440B)
// 1698137562_fix_encryption_key_id.up.sql (759B)
// 1698137562_fix_encryption_key_id.up.sql (758B)
// 1698414646_add_padding.up.sql (69B)
// README.md (554B)
// doc.go (850B)
@ -2297,7 +2297,7 @@ func _1698137561_add_profile_showcase_tablesUpSql() (*asset, error) {
return a, nil
}
var __1698137562_fix_encryption_key_idUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x52\x3d\x6f\xb3\x30\x10\xde\xef\x57\xdc\x98\x48\x4c\xef\x8a\xde\xc1\x21\x97\x0a\xd5\xb1\x91\xe3\x0c\x99\x2c\x04\x56\x41\x11\x1f\x05\xb7\x12\x52\x7e\x7c\xe5\xb4\xb4\xa2\x94\x24\xab\xfd\x9c\x9e\xcf\x48\x11\xd3\x84\x9a\x6d\x38\x61\x91\xf6\x85\xe9\x52\x97\x15\xd6\x19\x5b\x67\xdd\xd0\xba\xb2\xa9\xcd\xfb\x3f\x5c\x01\xe2\x4b\xd7\xbc\xb5\xa6\xcc\x71\xc3\xe5\x06\x85\xd4\x28\x8e\x9c\x07\x80\x98\xdb\xb6\xb3\x59\xea\x6c\x6e\xce\x76\xf0\x90\x58\xe8\x09\xe2\x6c\x87\xf9\x99\xc7\xba\xb2\xb2\xbd\x4b\xab\xf6\xfa\x3d\xbe\xfe\x45\x92\xa8\x78\xcf\xd4\x09\x9f\xe9\xb4\xfa\xc4\xac\x51\x0a\x8c\xa4\xd8\xf1\x38\xd2\xa8\x28\xe1\x2c\x22\x58\x87\x00\xb1\x38\x90\xd2\x5e\x85\xbc\xe1\x6a\x35\x3a\x0a\xe6\x0e\x02\xaf\x23\xc0\x91\xe8\x40\x9c\x22\x8d\x3f\x07\x13\xd4\x77\x32\x97\xcb\x28\x7f\xa7\xe4\x7e\x89\x3a\x04\xd8\x2a\x99\xdc\x4e\x3d\x04\x60\x5c\x93\xba\xdf\x8d\x22\xc1\xf6\x84\xcb\x56\x43\x00\x38\x26\x5b\x5f\xf4\x02\x02\x0f\xa4\x7f\xd5\xf1\x7f\x9e\xc9\x43\xba\x4d\x96\x66\x85\x0d\x01\x1e\x9a\xd6\x15\x7c\x67\x5d\x5f\x89\x96\xb5\x9b\x3c\xf7\xf6\xd5\xd4\x8d\xef\x98\x9e\x48\xf9\x17\x4f\x32\x3f\xef\x87\xca\x33\x9a\x71\x82\x7e\x20\x1f\x01\x00\x00\xff\xff\x81\xfe\x72\x41\xf7\x02\x00\x00")
var __1698137562_fix_encryption_key_idUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x92\x3f\x6f\x83\x30\x10\xc5\xf7\xfb\x14\x37\x26\x12\x53\x57\xd4\xc1\x21\x97\x0a\xd5\xb1\x91\xe3\x0c\x99\x2c\x44\xac\x82\x22\xfe\x14\xdc\x4a\x48\xf9\xf0\x95\xd3\xd2\x8a\x52\x4a\x56\xfb\x77\x7a\xf7\xde\xbd\x48\x11\xd3\x84\x9a\x6d\x38\x61\x9e\x76\xb9\x69\x53\x97\xe5\xd6\x19\x5b\x65\x6d\xdf\xb8\xa2\xae\xcc\xfb\x03\xae\x00\xf1\xa5\xad\xdf\x1a\x53\x9c\x71\xc3\xe5\x06\x85\xd4\x28\x8e\x9c\x07\x80\x78\xb6\x4d\x6b\xb3\xd4\xd9\xb3\xb9\xd8\xde\x23\xb1\xd0\x23\xe2\x62\xfb\xe9\x98\x67\x5d\x51\xda\xce\xa5\x65\x73\xfb\x1e\x5e\xff\x12\x49\x54\xbc\x67\xea\x84\xcf\x74\x5a\x7d\x32\x6b\x94\x02\x23\x29\x76\x3c\x8e\x34\x2a\x4a\x38\x8b\x08\xd6\x21\x40\x2c\x0e\xa4\xb4\xdf\x42\xfe\xe3\x6a\x35\x38\x0a\xa6\x0e\x02\xbf\x47\x80\x83\xd0\x81\x38\x45\x1a\x7f\x06\x46\xd4\x77\x32\xd7\xeb\xb0\xfe\x4e\xc9\xfd\x9c\x74\x08\xb0\x55\x32\x59\x48\x3d\x4b\xb3\xdc\xde\x85\x86\x00\x8c\x6b\x52\xcb\x67\x54\x24\xd8\x9e\x70\x3e\x95\x10\xe0\x98\x6c\x7d\x25\x66\x00\x3c\x90\xfe\x75\xb8\xc7\x69\x7a\x21\xc0\x5d\xcd\xba\x79\x5c\x28\xd7\x57\xa0\x45\xe5\x46\xcf\x9d\x7d\x35\x55\xed\x4f\x4c\x4f\xa4\xfc\x8b\x17\x99\x8e\x77\x7d\xe9\x15\xcd\xd0\x40\xdf\x8f\x8f\x00\x00\x00\xff\xff\x7a\xab\xcf\xd7\xf6\x02\x00\x00")
func _1698137562_fix_encryption_key_idUpSqlBytes() ([]byte, error) {
return bindataRead(
@ -2312,8 +2312,8 @@ func _1698137562_fix_encryption_key_idUpSql() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "1698137562_fix_encryption_key_id.up.sql", size: 759, mode: os.FileMode(0644), modTime: time.Unix(1698567318, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb6, 0x4d, 0x54, 0x8c, 0xd4, 0x6d, 0xfa, 0x76, 0x2f, 0x8a, 0xde, 0x4a, 0xc0, 0x53, 0xc, 0xb7, 0xf1, 0x0, 0x45, 0xd3, 0xa0, 0x5, 0xe3, 0x4a, 0xe5, 0x87, 0xb4, 0x50, 0x46, 0xd0, 0xa0, 0xd9}}
info := bindataFileInfo{name: "1698137562_fix_encryption_key_id.up.sql", size: 758, mode: os.FileMode(0644), modTime: time.Unix(1698663299, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe5, 0x61, 0x1b, 0x6a, 0xb1, 0x44, 0x8d, 0x47, 0xde, 0x55, 0x45, 0x77, 0x8e, 0x4f, 0xb, 0x6a, 0x7f, 0x83, 0x56, 0x9c, 0x80, 0xc0, 0xae, 0xda, 0xd8, 0xaf, 0x7e, 0x2b, 0xb4, 0x5e, 0xc3, 0x63}}
return a, nil
}
@ -2332,7 +2332,7 @@ func _1698414646_add_paddingUpSql() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "1698414646_add_padding.up.sql", size: 69, mode: os.FileMode(0644), modTime: time.Unix(1698567318, 0)}
info := bindataFileInfo{name: "1698414646_add_padding.up.sql", size: 69, mode: os.FileMode(0644), modTime: time.Unix(1698663299, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbf, 0x48, 0x8e, 0x18, 0x1b, 0x81, 0x78, 0xab, 0x42, 0xcb, 0x11, 0xf5, 0xe, 0x44, 0xd4, 0x35, 0x33, 0x4e, 0x8, 0x6f, 0x14, 0x90, 0xe6, 0x2b, 0x59, 0xee, 0x87, 0xb, 0x96, 0x62, 0x3, 0x45}}
return a, nil
}

View File

@ -9,15 +9,14 @@ CREATE TABLE hash_ratchet_encryption_v2 (
INSERT INTO hash_ratchet_encryption_v2(group_id, deprecated_key_id, key, key_id) SELECT group_id, key_id, key, group_id || key_id FROM hash_ratchet_encryption;
DROP TABLE hash_ratchet_encryption_cache;
DROP TABLE hash_ratchet_encryption;
ALTER TABLE hash_ratchet_encryption_v2 RENAME TO hash_ratchet_encryption;
UPDATE hash_ratchet_encryption SET key_timestamp = deprecated_key_id;
DROP TABLE hash_ratchet_encryption_cache;
CREATE TABLE hash_ratchet_encryption_cache (
group_id BLOB NOT NULL,
key_id int NOT NULL,

View File

@ -253,7 +253,7 @@ func _1698117918_add_community_id_to_tokensUpSql() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "1698117918_add_community_id_to_tokens.up.sql", size: 61, mode: os.FileMode(0644), modTime: time.Unix(1698416596, 0)}
info := bindataFileInfo{name: "1698117918_add_community_id_to_tokens.up.sql", size: 61, mode: os.FileMode(0644), modTime: time.Unix(1698663299, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb3, 0x82, 0xdb, 0xde, 0x3, 0x3, 0xc, 0x67, 0xf3, 0x54, 0xc4, 0xad, 0xd6, 0xce, 0x56, 0xfb, 0xc1, 0x87, 0xd7, 0xda, 0xab, 0xec, 0x1, 0xe1, 0x7d, 0xb3, 0x63, 0xd6, 0xe5, 0x5d, 0x1c, 0x15}}
return a, nil
}
@ -273,7 +273,7 @@ func _1698257443_add_community_metadata_to_wallet_dbUpSql() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "1698257443_add_community_metadata_to_wallet_db.up.sql", size: 323, mode: os.FileMode(0644), modTime: time.Unix(1698416596, 0)}
info := bindataFileInfo{name: "1698257443_add_community_metadata_to_wallet_db.up.sql", size: 323, mode: os.FileMode(0644), modTime: time.Unix(1698663299, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x22, 0xd3, 0x4, 0x25, 0xfa, 0x23, 0x1, 0x48, 0x83, 0x26, 0x20, 0xf2, 0x3d, 0xbc, 0xc1, 0xa7, 0x7c, 0x27, 0x7c, 0x1d, 0x63, 0x3, 0xa, 0xd0, 0xce, 0x47, 0x86, 0xdc, 0xa1, 0x3c, 0x2, 0x1c}}
return a, nil
}