diff --git a/VERSION b/VERSION index 328185caa..5caa138cb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.67.0 +0.67.1 diff --git a/appdatabase/migrations/bindata.go b/appdatabase/migrations/bindata.go index 16a9a9af0..4f3c9120e 100644 --- a/appdatabase/migrations/bindata.go +++ b/appdatabase/migrations/bindata.go @@ -315,7 +315,7 @@ func _0006_appearanceUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0006_appearance.up.sql", size: 67, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "0006_appearance.up.sql", size: 67, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xae, 0x6, 0x25, 0x6c, 0xe4, 0x9d, 0xa7, 0x72, 0xe8, 0xbc, 0xe4, 0x1f, 0x1e, 0x2d, 0x7c, 0xb7, 0xf6, 0xa3, 0xec, 0x3b, 0x4e, 0x93, 0x2e, 0xa4, 0xec, 0x6f, 0xe5, 0x95, 0x94, 0xe8, 0x4, 0xfb}} return a, nil } @@ -335,7 +335,7 @@ func _0007_enable_waku_defaultUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0007_enable_waku_default.up.sql", size: 38, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "0007_enable_waku_default.up.sql", size: 38, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd4, 0x42, 0xb6, 0xe5, 0x48, 0x41, 0xeb, 0xc0, 0x7e, 0x3b, 0xe6, 0x8e, 0x96, 0x33, 0x20, 0x92, 0x24, 0x5a, 0x60, 0xfa, 0xa0, 0x3, 0x5e, 0x76, 0x4b, 0x89, 0xaa, 0x37, 0x66, 0xbc, 0x26, 0x11}} return a, nil } @@ -355,7 +355,7 @@ func _0008_add_push_notificationsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0008_add_push_notifications.up.sql", size: 349, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "0008_add_push_notifications.up.sql", size: 349, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5a, 0x0, 0xbf, 0xd0, 0xdd, 0xcd, 0x73, 0xe0, 0x7c, 0x56, 0xef, 0xdc, 0x57, 0x61, 0x94, 0x64, 0x70, 0xb9, 0xfa, 0xa1, 0x2a, 0x36, 0xc, 0x2f, 0xf8, 0x95, 0xa, 0x57, 0x3e, 0x7a, 0xd7, 0x12}} return a, nil } @@ -375,7 +375,7 @@ func _0009_enable_sending_push_notificationsDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0009_enable_sending_push_notifications.down.sql", size: 49, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "0009_enable_sending_push_notifications.down.sql", size: 49, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe9, 0xae, 0x1b, 0x41, 0xcb, 0x9c, 0x2c, 0x93, 0xc6, 0x2a, 0x77, 0x3, 0xb9, 0x51, 0xe0, 0x68, 0x68, 0x0, 0xf7, 0x5b, 0xb3, 0x1e, 0x94, 0x44, 0xba, 0x9c, 0xd0, 0x3b, 0x80, 0x21, 0x6f, 0xb5}} return a, nil } @@ -395,7 +395,7 @@ func _0009_enable_sending_push_notificationsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0009_enable_sending_push_notifications.up.sql", size: 49, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "0009_enable_sending_push_notifications.up.sql", size: 49, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1b, 0x80, 0xe4, 0x9c, 0xc8, 0xb8, 0xd5, 0xef, 0xce, 0x74, 0x9b, 0x7b, 0xdd, 0xa, 0x99, 0x1e, 0xef, 0x7f, 0xb8, 0x99, 0x84, 0x4, 0x0, 0x6b, 0x1d, 0x2c, 0xa, 0xf8, 0x2c, 0x4f, 0xb5, 0x44}} return a, nil } @@ -415,7 +415,7 @@ func _0010_add_block_mentionsDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0010_add_block_mentions.down.sql", size: 83, mode: os.FileMode(0644), modTime: time.Unix(1599682300, 0)} + info := bindataFileInfo{name: "0010_add_block_mentions.down.sql", size: 83, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6d, 0x9e, 0x27, 0x1e, 0xba, 0x9f, 0xca, 0xae, 0x98, 0x2e, 0x6e, 0xe3, 0xdd, 0xac, 0x73, 0x34, 0x4e, 0x69, 0x92, 0xb5, 0xf6, 0x9, 0xab, 0x50, 0x35, 0xd, 0xee, 0xeb, 0x3e, 0xcc, 0x7e, 0xce}} return a, nil } @@ -435,7 +435,7 @@ func _0010_add_block_mentionsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0010_add_block_mentions.up.sql", size: 89, mode: os.FileMode(0644), modTime: time.Unix(1599682300, 0)} + info := bindataFileInfo{name: "0010_add_block_mentions.up.sql", size: 89, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd7, 0x23, 0x85, 0xa2, 0xb5, 0xb6, 0xb4, 0x3f, 0xdc, 0x4e, 0xff, 0xe2, 0x6b, 0x66, 0x68, 0x5e, 0xb2, 0xb4, 0x14, 0xb2, 0x1b, 0x4d, 0xb1, 0xce, 0xf7, 0x6, 0x58, 0xa7, 0xaf, 0x93, 0x3f, 0x25}} return a, nil } @@ -455,7 +455,7 @@ func _0011_allow_webview_permission_requestsDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0011_allow_webview_permission_requests.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599736519, 0)} + info := bindataFileInfo{name: "0011_allow_webview_permission_requests.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} return a, nil } @@ -475,7 +475,7 @@ func _0011_allow_webview_permission_requestsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0011_allow_webview_permission_requests.up.sql", size: 88, mode: os.FileMode(0644), modTime: time.Unix(1599736519, 0)} + info := bindataFileInfo{name: "0011_allow_webview_permission_requests.up.sql", size: 88, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x43, 0x5f, 0x22, 0x4c, 0x98, 0x1d, 0xc6, 0xf4, 0x89, 0xaf, 0xf4, 0x44, 0xba, 0xf8, 0x28, 0xa7, 0xb5, 0xb9, 0xf0, 0xf2, 0xcb, 0x5, 0x59, 0x7a, 0xc, 0xdf, 0xd3, 0x38, 0xa4, 0xb8, 0x98, 0xc2}} return a, nil } @@ -495,7 +495,7 @@ func _0012_pending_transactionsDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0012_pending_transactions.down.sql", size: 33, mode: os.FileMode(0644), modTime: time.Unix(1600152154, 0)} + info := bindataFileInfo{name: "0012_pending_transactions.down.sql", size: 33, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7e, 0x41, 0xfe, 0x5c, 0xd8, 0xc3, 0x29, 0xfd, 0x31, 0x78, 0x99, 0x7a, 0xeb, 0x17, 0x62, 0x88, 0x41, 0xb3, 0xe7, 0xb5, 0x5, 0x0, 0x90, 0xa1, 0x7, 0x1a, 0x23, 0x88, 0x81, 0xba, 0x56, 0x9d}} return a, nil } @@ -515,7 +515,7 @@ func _0012_pending_transactionsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0012_pending_transactions.up.sql", size: 321, mode: os.FileMode(0644), modTime: time.Unix(1600152154, 0)} + info := bindataFileInfo{name: "0012_pending_transactions.up.sql", size: 321, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd, 0x17, 0xff, 0xd7, 0xa7, 0x49, 0x1e, 0x7b, 0x34, 0x63, 0x7c, 0x53, 0xaa, 0x6b, 0x2d, 0xc8, 0xe0, 0x82, 0x21, 0x90, 0x3a, 0x94, 0xf1, 0xa6, 0xe4, 0x70, 0xe5, 0x85, 0x1a, 0x48, 0x25, 0xb}} return a, nil } @@ -535,7 +535,7 @@ func _0013_favouritesDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0013_favourites.down.sql", size: 23, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0013_favourites.down.sql", size: 23, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x32, 0xf8, 0x55, 0x13, 0x4f, 0x4a, 0x19, 0x83, 0x9c, 0xda, 0x34, 0xb8, 0x3, 0x54, 0x82, 0x1e, 0x99, 0x36, 0x6b, 0x42, 0x3, 0xf6, 0x43, 0xde, 0xe6, 0x32, 0xb6, 0xdf, 0xe2, 0x59, 0x8c, 0x84}} return a, nil } @@ -555,7 +555,7 @@ func _0013_favouritesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0013_favourites.up.sql", size: 132, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0013_favourites.up.sql", size: 132, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbe, 0x1, 0x27, 0x38, 0x76, 0xf5, 0xcb, 0x61, 0xda, 0x5b, 0xce, 0xd9, 0x8b, 0x18, 0x77, 0x61, 0x84, 0xe7, 0x22, 0xe2, 0x13, 0x99, 0xab, 0x32, 0xbc, 0xbe, 0xed, 0x1f, 0x2f, 0xb0, 0xe4, 0x8d}} return a, nil } @@ -575,7 +575,7 @@ func _0014_add_use_mailserversDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0014_add_use_mailservers.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0014_add_use_mailservers.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} return a, nil } @@ -595,7 +595,7 @@ func _0014_add_use_mailserversUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0014_add_use_mailservers.up.sql", size: 111, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0014_add_use_mailservers.up.sql", size: 111, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc9, 0xba, 0x65, 0xbf, 0x1b, 0xc9, 0x6d, 0x45, 0xf2, 0xf5, 0x30, 0x7c, 0xc1, 0xde, 0xb8, 0xe3, 0x3f, 0xa9, 0x2f, 0x9f, 0xea, 0x1, 0x29, 0x29, 0x65, 0xe7, 0x38, 0xab, 0xa4, 0x62, 0xf, 0xd0}} return a, nil } @@ -615,7 +615,7 @@ func _0015_link_previewsDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0015_link_previews.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0015_link_previews.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} return a, nil } @@ -635,7 +635,7 @@ func _0015_link_previewsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0015_link_previews.up.sql", size: 203, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0015_link_previews.up.sql", size: 203, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb1, 0xf7, 0x38, 0x25, 0xa6, 0xfc, 0x6b, 0x9, 0xe4, 0xd9, 0xbf, 0x58, 0x7b, 0x80, 0xd8, 0x48, 0x63, 0xde, 0xa5, 0x5e, 0x30, 0xa3, 0xeb, 0x68, 0x8e, 0x6a, 0x9f, 0xfd, 0xf4, 0x46, 0x41, 0x34}} return a, nil } @@ -655,7 +655,7 @@ func _0016_local_notifications_preferencesDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0016_local_notifications_preferences.down.sql", size: 43, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0016_local_notifications_preferences.down.sql", size: 43, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe0, 0x50, 0xc7, 0xdd, 0x53, 0x9c, 0x5d, 0x1e, 0xb5, 0x71, 0x25, 0x50, 0x58, 0xcf, 0x6d, 0xbe, 0x5a, 0x8, 0x12, 0xc9, 0x13, 0xd, 0x9a, 0x3d, 0x4b, 0x7a, 0x2f, 0x1b, 0xe5, 0x23, 0x52, 0x78}} return a, nil } @@ -675,7 +675,7 @@ func _0016_local_notifications_preferencesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0016_local_notifications_preferences.up.sql", size: 204, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0016_local_notifications_preferences.up.sql", size: 204, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3f, 0x3a, 0x16, 0x25, 0xdf, 0xba, 0x62, 0xd3, 0x81, 0x73, 0xc, 0x10, 0x85, 0xbc, 0x8d, 0xe, 0x1d, 0x62, 0xcb, 0xb, 0x6d, 0x8c, 0x4f, 0x63, 0x5f, 0xe2, 0xd, 0xc5, 0x46, 0xa8, 0x35, 0x5b}} return a, nil } @@ -695,7 +695,7 @@ func _0017_bookmarksDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0017_bookmarks.down.sql", size: 22, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0017_bookmarks.down.sql", size: 22, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9a, 0x13, 0x2a, 0x44, 0xb0, 0x3, 0x18, 0x63, 0xb8, 0x33, 0xda, 0x3a, 0xeb, 0xb8, 0xcb, 0xd1, 0x98, 0x29, 0xa7, 0xf0, 0x6, 0x9d, 0xc9, 0x62, 0xe7, 0x89, 0x7f, 0x77, 0xaf, 0xec, 0x6b, 0x8f}} return a, nil } @@ -715,7 +715,7 @@ func _0017_bookmarksUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "0017_bookmarks.up.sql", size: 147, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "0017_bookmarks.up.sql", size: 147, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbc, 0x47, 0xe1, 0xe3, 0xd8, 0xc6, 0x4, 0x6d, 0x5f, 0x2f, 0xa, 0x51, 0xa6, 0x8c, 0x6a, 0xe0, 0x3d, 0x8c, 0x91, 0x47, 0xbc, 0x1, 0x75, 0x46, 0x92, 0x2, 0x18, 0x6e, 0xe3, 0x4f, 0x18, 0x57}} return a, nil } diff --git a/multiaccounts/migrations/bindata.go b/multiaccounts/migrations/bindata.go index 00d3df720..1ba26e33a 100644 --- a/multiaccounts/migrations/bindata.go +++ b/multiaccounts/migrations/bindata.go @@ -130,7 +130,7 @@ func _1605007189_identity_imagesDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1605007189_identity_images.down.sql", size: 29, mode: os.FileMode(0644), modTime: time.Unix(1608278926, 0)} + info := bindataFileInfo{name: "1605007189_identity_images.down.sql", size: 29, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2f, 0xcf, 0xa7, 0xae, 0xd5, 0x4f, 0xcd, 0x14, 0x63, 0x9, 0xbe, 0x39, 0x49, 0x18, 0x96, 0xb2, 0xa3, 0x8, 0x7d, 0x41, 0xdb, 0x50, 0x5d, 0xf5, 0x4d, 0xa2, 0xd, 0x8f, 0x57, 0x79, 0x77, 0x67}} return a, nil } @@ -150,7 +150,7 @@ func _1605007189_identity_imagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1605007189_identity_images.up.sql", size: 268, mode: os.FileMode(0644), modTime: time.Unix(1608278926, 0)} + info := bindataFileInfo{name: "1605007189_identity_images.up.sql", size: 268, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x50, 0xb6, 0xc1, 0x5c, 0x76, 0x72, 0x6b, 0x22, 0x34, 0xdc, 0x96, 0xdc, 0x2b, 0xfd, 0x2d, 0xbe, 0xcc, 0x1e, 0xd4, 0x5, 0x93, 0xd, 0xc2, 0x51, 0xf3, 0x1a, 0xef, 0x2b, 0x26, 0xa4, 0xeb, 0x65}} return a, nil } @@ -170,7 +170,7 @@ func _1606224181_drop_photo_path_from_accountsDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1606224181_drop_photo_path_from_accounts.down.sql", size: 892, mode: os.FileMode(0644), modTime: time.Unix(1608278926, 0)} + info := bindataFileInfo{name: "1606224181_drop_photo_path_from_accounts.down.sql", size: 892, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x90, 0x24, 0x17, 0x7, 0x80, 0x93, 0x6f, 0x8d, 0x5d, 0xaa, 0x8c, 0x79, 0x15, 0x5d, 0xb3, 0x19, 0xd7, 0xd8, 0x39, 0xf9, 0x3a, 0x63, 0x8f, 0x81, 0x15, 0xb6, 0xd6, 0x9a, 0x37, 0xa8, 0x8e, 0x9b}} return a, nil } @@ -190,7 +190,7 @@ func _1606224181_drop_photo_path_from_accountsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1606224181_drop_photo_path_from_accounts.up.sql", size: 866, mode: os.FileMode(0644), modTime: time.Unix(1608278926, 0)} + info := bindataFileInfo{name: "1606224181_drop_photo_path_from_accounts.up.sql", size: 866, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xff, 0x4c, 0x97, 0xee, 0xef, 0x82, 0xb8, 0x6c, 0x71, 0xbb, 0x50, 0x7b, 0xe6, 0xd9, 0x22, 0x31, 0x7c, 0x1a, 0xfe, 0x91, 0x28, 0xf6, 0x6, 0x36, 0xe, 0xb1, 0xf1, 0xc8, 0x25, 0xac, 0x7e, 0xd6}} return a, nil } diff --git a/protocol/message_persistence.go b/protocol/message_persistence.go index 849f14dbd..31b86271c 100644 --- a/protocol/message_persistence.go +++ b/protocol/message_persistence.go @@ -118,6 +118,7 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message var serializedLinks []byte var alias sql.NullString var identicon sql.NullString + var communityID sql.NullString sticker := &protobuf.StickerMessage{} command := &common.CommandParameters{} @@ -143,7 +144,7 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message &message.Base64Image, &audio.DurationMs, &message.Base64Audio, - &message.CommunityID, + &communityID, &serializedMentions, &serializedLinks, &command.ID, @@ -187,6 +188,10 @@ func (db sqlitePersistence) tableUserMessagesScanAllFields(row scanner, message message.Alias = alias.String message.Identicon = identicon.String + if communityID.Valid { + message.CommunityID = communityID.String + } + if serializedMentions != nil { err := json.Unmarshal(serializedMentions, &message.Mentions) if err != nil { diff --git a/protocol/migrations/migrations.go b/protocol/migrations/migrations.go index 8c44e0f4c..0b81cf660 100644 --- a/protocol/migrations/migrations.go +++ b/protocol/migrations/migrations.go @@ -2,38 +2,25 @@ // sources: // 000001_init.down.db.sql (65B) // 000001_init.up.db.sql (2.719kB) -// 000002_add_last_ens_clock_value.down.sql (0) // 000002_add_last_ens_clock_value.up.sql (77B) -// 1586358095_add_replace.down.sql (0) // 1586358095_add_replace.up.sql (224B) -// 1588665364_add_image_data.down.sql (0) // 1588665364_add_image_data.up.sql (186B) -// 1589365189_add_pow_target.down.sql (0) // 1589365189_add_pow_target.up.sql (66B) -// 1591277220_add_index_messages.down.sql (237B) // 1591277220_add_index_messages.up.sql (240B) -// 1593087212_add_mute_chat_and_raw_message_fields.down.sql (0) // 1593087212_add_mute_chat_and_raw_message_fields.up.sql (215B) -// 1595862781_add_audio_data.down.sql (0) // 1595862781_add_audio_data.up.sql (246B) -// 1595865249_create_emoji_reactions_table.down.sql (27B) // 1595865249_create_emoji_reactions_table.up.sql (300B) -// 1596805115_create_group_chat_invitations_table.down.sql (34B) // 1596805115_create_group_chat_invitations_table.up.sql (231B) // 1597322655_add_invitation_admin_chat_field.up.sql (54B) // 1597757544_add_nickname.up.sql (52B) -// 1598955122_add_mentions.down.sql (0) // 1598955122_add_mentions.up.sql (52B) -// 1599641390_add_emoji_reactions_index.down.sql (67B) // 1599641390_add_emoji_reactions_index.up.sql (126B) -// 1599720851_add_seen_index_remove_long_messages.down.sql (96B) // 1599720851_add_seen_index_remove_long_messages.up.sql (150B) // 1603198582_add_profile_chat_field.up.sql (45B) -// 1603816533_add_links.down.sql (0) // 1603816533_add_links.up.sql (48B) -// 1603888149_create_chat_identity_last_published_table.down.sql (40B) // 1603888149_create_chat_identity_last_published_table.up.sql (407B) -// 1605075346_add_communities.up.sql (7.016kB) +// 1605075346_add_communities.up.sql (6.971kB) +// README.md (554B) // doc.go (850B) package migrations @@ -118,7 +105,7 @@ func _000001_initDownDbSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "000001_init.down.db.sql", size: 65, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "000001_init.down.db.sql", size: 65, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x5e, 0xbb, 0x3f, 0x1, 0x75, 0x19, 0x70, 0x86, 0xa7, 0x34, 0x40, 0x17, 0x34, 0x3e, 0x18, 0x51, 0x79, 0xd4, 0x22, 0xad, 0x8f, 0x80, 0xcc, 0xa6, 0xcc, 0x6, 0x2b, 0x62, 0x2, 0x47, 0xba, 0xf9}} return a, nil } @@ -138,31 +125,11 @@ func _000001_initUpDbSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "000001_init.up.db.sql", size: 2719, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "000001_init.up.db.sql", size: 2719, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x60, 0xdc, 0xeb, 0xe, 0xc2, 0x4f, 0x75, 0xa, 0xf6, 0x3e, 0xc7, 0xc4, 0x4, 0xe2, 0xe1, 0xa4, 0x73, 0x2f, 0x4a, 0xad, 0x1a, 0x0, 0xc3, 0x93, 0x9d, 0x77, 0x3e, 0x31, 0x91, 0x77, 0x2e, 0xc8}} return a, nil } -var __000002_add_last_ens_clock_valueDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _000002_add_last_ens_clock_valueDownSqlBytes() ([]byte, error) { - return bindataRead( - __000002_add_last_ens_clock_valueDownSql, - "000002_add_last_ens_clock_value.down.sql", - ) -} - -func _000002_add_last_ens_clock_valueDownSql() (*asset, error) { - bytes, err := _000002_add_last_ens_clock_valueDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "000002_add_last_ens_clock_value.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __000002_add_last_ens_clock_valueUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x04\xc0\x41\x0a\x85\x20\x10\x06\xe0\xfd\x3b\xc5\x7f\x84\xb7\x6f\x35\xa5\x41\x30\x8d\x10\xe3\x5a\x64\x70\x95\xe8\x42\xeb\xfc\x7d\xc4\xea\x2f\x28\xad\xec\x61\xbd\xcd\x6c\x73\x80\x9c\xc3\x16\x38\x9e\x82\x9a\xc7\x4c\xa5\x8d\x64\xb5\xdb\x9d\xde\x5c\x9f\x82\x43\x14\x12\x14\x12\x99\xe1\xfc\x4e\x91\x15\xff\xe5\xf7\x05\x00\x00\xff\xff\xd0\x66\x8a\xf7\x4d\x00\x00\x00") func _000002_add_last_ens_clock_valueUpSqlBytes() ([]byte, error) { @@ -178,31 +145,11 @@ func _000002_add_last_ens_clock_valueUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "000002_add_last_ens_clock_value.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "000002_add_last_ens_clock_value.up.sql", size: 77, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4d, 0x3, 0x8f, 0xd5, 0x85, 0x83, 0x47, 0xbe, 0xf9, 0x82, 0x7e, 0x81, 0xa4, 0xbd, 0xaa, 0xd5, 0x98, 0x18, 0x5, 0x2d, 0x82, 0x42, 0x3b, 0x3, 0x50, 0xc3, 0x1e, 0x84, 0x35, 0xf, 0xb6, 0x2b}} return a, nil } -var __1586358095_add_replaceDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1586358095_add_replaceDownSqlBytes() ([]byte, error) { - return bindataRead( - __1586358095_add_replaceDownSql, - "1586358095_add_replace.down.sql", - ) -} - -func _1586358095_add_replaceDownSql() (*asset, error) { - bytes, err := _1586358095_add_replaceDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1586358095_add_replace.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1586358095_add_replaceUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\xce\x31\x0a\xc2\x40\x10\x46\xe1\x3e\xa7\xf8\xc9\x09\xec\x53\x4d\xdc\x09\x08\xe3\x2c\xe8\x2c\xd8\x85\x10\x06\x11\xd6\x28\xd9\xe4\xfe\x56\x56\x5a\x6c\xfd\xe0\xe3\x91\x18\x5f\x60\xd4\x0b\x63\x2f\xbe\x8e\x4f\x2f\x65\xba\x7b\x01\x85\x80\x63\x94\x74\x56\xac\xfe\xce\xd3\xec\xdf\x06\xe3\x9b\x41\xa3\x41\x93\x08\x02\x0f\x94\xc4\xd0\xb6\x5d\x53\xc7\x6d\x19\x7d\x8c\xc2\xa4\xbf\xca\x40\x72\xe5\x4a\x28\x3f\x16\x1f\xe7\xd7\xbe\x6c\x38\xe9\x9f\xa3\x43\xd7\x7c\x02\x00\x00\xff\xff\xca\x94\x3f\xe0\xe0\x00\x00\x00") func _1586358095_add_replaceUpSqlBytes() ([]byte, error) { @@ -218,31 +165,11 @@ func _1586358095_add_replaceUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1586358095_add_replace.up.sql", size: 224, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1586358095_add_replace.up.sql", size: 224, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd2, 0xb3, 0xa9, 0xc7, 0x7f, 0x9d, 0x8f, 0x43, 0x8c, 0x9e, 0x58, 0x8d, 0x44, 0xbc, 0xfa, 0x6b, 0x5f, 0x3f, 0x5a, 0xbe, 0xe8, 0xb1, 0x16, 0xf, 0x91, 0x2a, 0xa0, 0x71, 0xbb, 0x8d, 0x6b, 0xcb}} return a, nil } -var __1588665364_add_image_dataDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1588665364_add_image_dataDownSqlBytes() ([]byte, error) { - return bindataRead( - __1588665364_add_image_dataDownSql, - "1588665364_add_image_data.down.sql", - ) -} - -func _1588665364_add_image_dataDownSql() (*asset, error) { - bytes, err := _1588665364_add_image_dataDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1588665364_add_image_data.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1588665364_add_image_dataUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\xcb\x41\x0a\xc2\x40\x0c\x05\xd0\x7d\x4f\xf1\xe9\x19\xc4\x4d\x57\x33\x4e\x04\x21\x66\x40\x32\xe0\xae\x44\x0c\x45\xb0\x58\x8c\x2e\x7a\xfb\x9e\xa1\x07\x78\x89\x95\x6e\xd0\x94\x99\xf0\x0f\xff\x8e\xb3\x47\xd8\xe4\x81\x54\x0a\x4e\x95\xdb\x55\xf0\x9a\x6d\xf2\x71\xb1\xf5\xfd\xb1\x27\x32\xd7\x3c\x74\x3b\xe0\x6f\x5d\x1c\x17\xd1\x5d\xe8\x61\xe1\xc7\x03\x94\xee\x0a\xa9\x0a\x69\xcc\x28\x74\x4e\x8d\x15\x7d\x3f\x74\x5b\x00\x00\x00\xff\xff\xf8\x4b\xbd\xbe\xba\x00\x00\x00") func _1588665364_add_image_dataUpSqlBytes() ([]byte, error) { @@ -258,31 +185,11 @@ func _1588665364_add_image_dataUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1588665364_add_image_data.up.sql", size: 186, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1588665364_add_image_data.up.sql", size: 186, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xd6, 0xc6, 0x35, 0xb4, 0x4c, 0x39, 0x96, 0x29, 0x30, 0xda, 0xf4, 0x8f, 0xcb, 0xf1, 0x9f, 0x84, 0xdc, 0x88, 0xd4, 0xd5, 0xbc, 0xb6, 0x5b, 0x46, 0x78, 0x67, 0x76, 0x1a, 0x5, 0x36, 0xdc, 0xe5}} return a, nil } -var __1589365189_add_pow_targetDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1589365189_add_pow_targetDownSqlBytes() ([]byte, error) { - return bindataRead( - __1589365189_add_pow_targetDownSql, - "1589365189_add_pow_target.down.sql", - ) -} - -func _1589365189_add_pow_targetDownSql() (*asset, error) { - bytes, err := _1589365189_add_pow_targetDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1589365189_add_pow_target.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1589365189_add_pow_targetUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\xf4\x09\x71\x0d\x52\x08\x71\x74\xf2\x71\x55\x28\x4a\x2c\x8f\xcf\x4d\x2d\x2e\x4e\x4c\x4f\x2d\x56\x70\x74\x71\x51\x70\xf6\xf7\x09\xf5\xf5\x53\x28\xc8\x2f\x8f\x2f\x49\x2c\x4a\x4f\x2d\x51\x08\x72\x75\xf4\x51\x48\x49\x4d\x4b\x2c\xcd\x29\x51\x30\xd0\x33\x30\xb2\xe6\x02\x04\x00\x00\xff\xff\x49\xd6\x04\x23\x42\x00\x00\x00") func _1589365189_add_pow_targetUpSqlBytes() ([]byte, error) { @@ -298,31 +205,11 @@ func _1589365189_add_pow_targetUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1589365189_add_pow_target.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1589365189_add_pow_target.up.sql", size: 66, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4e, 0x3a, 0xe2, 0x2e, 0x7d, 0xaf, 0xbb, 0xcc, 0x21, 0xa1, 0x7a, 0x41, 0x9a, 0xd0, 0xbb, 0xa9, 0xc8, 0x35, 0xf9, 0x32, 0x34, 0x46, 0x44, 0x9a, 0x86, 0x40, 0x7c, 0xb9, 0x23, 0xc7, 0x3, 0x3f}} return a, nil } -var __1591277220_add_index_messagesDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\xce\xb1\xaa\xc2\x30\x18\xc5\xf1\x3d\x4f\x71\xb6\xb6\x90\x0b\x77\x28\x5d\x3a\x89\xed\xe0\xd2\x4a\x71\x70\xfb\x48\x93\x60\x83\xd1\x40\xbe\x44\x14\xfa\xf0\x22\x74\x74\xf3\xac\x87\x1f\xfc\xbb\x69\x3c\xe2\x30\x74\xfd\x19\xce\x3c\x89\xad\x8a\x7a\xa1\xf9\x45\x3e\x68\xe5\x49\x2f\x2a\x91\x33\xc4\x21\x26\x0a\x77\xd2\x39\x72\x88\xad\x10\xfb\xa9\xdf\x9d\xfa\xaf\x72\x33\x18\x07\x20\xb3\x8d\x74\xb3\xcc\xea\x62\xb9\x14\x00\xc0\x79\xe6\x14\xcb\xe2\xff\xc7\x15\x58\x57\x68\x1f\xf4\x95\x1e\xca\x67\x2b\xf1\xd7\xd4\x12\x4d\x5d\x7d\x0e\x67\x24\xb6\x10\x89\xc5\x19\x2b\xaa\x56\xbc\x03\x00\x00\xff\xff\xaf\xf2\xdc\xc0\xed\x00\x00\x00") - -func _1591277220_add_index_messagesDownSqlBytes() ([]byte, error) { - return bindataRead( - __1591277220_add_index_messagesDownSql, - "1591277220_add_index_messages.down.sql", - ) -} - -func _1591277220_add_index_messagesDownSql() (*asset, error) { - bytes, err := _1591277220_add_index_messagesDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1591277220_add_index_messages.down.sql", size: 237, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x79, 0xe5, 0x42, 0x56, 0x64, 0x1d, 0xb7, 0x8a, 0x1b, 0x0, 0x99, 0xf0, 0x18, 0x8c, 0x69, 0xe3, 0x14, 0x3a, 0x7f, 0x78, 0xfe, 0xe3, 0x2e, 0xcb, 0x6e, 0x5c, 0x8c, 0x1f, 0x7b, 0xfc, 0x21, 0xc7}} - return a, nil -} - var __1591277220_add_index_messagesUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\xca\xb1\xaa\x83\x30\x14\x87\xf1\xdd\xa7\xf8\x6f\x2a\x78\xe1\x0e\xe2\xe2\x24\x9a\xa1\x8b\x16\xed\xd0\xed\x10\x63\xa8\xd2\xb4\x81\x73\x4c\x69\xc1\x87\x2f\x1d\x3a\x14\xba\xf5\x5b\xbf\x5f\xd3\x77\x7b\xec\xda\x46\x1d\xb1\x4c\x77\x12\xab\xd9\xcc\x34\x3e\xc8\xcc\x7a\xa5\x65\x2a\xa3\xa8\xee\x55\x75\x50\x5f\x91\xf3\x46\xbb\x37\x25\xf1\xbc\x92\xbf\x92\x09\x2c\x9e\xd1\xb5\x08\x62\x99\x2e\x56\x44\x9f\xac\x20\xf9\xe0\xa8\x86\x3a\x83\x84\x51\x56\x4e\xe2\xff\x1f\x8b\xb1\x6d\x30\xce\x9b\x33\xdd\xb4\x0b\x36\xc3\x5f\x91\x67\x28\xf2\xf4\x35\x96\x09\x8d\x1a\xea\xb4\x8c\x9e\x01\x00\x00\xff\xff\xdb\x1d\x3d\x0b\xf0\x00\x00\x00") func _1591277220_add_index_messagesUpSqlBytes() ([]byte, error) { @@ -338,31 +225,11 @@ func _1591277220_add_index_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1591277220_add_index_messages.up.sql", size: 240, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1591277220_add_index_messages.up.sql", size: 240, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x9c, 0xfe, 0xbe, 0xd5, 0xb8, 0x8f, 0xdd, 0xef, 0xbb, 0xa8, 0xad, 0x7f, 0xed, 0x5b, 0x5b, 0x2f, 0xe6, 0x82, 0x27, 0x78, 0x1f, 0xb9, 0x57, 0xdc, 0x8, 0xc2, 0xb2, 0xa9, 0x9a, 0x4, 0xe1, 0x7a}} return a, nil } -var __1593087212_add_mute_chat_and_raw_message_fieldsDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1593087212_add_mute_chat_and_raw_message_fieldsDownSqlBytes() ([]byte, error) { - return bindataRead( - __1593087212_add_mute_chat_and_raw_message_fieldsDownSql, - "1593087212_add_mute_chat_and_raw_message_fields.down.sql", - ) -} - -func _1593087212_add_mute_chat_and_raw_message_fieldsDownSql() (*asset, error) { - bytes, err := _1593087212_add_mute_chat_and_raw_message_fieldsDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1593087212_add_mute_chat_and_raw_message_fields.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1593087212_add_mute_chat_and_raw_message_fieldsUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\xcc\x31\x0e\xc2\x30\x0c\x00\xc0\x9d\x57\xf8\x1f\x4c\x2e\x71\x27\xd3\x48\x90\xce\x51\x94\x1a\x1a\xa1\xa6\x51\xed\x0a\xf1\x7b\x56\x58\x58\x78\xc0\x1d\x72\xa0\x0b\x04\xec\x98\x20\xcf\xc9\x14\xd0\x39\x38\x79\x1e\xcf\x03\x2c\xbb\xc9\x04\x9d\xf7\x4c\x38\x80\xa3\x1e\x47\x0e\xd0\x23\x5f\xe9\x78\xf8\x94\x5b\x7a\xc6\x45\x54\xd3\x5d\xbe\x02\x7d\x94\x16\xa5\xe6\xed\xd5\xac\xac\xf5\xaf\x4a\xea\x14\xdb\xae\x73\xac\xab\x95\x5b\xc9\xe9\xd7\xf8\x0e\x00\x00\xff\xff\xd9\x47\x38\x58\xd7\x00\x00\x00") func _1593087212_add_mute_chat_and_raw_message_fieldsUpSqlBytes() ([]byte, error) { @@ -378,31 +245,11 @@ func _1593087212_add_mute_chat_and_raw_message_fieldsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1593087212_add_mute_chat_and_raw_message_fields.up.sql", size: 215, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1593087212_add_mute_chat_and_raw_message_fields.up.sql", size: 215, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x73, 0x99, 0x61, 0xd1, 0xaa, 0xb4, 0xbf, 0xaf, 0xd7, 0x20, 0x17, 0x40, 0xf9, 0x2, 0xfb, 0xcc, 0x40, 0x2a, 0xd, 0x86, 0x36, 0x30, 0x88, 0x89, 0x25, 0x80, 0x42, 0xb0, 0x5b, 0xe9, 0x73, 0x78}} return a, nil } -var __1595862781_add_audio_dataDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1595862781_add_audio_dataDownSqlBytes() ([]byte, error) { - return bindataRead( - __1595862781_add_audio_dataDownSql, - "1595862781_add_audio_data.down.sql", - ) -} - -func _1595862781_add_audio_dataDownSql() (*asset, error) { - bytes, err := _1595862781_add_audio_dataDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1595862781_add_audio_data.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1595862781_add_audio_dataUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\xcb\x41\xaa\xc3\x20\x10\x06\xe0\x7d\x4e\xf1\x93\x33\x3c\xde\x26\x2b\x53\x2d\x14\xa6\x0a\x65\x84\xee\x64\x8a\x52\x02\x4d\x0d\x99\xb8\xc8\xed\x7b\x06\x0f\xf0\x19\x62\xf7\x00\x9b\x99\x1c\x9a\x96\x3d\xad\x45\x55\xde\x45\x61\xac\xc5\x25\x50\xbc\x7b\x48\xcb\x4b\x4d\x9b\x9c\x9f\x2a\x19\x33\x85\x79\x1a\x3a\xe0\x71\x6e\x05\x37\xcf\x5d\x28\xb7\x5d\x8e\xa5\x7e\xd3\xaa\xdd\xf6\x25\x5a\xfe\xff\xc0\xee\xc9\xf0\x81\xe1\x23\x11\xac\xbb\x9a\x48\x8c\x71\x9c\x86\x5f\x00\x00\x00\xff\xff\xeb\x6f\xa0\x62\xf6\x00\x00\x00") func _1595862781_add_audio_dataUpSqlBytes() ([]byte, error) { @@ -418,31 +265,11 @@ func _1595862781_add_audio_dataUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1595862781_add_audio_data.up.sql", size: 246, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1595862781_add_audio_data.up.sql", size: 246, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xae, 0xd2, 0xee, 0x55, 0xfb, 0x36, 0xa4, 0x92, 0x66, 0xe, 0x81, 0x62, 0x1e, 0x7a, 0x69, 0xa, 0xd5, 0x4b, 0xa5, 0x6a, 0x8d, 0x1d, 0xce, 0xf3, 0x3e, 0xc0, 0x5f, 0x9c, 0x66, 0x1b, 0xb4, 0xed}} return a, nil } -var __1595865249_create_emoji_reactions_tableDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\x09\xf2\x0f\x50\x08\x71\x74\xf2\x71\x55\x48\xcd\xcd\xcf\xca\x8c\x2f\x4a\x4d\x4c\x2e\xc9\xcc\xcf\x2b\xb6\x06\x04\x00\x00\xff\xff\x54\xc5\xdd\x49\x1b\x00\x00\x00") - -func _1595865249_create_emoji_reactions_tableDownSqlBytes() ([]byte, error) { - return bindataRead( - __1595865249_create_emoji_reactions_tableDownSql, - "1595865249_create_emoji_reactions_table.down.sql", - ) -} - -func _1595865249_create_emoji_reactions_tableDownSql() (*asset, error) { - bytes, err := _1595865249_create_emoji_reactions_tableDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1595865249_create_emoji_reactions_table.down.sql", size: 27, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6f, 0xbb, 0xdb, 0x8c, 0xd1, 0x17, 0x1b, 0x19, 0x2a, 0x80, 0xc6, 0xb1, 0xc5, 0x47, 0x74, 0x97, 0x32, 0x30, 0x5, 0xa9, 0x9c, 0xa7, 0x60, 0xa, 0xfe, 0xfb, 0x41, 0x6b, 0x25, 0xad, 0x84, 0x20}} - return a, nil -} - var __1595865249_create_emoji_reactions_tableUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x7c\xce\xbd\x4e\x03\x31\x10\x04\xe0\xfe\xa4\x7b\x87\x29\x41\xa2\xa0\xa7\x32\x66\x4f\x58\x18\x5f\xe4\x6c\x50\x52\x9d\x2c\x67\x05\x07\x0e\x96\x6c\x87\xe7\x47\xe4\x1a\x7e\x44\xea\x6f\x76\x67\xb4\x27\xc5\x04\x56\xb7\x96\x60\x06\xb8\x91\x41\x5b\xb3\xe6\x35\xe4\x90\x5f\xe7\xa9\x48\x88\x6d\xce\xef\x15\x17\x7d\x07\xcc\x7b\x3c\x29\xaf\xef\x95\xc7\xca\x9b\x47\xe5\x77\x78\xa0\x1d\x46\x07\x3d\xba\xc1\x1a\xcd\xf0\xb4\xb2\x4a\xd3\xd5\x57\x3c\xa6\x1c\xdf\xa6\x8f\x90\x8e\x02\xe3\xf8\xf4\xde\x6d\xac\x3d\x61\xcd\xc7\x12\x05\x4c\xdb\x5f\xb0\x34\xcf\xfb\xbf\x27\x07\xa9\x35\x3c\xcb\xf4\x6d\xc6\x0f\x8f\x2f\xa1\xfd\x8b\x29\xc7\x90\xa6\xb3\x91\x22\xad\x84\xd8\x64\xa9\xbe\xa3\x41\x6d\x2c\xe3\xba\xef\x2e\x6f\xfa\xee\x33\x00\x00\xff\xff\xe4\x28\x05\xe0\x2c\x01\x00\x00") func _1595865249_create_emoji_reactions_tableUpSqlBytes() ([]byte, error) { @@ -458,31 +285,11 @@ func _1595865249_create_emoji_reactions_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1595865249_create_emoji_reactions_table.up.sql", size: 300, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1595865249_create_emoji_reactions_table.up.sql", size: 300, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x3e, 0xc5, 0x43, 0x5c, 0x3d, 0x53, 0x43, 0x2c, 0x1a, 0xa5, 0xb6, 0xbf, 0x7, 0x4, 0x5a, 0x3e, 0x40, 0x8b, 0xa4, 0x57, 0x12, 0x58, 0xbc, 0x42, 0xe2, 0xc3, 0xde, 0x76, 0x98, 0x80, 0xe2, 0xbe}} return a, nil } -var __1596805115_create_group_chat_invitations_tableDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\x09\xf2\x0f\x50\x08\x71\x74\xf2\x71\x55\x48\x2f\xca\x2f\x2d\x88\x4f\xce\x48\x2c\x89\xcf\xcc\x2b\xcb\x2c\x49\x2c\xc9\xcc\xcf\x2b\xb6\x06\x04\x00\x00\xff\xff\x82\x66\x9d\x1a\x22\x00\x00\x00") - -func _1596805115_create_group_chat_invitations_tableDownSqlBytes() ([]byte, error) { - return bindataRead( - __1596805115_create_group_chat_invitations_tableDownSql, - "1596805115_create_group_chat_invitations_table.down.sql", - ) -} - -func _1596805115_create_group_chat_invitations_tableDownSql() (*asset, error) { - bytes, err := _1596805115_create_group_chat_invitations_tableDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1596805115_create_group_chat_invitations_table.down.sql", size: 34, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6b, 0x5a, 0x17, 0xd8, 0x8d, 0xb3, 0xfe, 0xcb, 0xb6, 0xc0, 0xcb, 0x14, 0x68, 0x8c, 0x5b, 0x18, 0xf8, 0x7d, 0xc9, 0x2c, 0xa6, 0x41, 0xc9, 0x71, 0xeb, 0x3f, 0xc6, 0xa, 0x45, 0xee, 0x5d, 0x2a}} - return a, nil -} - var __1596805115_create_group_chat_invitations_tableUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x6c\x8d\xc1\x4a\xc4\x30\x14\x45\xf7\x85\xfe\xc3\x5d\x2a\xb8\x70\xef\x2a\xc6\x57\x0c\xc6\xb4\xa4\xaf\xd2\xae\x4a\xa8\xa1\x06\xb5\x91\x26\xf5\xfb\xc5\x96\x61\x18\x98\xed\x3d\x87\x73\xa5\x25\xc1\x04\x16\x8f\x9a\xa0\x2a\x98\x9a\x41\xbd\x6a\xb9\xc5\xbc\xc6\xed\x67\x9c\x3e\x5c\x1e\xc3\xf2\x1b\xb2\xcb\x21\x2e\x09\x37\x65\x01\x84\x77\xbc\x09\x2b\x9f\x85\x45\x63\xd5\xab\xb0\x03\x5e\x68\x40\x6d\x20\x6b\x53\x69\x25\x19\x96\x1a\x2d\x24\xdd\xfd\xeb\x29\x6e\xeb\xe4\xc1\xd4\xf3\xfe\x60\x3a\xad\x77\x70\xd4\xcf\xb1\x0b\xf8\xed\x53\x72\xb3\xbf\x0e\x53\x76\xd9\x43\x19\xc6\x13\x55\xa2\xd3\x8c\xfb\xa3\xf8\x15\xa7\xcf\x7d\x3f\xe9\x65\x71\xfb\xf0\x17\x00\x00\xff\xff\x34\x03\xb2\x2f\xe7\x00\x00\x00") func _1596805115_create_group_chat_invitations_tableUpSqlBytes() ([]byte, error) { @@ -498,7 +305,7 @@ func _1596805115_create_group_chat_invitations_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1596805115_create_group_chat_invitations_table.up.sql", size: 231, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1596805115_create_group_chat_invitations_table.up.sql", size: 231, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6d, 0xb1, 0x14, 0x6d, 0x54, 0x28, 0x67, 0xc3, 0x23, 0x6a, 0xfc, 0x80, 0xdf, 0x9e, 0x4c, 0x35, 0x36, 0xf, 0xf8, 0xf3, 0x5f, 0xae, 0xad, 0xb, 0xc1, 0x51, 0x8e, 0x17, 0x7, 0xe5, 0x7f, 0x91}} return a, nil } @@ -518,7 +325,7 @@ func _1597322655_add_invitation_admin_chat_fieldUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1597322655_add_invitation_admin_chat_field.up.sql", size: 54, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1597322655_add_invitation_admin_chat_field.up.sql", size: 54, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa9, 0x7a, 0xa0, 0xf2, 0xdb, 0x13, 0x91, 0x91, 0xa8, 0x34, 0x1a, 0xa1, 0x49, 0x68, 0xd5, 0xae, 0x2c, 0xd8, 0xd5, 0xea, 0x8f, 0x8c, 0xc7, 0x2, 0x4e, 0x58, 0x2c, 0x3a, 0x14, 0xd4, 0x4f, 0x2c}} return a, nil } @@ -538,31 +345,11 @@ func _1597757544_add_nicknameUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1597757544_add_nickname.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1597757544_add_nickname.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf4, 0xa2, 0x64, 0x50, 0xc5, 0x4, 0xb9, 0x8b, 0xd1, 0x18, 0x9b, 0xc3, 0x91, 0x36, 0x2a, 0x1f, 0xc3, 0x6c, 0x2d, 0x92, 0xf8, 0x5e, 0xff, 0xb1, 0x59, 0x61, 0x2, 0x1c, 0xe1, 0x85, 0x90, 0xa4}} return a, nil } -var __1598955122_add_mentionsDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1598955122_add_mentionsDownSqlBytes() ([]byte, error) { - return bindataRead( - __1598955122_add_mentionsDownSql, - "1598955122_add_mentions.down.sql", - ) -} - -func _1598955122_add_mentionsDownSql() (*asset, error) { - bytes, err := _1598955122_add_mentionsDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1598955122_add_mentions.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599682300, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1598955122_add_mentionsUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\xf4\x09\x71\x0d\x52\x08\x71\x74\xf2\x71\x55\x28\x2d\x4e\x2d\x8a\xcf\x4d\x2d\x2e\x4e\x4c\x4f\x2d\x56\x70\x74\x71\x51\x70\xf6\xf7\x09\xf5\xf5\x53\xc8\x4d\xcd\x2b\xc9\xcc\xcf\x2b\x56\x70\xf2\xf1\x77\xb2\xe6\x02\x04\x00\x00\xff\xff\xca\xf8\x74\x41\x34\x00\x00\x00") func _1598955122_add_mentionsUpSqlBytes() ([]byte, error) { @@ -578,31 +365,11 @@ func _1598955122_add_mentionsUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1598955122_add_mentions.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1599682300, 0)} + info := bindataFileInfo{name: "1598955122_add_mentions.up.sql", size: 52, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x8d, 0x22, 0x17, 0x92, 0xd2, 0x11, 0x4e, 0x7, 0x93, 0x9a, 0x55, 0xfd, 0xb, 0x97, 0xc4, 0x63, 0x6a, 0x81, 0x97, 0xcd, 0xb2, 0xf8, 0x4b, 0x5f, 0x3c, 0xfa, 0x3a, 0x38, 0x53, 0x10, 0xed, 0x9d}} return a, nil } -var __1599641390_add_emoji_reactions_indexDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\x09\xf2\x0f\x50\xf0\xf4\x73\x71\x8d\x50\x48\xcd\xcd\xcf\xca\x8c\x2f\x4a\x4d\x4c\x2e\xc9\xcc\xcf\x2b\x8e\xcf\x4d\x2d\x2e\x4e\x4c\x4f\x8d\xcf\x4c\x89\xcf\xc9\x4f\x4e\xcc\x89\x4f\xce\x48\x2c\x01\xf1\x8a\x52\x4b\x8a\x12\x93\x4b\x52\x53\xe2\x33\x53\x2a\xac\xb9\x00\x01\x00\x00\xff\xff\xb2\x85\x84\xa0\x43\x00\x00\x00") - -func _1599641390_add_emoji_reactions_indexDownSqlBytes() ([]byte, error) { - return bindataRead( - __1599641390_add_emoji_reactions_indexDownSql, - "1599641390_add_emoji_reactions_index.down.sql", - ) -} - -func _1599641390_add_emoji_reactions_indexDownSql() (*asset, error) { - bytes, err := _1599641390_add_emoji_reactions_indexDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1599641390_add_emoji_reactions_index.down.sql", size: 67, mode: os.FileMode(0644), modTime: time.Unix(1599736377, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x89, 0x39, 0x0, 0x51, 0x5b, 0x48, 0xc3, 0xf3, 0x6a, 0x96, 0xf1, 0xd2, 0xa6, 0x60, 0xa8, 0x68, 0x21, 0xb5, 0xa0, 0x11, 0x11, 0x99, 0xde, 0xad, 0xa6, 0xa7, 0x56, 0xc1, 0xb2, 0xa6, 0x63, 0xe4}} - return a, nil -} - var __1599641390_add_emoji_reactions_indexUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\x0e\x72\x75\x0c\x71\x55\xf0\xf4\x73\x71\x8d\x50\x48\xcd\xcd\xcf\xca\x8c\x2f\x4a\x4d\x4c\x2e\xc9\xcc\xcf\x2b\x8e\xcf\x4d\x2d\x2e\x4e\x4c\x4f\x8d\xcf\x4c\x89\xcf\xc9\x4f\x4e\xcc\x89\x4f\xce\x48\x2c\x01\xf1\x8a\x52\x4b\x8a\x12\x93\x4b\x52\x53\xe2\x33\x53\x2a\x14\xf2\xf3\xd0\x75\x6a\x20\x74\xea\x28\xa0\x68\xd5\x51\x80\xeb\xd5\xb4\xe6\x02\x04\x00\x00\xff\xff\xac\x4f\x19\x15\x7e\x00\x00\x00") func _1599641390_add_emoji_reactions_indexUpSqlBytes() ([]byte, error) { @@ -618,31 +385,11 @@ func _1599641390_add_emoji_reactions_indexUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1599641390_add_emoji_reactions_index.up.sql", size: 126, mode: os.FileMode(0644), modTime: time.Unix(1599736377, 0)} + info := bindataFileInfo{name: "1599641390_add_emoji_reactions_index.up.sql", size: 126, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xf9, 0xd8, 0xdc, 0xa7, 0xb, 0x92, 0x7a, 0x61, 0x37, 0x24, 0x1c, 0x77, 0x5e, 0xe, 0x7e, 0xfc, 0x9f, 0x98, 0x7b, 0x65, 0xe7, 0xf9, 0x71, 0x57, 0x89, 0x2d, 0x90, 0x1b, 0xf6, 0x5e, 0x37, 0xe8}} return a, nil } -var __1599720851_add_seen_index_remove_long_messagesDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\x09\xf2\x0f\x50\xf0\xf4\x73\x71\x8d\x50\x28\x4e\x4d\xcd\x8b\xcf\xc9\x4f\x4e\xcc\x89\x4f\xce\x48\x2c\x89\xcf\x4c\x89\xcf\x4c\xa9\xb0\xe6\x0a\x0d\x70\x71\x0c\x71\x55\x28\x2d\x4e\x2d\x8a\xcf\x4d\x2d\x2e\x4e\x4c\x4f\x2d\x56\x08\x76\x0d\x51\xc8\xc8\x4c\x49\x55\xb0\x55\x30\x50\x08\xf7\x70\x0d\x72\x55\xc8\x49\xcd\x4b\x2f\xc9\xd0\x28\x49\xad\x28\xd1\x54\xb0\x53\x30\x31\xb0\x34\xb3\xe6\x02\x04\x00\x00\xff\xff\x51\x4e\x52\x39\x60\x00\x00\x00") - -func _1599720851_add_seen_index_remove_long_messagesDownSqlBytes() ([]byte, error) { - return bindataRead( - __1599720851_add_seen_index_remove_long_messagesDownSql, - "1599720851_add_seen_index_remove_long_messages.down.sql", - ) -} - -func _1599720851_add_seen_index_remove_long_messagesDownSql() (*asset, error) { - bytes, err := _1599720851_add_seen_index_remove_long_messagesDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1599720851_add_seen_index_remove_long_messages.down.sql", size: 96, mode: os.FileMode(0644), modTime: time.Unix(1599736377, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x6f, 0x80, 0x18, 0xaf, 0xf9, 0x83, 0xd6, 0xcb, 0xa1, 0xc1, 0xf1, 0xf6, 0x32, 0x11, 0xd2, 0x72, 0xef, 0x74, 0x83, 0x53, 0x3a, 0xc4, 0x77, 0x6, 0x66, 0xa0, 0xe3, 0x5a, 0x4d, 0x1b, 0x30, 0x6}} - return a, nil -} - var __1599720851_add_seen_index_remove_long_messagesUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x54\xcc\xb1\x0a\xc2\x30\x14\x46\xe1\xbd\x4f\xf1\x8f\x2d\x38\x28\x88\x20\x45\x41\xec\x15\xb3\xa4\xd2\x44\xec\x16\x42\x73\x69\x02\xb1\x82\x89\xd0\xc7\x17\xdd\xba\x7f\xe7\x9c\x3b\x3a\x69\x82\x90\x0d\xf5\x10\x17\xc8\x56\x83\x7a\xa1\xb4\x42\x62\x9e\x4c\x7c\x0d\x36\x9a\xc1\xdb\x6c\x82\x33\xc1\xcd\x68\x25\x3e\x89\xdf\xe6\xc9\x29\xd9\x91\x53\xb9\x20\xab\x7f\x56\xd5\xc5\xfd\xd6\xfc\xc6\x0b\x0a\x45\x1a\x3e\x38\xc6\x01\x1b\x3c\xae\xd4\x11\x22\x4f\x63\xf6\x65\xe6\x39\x57\x38\x62\xbb\xde\xef\xea\xe2\x1b\x00\x00\xff\xff\x44\x35\x03\x9f\x96\x00\x00\x00") func _1599720851_add_seen_index_remove_long_messagesUpSqlBytes() ([]byte, error) { @@ -658,7 +405,7 @@ func _1599720851_add_seen_index_remove_long_messagesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1599720851_add_seen_index_remove_long_messages.up.sql", size: 150, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "1599720851_add_seen_index_remove_long_messages.up.sql", size: 150, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x24, 0x1c, 0xc4, 0x78, 0x91, 0xc7, 0xeb, 0xfe, 0xc8, 0xa0, 0xd8, 0x13, 0x27, 0x97, 0xc8, 0x96, 0x56, 0x97, 0x33, 0x2c, 0x1e, 0x16, 0x8a, 0xd3, 0x49, 0x99, 0x3, 0xe9, 0xbb, 0xc4, 0x5, 0x3c}} return a, nil } @@ -678,31 +425,11 @@ func _1603198582_add_profile_chat_fieldUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1603198582_add_profile_chat_field.up.sql", size: 45, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "1603198582_add_profile_chat_field.up.sql", size: 45, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xaa, 0xca, 0xe, 0x46, 0xa0, 0x9, 0x9d, 0x47, 0x57, 0xe9, 0xfb, 0x17, 0xeb, 0x9c, 0xf6, 0xb8, 0x1d, 0xe9, 0xd, 0x0, 0xd5, 0xe5, 0xd8, 0x9e, 0x60, 0xa, 0xbf, 0x32, 0x2c, 0x52, 0x7f, 0x6a}} return a, nil } -var __1603816533_add_linksDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00") - -func _1603816533_add_linksDownSqlBytes() ([]byte, error) { - return bindataRead( - __1603816533_add_linksDownSql, - "1603816533_add_links.down.sql", - ) -} - -func _1603816533_add_linksDownSql() (*asset, error) { - bytes, err := _1603816533_add_linksDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1603816533_add_links.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} - return a, nil -} - var __1603816533_add_linksUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\xf4\x09\x71\x0d\x52\x08\x71\x74\xf2\x71\x55\x28\x2d\x4e\x2d\x8a\xcf\x4d\x2d\x2e\x4e\x4c\x4f\x2d\x56\x70\x74\x71\x51\x70\xf6\xf7\x09\xf5\xf5\x53\xc8\xc9\xcc\xcb\x2e\x56\x70\xf2\xf1\x77\xb2\x06\x04\x00\x00\xff\xff\x1d\x2b\x92\x96\x30\x00\x00\x00") func _1603816533_add_linksUpSqlBytes() ([]byte, error) { @@ -718,31 +445,11 @@ func _1603816533_add_linksUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1603816533_add_links.up.sql", size: 48, mode: os.FileMode(0644), modTime: time.Unix(1606313164, 0)} + info := bindataFileInfo{name: "1603816533_add_links.up.sql", size: 48, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc9, 0x24, 0xd6, 0x1d, 0xa, 0x83, 0x1e, 0x4d, 0xf, 0xae, 0x4d, 0x8c, 0x51, 0x32, 0xa8, 0x37, 0xb0, 0x14, 0xfb, 0x32, 0x34, 0xc8, 0xc, 0x4e, 0x5b, 0xc5, 0x15, 0x65, 0x73, 0x0, 0x0, 0x1d}} return a, nil } -var __1603888149_create_chat_identity_last_published_tableDownSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x72\x09\xf2\x0f\x50\x08\x71\x74\xf2\x71\x55\x48\xce\x48\x2c\x89\xcf\x4c\x49\xcd\x2b\xc9\x2c\xa9\x8c\xcf\x49\x2c\x2e\x89\x2f\x28\x4d\xca\xc9\x2c\xce\x48\x4d\xb1\x06\x04\x00\x00\xff\xff\x98\xbf\xba\xa8\x28\x00\x00\x00") - -func _1603888149_create_chat_identity_last_published_tableDownSqlBytes() ([]byte, error) { - return bindataRead( - __1603888149_create_chat_identity_last_published_tableDownSql, - "1603888149_create_chat_identity_last_published_table.down.sql", - ) -} - -func _1603888149_create_chat_identity_last_published_tableDownSql() (*asset, error) { - bytes, err := _1603888149_create_chat_identity_last_published_tableDownSqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "1603888149_create_chat_identity_last_published_table.down.sql", size: 40, mode: os.FileMode(0644), modTime: time.Unix(1608278926, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x82, 0x2a, 0x5, 0xfd, 0x9, 0xab, 0xd3, 0x3e, 0xba, 0xc4, 0x85, 0xc8, 0xcd, 0x97, 0xbd, 0x37, 0xfc, 0x18, 0x9b, 0x9d, 0x3c, 0x6e, 0xe5, 0xe8, 0xbe, 0xa4, 0xec, 0x4, 0xcf, 0x67, 0x36, 0x16}} - return a, nil -} - var __1603888149_create_chat_identity_last_published_tableUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x90\xc1\x4a\xc4\x30\x10\x86\xef\x85\xbe\xc3\x1c\x77\x61\xdf\xc0\x53\x1a\x66\x31\x18\xd3\x35\x9b\x8a\x7b\x0a\x63\x1b\x4c\x30\x6e\x0b\xc9\x0a\x7d\x7b\x21\xab\x55\xa1\x88\xc7\xe4\x9f\x9f\xef\x9b\xe1\x1a\x99\x41\x30\xac\x91\x08\x62\x0f\xaa\x35\x80\x4f\xe2\x68\x8e\xd0\x7b\xca\x36\x0c\xee\x9c\x43\x9e\x6d\xa4\x94\xed\x74\x79\x8e\x21\x79\x37\xc0\xa6\xae\xe0\x6b\x02\x1e\x99\xe6\xb7\x4c\x97\xb2\xea\xa4\x84\x83\x16\xf7\x4c\x9f\xe0\x0e\x4f\xd0\x2a\xe0\xad\xda\x4b\xc1\x0d\x68\x3c\x48\xc6\x71\x57\xca\x71\xec\x5f\xed\x3b\xc5\x8b\x03\xa1\xcc\x52\x2e\xa1\xa7\xe4\xa1\x91\x6d\xb3\x7c\xd7\xd5\xf6\xa6\xae\xea\xea\xdf\xc2\xfd\x78\xce\xd4\xe7\xf4\xa9\x7a\x7d\xad\xd9\x16\x60\x78\xa3\x17\x67\xf3\x3c\xb9\xf5\xfc\x4f\xdb\x89\xe6\x38\xd2\xf0\x5b\xb8\x24\x9d\x12\x0f\x1d\x6e\xbe\xe9\xbb\x1f\xa4\xed\xda\x6d\xae\x7b\x7e\x04\x00\x00\xff\xff\xff\xdb\x89\x48\x97\x01\x00\x00") func _1603888149_create_chat_identity_last_published_tableUpSqlBytes() ([]byte, error) { @@ -758,12 +465,12 @@ func _1603888149_create_chat_identity_last_published_tableUpSql() (*asset, error return nil, err } - info := bindataFileInfo{name: "1603888149_create_chat_identity_last_published_table.up.sql", size: 407, mode: os.FileMode(0644), modTime: time.Unix(1608278926, 0)} + info := bindataFileInfo{name: "1603888149_create_chat_identity_last_published_table.up.sql", size: 407, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7f, 0x9, 0xf, 0xfb, 0xdb, 0x3c, 0x86, 0x70, 0x82, 0xda, 0x10, 0x25, 0xe2, 0x4e, 0x40, 0x45, 0xab, 0x8b, 0x1c, 0x91, 0x7c, 0xf1, 0x70, 0x2e, 0x81, 0xf3, 0x71, 0x45, 0xda, 0xe2, 0xa4, 0x57}} return a, nil } -var __1605075346_add_communitiesUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x58\x5d\x8f\x54\x47\x0e\x7d\x47\xe2\x3f\x5c\xf1\x42\x22\xf1\x50\x65\x57\xd9\x55\x8a\xf6\x61\x80\x41\x42\x3b\x99\x89\x60\x58\x91\x27\x74\xbb\x6f\xf7\xee\xec\x2a\x21\x02\x12\x29\xff\x7e\xe5\x73\xdc\x03\x6c\xd4\x3c\x2c\xa3\x61\xfa\xa3\x6e\x95\x7d\x6c\x1f\x1f\xd7\xc5\xd5\xed\xe5\xab\xe5\xf6\xe2\xe9\xd5\xe5\xb2\xff\xd7\xfa\xe9\xe3\x72\xf1\xfc\xf9\xf2\xec\xe6\xea\xcd\x8f\xd7\xcb\xfe\xfd\x2f\xbf\xfc\xfe\xeb\xdd\xa7\x3f\xdf\xdd\x6d\xcb\xed\xe5\xdb\xdb\xe5\xf9\xe5\x8b\x8b\x37\x57\xb7\xcb\xa3\x47\x3f\x3c\x7c\xf0\xe6\xa7\xe7\x17\xb7\xa7\xc7\x5e\x5f\xde\x7e\xbd\xfe\x6f\x5c\xf4\xf0\xc1\x97\x47\xfc\xfe\xf1\xf0\xe1\xdd\x2f\x87\x8f\x1f\xd7\x7f\x1e\xfe\x8f\xa3\xbe\x7e\xfc\xfc\x91\xcf\x5e\x5d\xc6\x72\x9e\xf9\xf2\xc5\x72\x7d\x73\xbb\x5c\xbe\x7d\xf9\xfa\xf6\xf5\xfd\x03\x77\x87\x8f\xef\xbe\x78\xbd\x7c\xf7\xf0\xc1\xb2\xdc\x6d\xcb\xd3\xab\x9b\xa7\x58\x7f\xfd\xe6\xea\x6a\xf9\xe9\xd5\xcb\x1f\x2f\x5e\xfd\xbc\xfc\xfd\xf2\xe7\xe5\xe6\x7a\x79\x76\x73\xfd\xe2\xea\xe5\xb3\xdb\xe5\xd5\xe5\x4f\x57\x17\xcf\x2e\x9f\xc4\x43\xbf\x7d\xb8\xfb\x63\xfd\x74\x78\xf7\x9f\xc3\x9f\x78\x1a\x1f\x6e\x87\x8f\xfb\x0f\x77\xbf\x7d\xba\x7b\xff\xeb\xd7\x5b\xe2\xdb\x7f\xbf\xbf\xfb\xf5\xb0\x2d\x4f\x6f\x6e\xae\x3e\x9f\x75\x72\xf8\xc5\xc5\xd5\x6b\xee\xfc\xc7\xe1\xc3\xdd\xf1\xee\xdb\x0b\x63\xdd\xf7\x70\xfa\xe5\xf5\xeb\xcb\x57\xb7\xcb\xcb\xeb\xdb\x9b\xf3\x5e\x3e\xba\xdb\x1e\x3d\x59\x1e\x7d\x61\x73\xbc\xfd\xc2\xda\x78\x4b\xf3\xe2\xd5\xc9\x82\x47\xdf\x2f\xff\xb8\xb8\x7a\x73\xf9\x7a\xf9\xee\xed\xe3\xa2\x73\x27\xdb\xda\xbc\x77\x59\xd7\x5a\x7d\x9d\x76\x58\xc7\xb1\x6e\x6d\xab\x65\xec\x56\x33\x53\xdf\x7b\xaf\xbe\xea\x7e\xb6\xb5\xfb\x6e\xce\x6d\xb7\x1b\x6b\x29\x72\xd8\x56\x79\xfc\x84\x58\x2c\x6f\x1f\x97\xb5\xd5\xc3\x51\x65\xab\xb5\x6d\xeb\x61\x1c\x0f\x9b\xec\xc6\x61\x13\x5d\x8f\xfb\x76\xd8\xd7\x4d\xf6\x7d\x37\x5b\x9f\xbe\x9f\xb6\xab\x6d\xb4\x75\x3b\x96\xd2\xb7\x61\xb3\xb7\x75\x5f\xb6\xe1\xbb\xd2\xfb\xb1\xd4\xb5\xec\xec\x28\xad\xcb\x76\x94\x83\xcc\xb5\xc9\xd8\x1d\x76\x56\xda\xde\x77\xbb\x55\xe7\x7e\xf8\x71\xb7\xeb\x72\x5c\x77\xba\x16\x39\x16\x5f\x45\xb4\x7b\x29\x55\x56\xab\xa3\x8c\xba\x56\x19\xb3\xd4\xb2\x8e\x56\xaa\x16\x1f\x5a\xb4\x99\x69\xb5\x6a\xa2\x53\x4d\xbb\x55\x55\x6b\x26\x6a\xda\x34\xfe\x4d\x15\x55\x53\xeb\x26\x56\x63\xbd\x0e\x1d\x16\x20\x98\x16\xed\x66\xf1\xbd\x16\xab\xa6\x56\xb5\x99\xe2\x77\xaa\x9a\x60\x97\xae\x16\xcf\x6b\xd5\x62\xa2\xae\x45\x8b\xa9\x59\x9c\x61\x62\xdd\x9a\xc6\xbe\xb1\x84\xcf\x0d\xac\x9b\xb1\x06\x16\xb9\x4e\x33\x55\xed\x2a\xda\x75\x68\xb3\x16\xbf\x71\x56\x3c\x61\xaa\x45\x6b\x98\xa3\xd5\xba\x3a\x56\x39\x7c\x8a\x9d\x05\xfb\xe5\xbf\xf0\x0e\x76\x37\xab\x56\xb5\x6a\x9c\x63\x55\x02\xa1\xbf\xe2\x12\x96\x5b\x87\xdf\x0d\xef\xdc\x12\x07\x9d\x16\x56\x84\x2f\x33\x76\xb2\xc0\x44\x61\x97\x59\x07\x86\xae\xae\x03\xa8\x86\x67\x15\x58\x05\xaa\xc3\x9a\x4e\x13\xa0\xd6\xc3\x0b\xd8\x35\xe1\x81\x01\x97\xb0\x58\xb4\xc2\x13\x89\xbd\xad\x02\x85\x78\x3a\x3c\x82\x3d\x58\x17\x38\xc5\xfe\x95\xbe\xc3\xbf\xae\x5d\x27\x4e\xa8\x3a\xb5\x85\x8f\x11\x17\x53\x58\x2c\xda\xd2\x1f\xd5\xa6\x45\x3d\xec\x8b\xdd\x74\xaa\x6b\xc5\xa7\xf1\x2e\x70\xee\x67\x71\x81\x67\x61\x6a\xec\xa0\x1d\xd8\x48\x84\x4b\x5b\x9c\xad\x33\xde\x87\xef\x61\x53\xd8\xa9\x8a\xb5\xf1\xca\x80\x4a\x00\x39\xe1\x6e\x47\x9c\x0a\x72\xad\xc2\x8a\x02\x74\x68\x7d\x3c\xe7\xc0\x3c\x03\x18\xd9\x03\x14\x0c\x98\x30\x83\x7a\xfa\xc1\x6c\x8b\x3c\x76\xc4\xc4\xe8\xb1\x16\x0b\x1c\x2a\xf2\x31\x90\x1d\x81\x22\x62\xd5\x10\x8d\x0e\x3c\x22\x6a\xc8\x6c\xe0\x3a\x94\x07\x0e\xed\x61\x3f\x70\x9e\xf0\xb1\x9e\xc5\xa5\x26\x32\x8e\xfc\x52\x9c\x3f\xb1\x2b\x6d\x9b\xc8\x8a\x38\x35\xb2\xb9\xa3\x32\x1c\x7f\x0b\x22\x17\x3e\x2b\x6c\x88\xf5\x82\x27\x27\xec\x33\x8d\x98\x77\xd4\x81\x84\xb7\xc6\x0c\x31\x44\x0c\x28\x2a\x23\x3e\x91\x21\x15\x7b\x45\x64\x46\xa0\x19\xb8\x21\x12\x1e\xf5\x83\xd8\x18\xf1\x46\xac\x23\xd3\x86\x75\x44\x54\x51\xc5\xa8\x1e\xe4\x28\x63\xd3\x90\x9b\xac\x3f\x45\xc6\xf4\x8c\x77\x43\x7c\xc2\x9e\x79\x16\x97\x62\x8a\x4a\x3c\xd5\xb4\x22\xae\x3d\x3c\x83\xef\x0d\x50\x23\x9f\x23\xd6\xc8\x7f\x47\x5c\x1b\x58\x04\x75\xa8\xc5\x22\xb6\x35\x39\x88\xb6\x33\xf3\x2b\x72\x6b\x1a\x33\x29\xf8\x27\x6a\x90\x7c\x85\xe8\xa3\x56\x05\xd9\xd2\xc0\x45\x66\xa8\x0b\x54\xe5\x48\x7c\x15\x99\x1a\xf1\x2b\xc0\xa0\xc3\xf7\x02\xfc\x91\x3d\xb0\xab\x04\x8f\x21\x37\x02\xc3\xe0\x9f\x5c\x15\xb1\xc4\xfe\x13\xe7\x17\xb0\x52\xac\xf7\x6f\xe4\x8b\x80\xbf\x3a\x2a\x2f\xac\x62\x7e\xf6\xf4\x8a\x31\xed\x88\x50\xc1\x0a\x07\x3f\x2a\x78\x2e\x56\x91\x0d\x23\xd6\x91\x2b\x06\xae\xe9\xc9\xe3\x91\xfb\xac\x08\x45\x5e\xb2\x5e\xa3\xee\x84\xe8\xa8\x83\xd7\xe2\x47\x10\xc5\x06\xc4\x04\x1e\x34\x76\x04\xeb\x5f\xd8\xd7\xc0\x86\x91\x77\x81\xbb\x46\x3c\x71\x86\x24\x17\x04\xfb\x47\x65\xa2\x9a\x60\x4d\x49\x66\x27\xce\x46\x5c\x8d\x0d\xa1\x9c\xc5\x05\x9c\x19\x08\xd3\x6b\x72\x59\x64\x08\x58\xbb\xdb\x29\x1b\x78\x6a\x31\xf2\x2a\xf3\xa6\x20\x0b\x14\xdf\x06\x76\x11\x1f\x72\x6c\x07\xa6\x8e\x6c\xec\xc8\x01\x56\x91\x21\x37\x0b\x7e\x92\xb7\x18\x63\x20\xc9\x1a\x52\x9c\xd9\xb0\xa7\xe3\xff\x09\x1f\xd0\x15\xb4\x1b\x77\x88\xea\x76\x54\xf7\x30\xb2\x8b\x82\x8b\xc0\xd1\xc1\x09\xc0\x90\xfd\xb3\x83\x07\xd9\xbd\x06\x56\xba\x19\x7b\xe1\x39\x5c\xe0\xa7\x23\xf3\x05\x75\x34\x93\xfd\x46\x70\x41\x9e\xa5\xd9\xc9\x4b\x5a\x18\x5c\xd7\x94\x88\xb0\xc7\x04\x2a\x03\x5d\xda\xb2\x1f\xb0\x1b\x16\x54\x80\x5b\xc7\x3e\xe4\x26\x47\xa7\x13\x58\xc6\xce\xd0\x10\x55\xf2\x5a\x4b\x8f\x3b\xd8\xa5\xe2\x93\x8e\x5a\x6b\xe8\x51\x62\xcc\x5c\x72\x30\x2a\x19\xc8\x9d\xe2\x25\xe4\x03\xf0\x5c\xc5\x8f\xe2\xd9\x8e\xca\x62\x0e\x77\x2a\x8b\xd8\xe3\x2c\x2e\xfd\xd4\x4b\xc1\xb1\xa8\x3f\xd4\x37\xb5\x48\x3c\xed\x88\x0e\xbd\x2b\xe0\x16\x45\x7d\x45\x7e\x54\x78\x2c\xc0\xd4\x91\xa9\xb4\xd0\xef\xfb\x97\x67\xcf\x8d\x3e\xc4\x6e\xaf\xc8\x0a\x23\x2f\x46\x85\x52\xcb\x04\xee\xe8\x7b\x86\xcc\x29\xf0\x89\x2c\x5d\xc0\xa8\x02\x05\x52\x91\x5f\x9a\xbc\xdc\xd9\xbb\x8c\xf5\xdd\x81\x97\x2b\x2b\x91\x1c\x2b\xc8\x9d\x78\x66\xe8\x40\x86\xb1\x3b\x38\xfc\x1c\x67\xeb\x48\x4f\xb8\xa3\x13\xc5\x73\xa8\x60\xe0\x5c\xc0\x0d\xae\x64\xde\x89\x1e\x8a\xfa\xfd\xcc\xef\x60\x48\x4f\x2f\xe9\x1b\xed\xa8\xc8\x99\x9e\x1d\x8e\xaa\xa4\x81\x2d\xe9\x57\x43\x55\x11\x7b\x21\xdf\x40\xe1\x54\x70\x6d\xa5\x1a\x41\x05\x27\x5b\x5a\x56\x59\x44\x5f\x25\x95\x5d\x37\xaa\xbc\x81\x0a\x6e\x19\xb5\x38\x71\x20\xc3\x67\xee\xdc\xe0\x8f\x64\x7e\x2b\xb3\x26\xf6\xf8\x56\x9f\x46\xaf\x2c\xec\x0f\x54\x00\x50\x57\x7e\xaf\xb7\xa6\x91\x84\x14\x4a\x83\xfd\x44\x91\x8d\xf0\x1b\xba\xb7\xa0\x2f\x10\x2f\xcd\x5d\xa9\x62\x2b\xb1\x46\xaf\xf1\xec\x9f\xa6\xd4\xa3\x9a\xf1\xce\xd3\x10\x0b\xe6\x3c\x3b\x0c\xb5\x41\x03\x8e\x8c\xb7\x82\x3f\xd8\xd3\x27\xb2\xc4\xa0\x13\x3a\xec\xec\xd0\x97\xec\xe9\x0d\x5d\x80\x99\xd6\x98\x51\xa8\x77\x01\xe7\x34\x2a\xae\xb3\x75\xc4\x1e\xda\xa1\x55\x06\x78\xb6\xb2\x0f\x32\xfb\xe1\x09\x75\x9f\x22\x06\x9e\xf5\x29\xf8\x26\xba\x8e\x99\xa6\x6e\x20\xdf\xb0\xd3\x2a\xba\x53\x23\xc7\x50\xd5\x66\x67\x9a\x40\x0d\x86\xa2\x87\x52\xd5\xd7\x64\xcd\x42\x8c\x32\xd2\x92\x9a\xa5\xa6\x12\x37\xf0\x56\x57\x7e\x33\x80\x9d\x64\x9d\x70\x4d\x47\x55\xf5\x64\x02\xaa\x4d\x45\x55\x61\x8e\x38\xe9\x66\x68\x9a\xfa\xcd\x7e\x44\xa5\x71\xaf\xd8\xa0\x5b\xa0\x49\x95\xbd\x14\x95\x0d\x24\x14\x1c\x48\x1d\xaf\x98\xa5\x30\xbb\xe4\xb4\xe4\x88\x54\xc3\x8c\x52\xc1\x88\xd5\x4e\xb3\x17\xd5\x43\xcf\x3e\x04\x8b\xd3\x03\x35\xce\x16\x3d\xbb\x2d\x26\x28\x28\x69\xcc\x0f\x89\x7e\x32\x3c\x3f\x05\xee\xa7\x1c\x37\xea\x75\xf4\x6d\xa0\x01\x2d\x8b\x09\x25\x95\x4b\x65\x15\x2b\xfb\x90\x52\x85\x42\x3b\x86\x13\xe7\xf2\x45\x95\xda\x9e\xda\x94\x4a\x04\xcf\x25\x63\x0c\xf4\x6f\x66\x12\x93\xa3\x02\x7b\x28\x7f\x20\x81\xdc\xe2\x3c\x86\xfe\x17\x16\x83\x07\x80\xe8\xe4\xac\xa9\x39\x25\x22\xdf\x6a\x2a\x58\xd6\x2b\x3b\xf4\xe7\xc8\x9e\xf4\x05\x34\x23\xce\x26\x23\x58\xea\x55\x47\xa7\xa1\xba\x0a\xce\x38\x75\xad\xc9\x09\x0e\x3a\x89\x3c\x5c\xa8\x87\xd8\x21\xd0\x33\xa8\x01\x88\x64\xc4\xfd\xfc\xdc\xd8\x32\x53\x59\x49\x9c\x1b\x1a\x32\xba\xa3\xef\x4d\x2a\x0d\x30\xad\x52\x37\xc2\xd6\x82\x48\x4b\x76\xaf\x8a\xec\xaa\x64\x5a\xfa\x07\xbd\xc0\x7e\x29\x88\xcd\xd4\xd3\x74\xca\xd9\x96\x93\x38\xa7\x25\x7a\x9c\x9d\x26\x3b\x35\x2a\xfb\x1e\x5f\x57\x66\xcf\x04\xc7\xf7\xd4\x4c\x85\x5d\x02\xd1\xa5\xce\x9a\xc0\x6d\xa4\x8e\x71\xcc\x64\xac\xdd\x72\x8f\x66\x01\xd7\x44\x3c\xcf\xf3\x2e\x26\x77\x44\xd4\xb0\x2f\x14\x2b\x62\xce\x9a\x3c\xb1\x70\xe3\x4d\x02\x53\x06\x73\x1b\xf3\x47\x39\x4d\xdb\x29\xcb\xdc\xb2\xbc\x90\x1f\x50\x82\xa8\x3f\x68\x46\xfc\x1d\xc8\x29\x68\x6a\x28\xba\x9a\xda\x24\x7c\xd7\xd3\x0d\xc4\x69\x76\x06\x3e\x42\xaf\xd1\x89\x47\xce\x4f\xec\xee\xa7\x3b\x8b\x8a\x2a\x45\xb6\x40\x7f\x2a\xba\xb5\xe5\xec\x66\xc8\x25\xec\x09\x5f\x27\xfc\xd0\x6f\xd5\x91\x52\x9d\xe6\x94\x9a\x2c\x42\x75\xcf\x08\x0a\xa2\xdf\xf3\x16\x00\xbd\x3b\x19\xcd\xa9\xdf\x2d\x55\x52\xce\xad\x92\xea\x4d\xf2\x77\x18\x51\x26\x6f\x6b\xea\x00\x4e\x13\xec\xc1\x15\xfb\x9f\x98\xa8\x32\xaf\x70\xba\xe4\xa4\x33\x53\xf3\x3a\x38\x6c\xe4\xb4\xd6\xe1\xb5\xe5\x1c\x49\x86\x2b\x78\x9a\xd1\x86\x26\xbe\xd7\xb6\x50\x7f\xe0\xcb\x9a\xf7\x14\xb1\xe6\x3c\x2e\x8e\x3a\x29\xd9\x49\xa0\x20\x50\x01\xa8\x0a\x68\x0c\xaa\x17\x4b\xc5\xee\x99\x1f\xb8\x1f\x41\x0e\xa0\xf7\x21\x7f\x8c\xb7\x44\x39\x85\x6b\x2a\x91\x0e\x0c\xc8\xc3\x1d\x58\xcd\xd4\xf8\x83\xbc\xa1\x9c\x58\x99\x1f\x8c\x72\x81\xee\x27\x83\x38\xd9\x3e\x67\x3d\x43\xa4\x3a\x53\x15\xde\x9e\xd4\x16\xd5\xf2\xc0\x5f\xe2\x58\x81\x62\x57\x4e\xe5\xce\xde\x87\x9a\xa0\xc2\xeb\x2a\xdf\xea\xd3\x8c\x6b\xac\x0d\xed\x9d\xfb\x37\x58\x36\xc0\x1b\x05\x8c\x86\xd8\x41\xb7\xa6\x4a\x4e\xed\x5f\xc8\x24\x40\x50\xee\x73\x6e\x7c\xc5\x58\x54\x70\x96\xb7\x5b\x05\xcc\xc9\xfb\x91\xaa\xbc\x69\xf2\x8c\x2e\x6f\x65\x46\xee\x0d\x05\xc0\xdb\x0c\x44\xa9\xa3\x6e\x52\xd3\x60\x27\xa2\x43\x95\x5f\x93\x97\x24\x79\xd5\x95\x4a\x94\xf9\x4f\xd5\x5e\x54\x53\x93\xa1\x67\x9f\x9f\x8f\xe8\x1b\x95\x2e\xa7\x09\xb0\x63\xcd\x7a\xaf\x7a\x9a\x03\x71\xe7\xc9\xea\x06\x5b\x7b\xaa\x63\x6a\xf3\x8a\x33\x27\xd8\xc4\xec\xb3\x16\xe3\xed\x18\xa7\x5a\xe7\xfd\x52\xa0\x87\x99\xab\x71\xc6\xcd\xfb\x50\x4f\x05\xe0\xca\xbe\xa8\x99\x5f\x35\xa3\x72\xba\xd1\xea\xc6\x1e\xa8\xc6\x1e\xad\xda\xf3\x9e\xa4\x43\xf7\x22\xb7\xd3\xaa\x69\xec\xb8\xe4\x6a\xf2\xfb\x29\xda\xb1\x33\xf3\x65\x2d\x52\x47\x11\x59\x5d\x45\xa2\x74\xbc\x59\xf5\xe6\xdd\x55\x56\x9b\x5f\xbd\x2f\x36\xf1\x7f\x95\xe2\x61\x91\x7a\x77\xb1\x2e\xc5\x36\xeb\xb8\xaa\xaa\xe6\x36\xed\x60\x1e\xab\xbc\x78\x91\xbd\x14\x53\x17\x9f\x5e\xbc\xd9\x51\x8a\x87\x8a\xdd\xdb\xde\xba\x37\x7c\x5b\xed\x60\x4d\x4a\x77\x4e\x36\x52\x4c\x5c\xec\xe8\x1e\x67\xb8\xe0\x7d\xb7\x69\x7b\x6f\x78\x7a\x7a\xb3\x11\x16\xd0\x32\x9c\x7f\x34\x93\xd8\x7f\xe0\x5d\x75\xc1\x5a\x76\xc2\x61\x07\x3b\xda\xde\x8e\xe6\x3e\xe5\xa0\xd2\x8f\x65\x15\xd6\xa1\xe2\x26\x2b\x62\xdc\x64\xcb\x7e\x53\xe2\x15\xee\x4d\x9a\x6c\x39\xed\x99\x6c\xa9\x2f\x78\xc7\xe5\x40\x12\xec\x5e\x05\x37\x36\x81\x62\xad\xab\x56\x91\x32\x68\x5b\xf8\xe5\xdd\x4b\x20\x29\xfd\x2f\x9f\xc5\x0c\x7c\x0c\xff\xfe\x07\x63\x8d\x4f\xe1\x87\xda\xd1\x0e\xde\x5c\x6c\x06\x06\x81\x9f\x8b\xab\x4a\x1f\xe1\x81\xf1\x6e\xcf\x78\x0f\x06\x0f\xf2\xfe\x2a\x3d\x68\xa6\x61\x37\xba\x5d\x7c\x36\x38\x4d\x6b\xcf\x29\x82\xfa\xa8\x57\x81\x96\x4d\x0f\x64\x15\x29\x1b\x2c\x3d\xd8\xd1\xbb\x1d\x90\x7d\x9b\x75\xd8\xa2\xb2\xd6\xd9\xce\x7f\x5b\xcc\x22\x7a\xb6\x7d\xed\x57\x1d\x75\x3e\x7e\xb2\x94\x27\x4b\xfd\xfe\x87\x87\x0f\xfe\x1b\x00\x00\xff\xff\x56\xca\x41\x6b\x68\x1b\x00\x00") +var __1605075346_add_communitiesUpSql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x94\x58\x5d\x8f\x54\x47\x0e\x7d\x47\xe2\x3f\x5c\xf1\x42\x22\xf1\x50\x65\x57\xd9\x55\x8a\xf6\x61\x80\x41\x42\x3b\x99\x89\x60\x58\x91\x27\x74\xbb\x6f\xf7\xee\xec\x2a\x21\x02\x12\x29\xff\x7e\xe5\x73\xdc\x03\x6c\xd4\x48\xcb\x68\x98\xfe\xa8\x5b\x65\x1f\xdb\xc7\xc7\x75\x71\x75\x7b\xf9\x6a\xb9\xbd\x78\x7a\x75\xb9\xec\xff\xb5\x7e\xfa\xb8\x5c\x3c\x7f\xbe\x3c\xbb\xb9\x7a\xf3\xe3\xf5\xb2\x7f\xff\xcb\x2f\xbf\xff\x7a\xf7\xe9\xcf\x77\x77\xdb\x72\x7b\xf9\xf6\x76\x79\x7e\xf9\xe2\xe2\xcd\xd5\xed\xf2\xe8\xd1\x0f\x0f\x1f\xbc\xf9\xe9\xf9\xc5\xed\xe9\xb1\xd7\x97\xb7\x5f\xaf\xff\x1b\x17\x3d\x7c\xf0\xe5\x11\xbf\x7f\x3c\x7c\x78\xf7\xcb\xe1\xe3\xc7\xf5\x9f\x87\xff\xe7\xa8\x87\x0f\x9e\xbd\xba\x8c\xc3\xb8\xcd\xcb\x17\xcb\xf5\xcd\xed\x72\xf9\xf6\xe5\xeb\xdb\xd7\xf7\xcf\xde\x1d\x3e\xbe\xfb\xe2\xf5\xf2\xdd\xc3\x07\xcb\x72\xb7\x2d\x4f\xaf\x6e\x9e\x62\xfd\xf5\x9b\xab\xab\xe5\xa7\x57\x2f\x7f\xbc\x78\xf5\xf3\xf2\xf7\xcb\x9f\x97\x9b\xeb\xe5\xd9\xcd\xf5\x8b\xab\x97\xcf\x6e\x97\x57\x97\x3f\x5d\x5d\x3c\xbb\x7c\x12\x0f\xfd\xf6\xe1\xee\x8f\xf5\xd3\xe1\xdd\x7f\x0e\x7f\xe2\x69\x7c\xb8\x1d\x3e\xee\x3f\xdc\xfd\xf6\xe9\xee\xfd\xaf\x5f\x6f\x89\x6f\xff\xfd\xfe\xee\xd7\xc3\xb6\x3c\xbd\xb9\xb9\xfa\x7c\xd6\xc9\x87\x17\x17\x57\xaf\xb9\xf3\x1f\x87\x0f\x77\xc7\xbb\x6f\x2f\x8c\x75\xdf\xc3\xe9\x97\xd7\xaf\x2f\x5f\xdd\x2e\x2f\xaf\x6f\x6f\xce\x7b\xf9\xe8\x6e\x7b\xf4\x64\x79\xf4\x85\xcd\xf1\xf6\x0b\x6b\xe3\x2d\xcd\x8b\x57\x27\x0b\x1e\x7d\xbf\xfc\xe3\xe2\xea\xcd\xe5\xeb\xe5\xbb\xb7\x8f\x8b\xce\x9d\x6c\x6b\xf3\xde\x65\x5d\x6b\xf5\x75\xda\x61\x1d\xc7\xba\xb5\xad\x96\xb1\x5b\xcd\x4c\x7d\xef\xbd\xfa\xaa\xfb\xd9\xd6\xee\xbb\x39\xb7\xdd\x6e\xac\xa5\xc8\x61\x5b\xe5\xf1\x13\x62\xb1\xbc\x7d\x5c\xd6\x56\x0f\x47\x95\xad\xd6\xb6\xad\x87\x71\x3c\x6c\xb2\x1b\x87\x4d\x74\x3d\xee\xdb\x61\x5f\x37\xd9\xf7\xdd\x6c\x7d\xfa\x7e\xda\xae\xb6\xd1\xd6\xed\x58\x4a\xdf\x86\xcd\xde\xd6\x7d\xd9\x86\xef\x4a\xef\xc7\x52\xd7\xb2\xb3\xa3\xb4\x2e\xdb\x51\x0e\x32\xd7\x26\x63\x77\xd8\x59\x69\x7b\xdf\xed\x56\x9d\xfb\xe1\xc7\xdd\xae\xcb\x71\xdd\xe9\x5a\xe4\x58\x7c\x15\xd1\xee\xa5\x54\x59\xad\x8e\x32\xea\x5a\x65\xcc\x52\xcb\x3a\x5a\xa9\x5a\x7c\x68\xd1\x66\xa6\xd5\xaa\x89\x4e\x35\xed\x56\x55\xad\x99\xa8\x69\xd3\xf8\x37\x55\x54\x4d\xad\x9b\x58\x8d\xf5\x3a\x74\x58\x80\x60\x5a\xb4\x9b\xc5\xf7\x5a\xac\x9a\x5a\xd5\x66\x8a\xdf\xa9\x6a\x82\x5d\xba\x5a\x3c\xaf\x55\x8b\x89\xba\x16\x2d\xa6\x66\x71\x86\x89\x75\x6b\x1a\xfb\xc6\x12\x3e\x37\xb0\x6e\xc6\x1a\x58\xe4\x3a\xcd\x54\xb5\xab\x68\xd7\xa1\xcd\x5a\xfc\xc6\x59\xf1\x84\xa9\x16\xad\x61\x8e\x56\xeb\xea\x58\xe5\xf0\x29\x76\x16\xec\x97\xff\xc2\x3b\xd8\xdd\xac\x5a\xd5\xaa\x71\x8e\x55\x09\x84\xfe\x8a\x4b\x58\x6e\x1d\x7e\x37\xbc\x73\x4b\x1c\x74\x5a\x58\x11\xbe\xcc\xd8\xc9\x02\x13\x85\x5d\x66\x1d\x18\xba\xba\x0e\xa0\x1a\x9e\x55\x60\x15\xa8\x0e\x6b\x3a\x4d\x80\x5a\x0f\x2f\x60\xd7\x84\x07\x06\x5c\xc2\x62\xd1\x0a\x4f\x24\xf6\xb6\x0a\x14\xe2\xe9\xf0\x08\xf6\x60\x5d\xe0\x14\xfb\x57\xfa\x0e\xff\xba\x76\x9d\x38\xa1\xea\xd4\x16\x3e\x46\x5c\x4c\x61\xb1\x68\x4b\x7f\x54\x9b\x16\xf5\xb0\x2f\x76\xd3\xa9\xae\x15\x9f\xc6\xbb\xc0\xb9\x9f\xc5\x05\x9e\x85\xa9\xb1\x83\x76\x60\x23\x11\x2e\x6d\x71\xb6\xce\x78\x1f\xbe\x87\x4d\x61\xa7\x2a\xd6\xc6\x2b\x03\x2a\x01\xe4\x84\xbb\x1d\x71\x2a\xc8\xb5\x0a\x2b\x0a\xd0\xa1\xf5\xf1\x9c\x03\xf3\x0c\x60\x64\x0f\x50\x30\x60\xc2\x0c\xea\xe9\x07\xb3\x2d\xf2\xd8\x11\x13\xa3\xc7\x5a\x2c\x70\xa8\xc8\xc7\x40\x76\x04\x8a\x88\x55\x43\x34\x3a\xf0\x88\xa8\x21\xb3\x81\xeb\x50\x1e\x38\xb4\x87\xfd\xc0\x79\xc2\xc7\x7a\x16\x97\x9a\xc8\x38\xf2\x4b\x71\xfe\xc4\xae\xb4\x6d\x22\x2b\xe2\xd4\xc8\xe6\x8e\xca\x70\xfc\x2d\x88\x5c\xf8\xac\xb0\x21\xd6\x0b\x9e\x9c\xb0\xcf\x34\x62\xde\x51\x07\x12\xde\x1a\x33\xc4\x10\x31\xa0\xa8\x8c\xf8\x44\x86\x54\xec\x15\x91\x19\x81\x66\xe0\x86\x48\x78\xd4\x0f\x62\x63\xc4\x1b\xb1\x8e\x4c\x1b\xd6\x11\x51\x45\x15\xa3\x7a\x90\xa3\x8c\x4d\x43\x6e\xb2\xfe\x14\x19\xd3\x33\xde\x0d\xf1\x09\x7b\xe6\x59\x5c\x8a\x29\x2a\xf1\x54\xd3\x8a\xb8\xf6\xf0\x0c\xbe\x37\x40\x8d\x7c\x8e\x58\x23\xff\x1d\x71\x6d\x60\x11\xd4\xa1\x16\x8b\xd8\xd6\xe4\x20\xda\xce\xcc\xaf\xc8\xad\x69\xcc\xa4\xe0\x9f\xa8\x41\xf2\x15\xa2\x8f\x5a\x15\x64\x4b\x03\x17\x99\xa1\x2e\x50\x95\x23\xf1\x55\x64\x6a\xc4\xaf\x00\x83\x0e\xdf\x0b\xf0\x47\xf6\xc0\xae\x12\x3c\x86\xdc\x08\x0c\x83\x7f\x72\x55\xc4\x12\xfb\x4f\x9c\x5f\xc0\x4a\xb1\xde\xbf\x91\x2f\x02\xfe\xea\xa8\xbc\xb0\x8a\xf9\xd9\xd3\x2b\xc6\xb4\x23\x42\x05\x2b\x1c\xfc\xa8\xe0\xb9\x58\x45\x36\x8c\x58\x47\xae\x18\xb8\xa6\x27\x8f\x47\xee\xb3\x22\x14\x79\xc9\x7a\x8d\xba\x13\xa2\xa3\x0e\x5e\x8b\x1f\x41\x14\x1b\x10\x13\x78\xd0\xd8\x11\xac\x7f\x61\x5f\x03\x1b\x46\xde\x05\xee\x1a\xf1\xc4\x19\x92\x5c\x10\xec\x1f\x95\x89\x6a\x82\x35\x25\x99\x9d\x38\x1b\x71\x35\x36\x84\x72\x16\x17\x70\x66\x20\x4c\xaf\xc9\x65\x91\x21\x60\xed\x6e\xa7\x6c\xe0\xa9\xc5\xc8\xab\xcc\x9b\x82\x2c\x50\x7c\x1b\xd8\x45\x7c\xc8\xb1\x1d\x98\x3a\xb2\xb1\x23\x07\x58\x45\x86\xdc\x2c\xf8\x49\xde\x62\x8c\x81\x24\x6b\x48\x71\x66\xc3\x9e\x8e\xff\x27\x7c\x40\x57\xd0\x6e\xdc\x21\xaa\xdb\x51\xdd\xc3\xc8\x2e\x0a\x2e\x02\x47\x07\x27\x00\x43\xf6\xcf\x0e\x1e\x64\xf7\x1a\x58\xe9\x66\xec\x85\xe7\x70\x81\x9f\x8e\xcc\x17\xd4\xd1\x4c\xf6\x1b\xc1\x05\x79\x96\x66\x27\x2f\x69\x61\x70\x5d\x53\x22\xc2\x1e\x13\xa8\x0c\x74\x69\xcb\x7e\xc0\x6e\x58\x50\x01\x6e\x1d\xfb\x90\x9b\x1c\x9d\x4e\x60\x19\x3b\x43\x43\x54\xc9\x6b\x2d\x3d\xee\x60\x97\x8a\x4f\x3a\x6a\xad\xa1\x47\x89\x31\x73\xc9\xc1\xa8\x64\x20\x77\x8a\x97\x90\x0f\xc0\x73\x15\x3f\x8a\x67\x3b\x2a\x8b\x39\xdc\xa9\x2c\x62\x8f\xb3\xb8\xf4\x53\x2f\x05\xc7\xa2\xfe\x50\xdf\xd4\x22\xf1\xb4\x23\x3a\xf4\xae\x80\x5b\x14\xf5\x15\xf9\x51\xe1\xb1\x00\x53\x47\xa6\xd2\x42\xbf\xef\x5f\x9e\x3d\x37\xfa\x10\xbb\xbd\x22\x2b\x8c\xbc\x18\x15\x4a\x2d\x13\xb8\xa3\xef\x19\x32\xa7\xc0\x27\xb2\x74\x01\xa3\x0a\x14\x48\x45\x7e\x69\xf2\x72\x67\xef\x32\xd6\x77\x07\x5e\xae\xac\x44\x72\xac\x20\x77\xe2\x99\xa1\x03\x19\xc6\xee\xe0\xf0\x73\x9c\xad\x23\x3d\xe1\x8e\x4e\x14\xcf\xa1\x82\x81\x73\x01\x37\xb8\x92\x79\x27\x7a\x28\xea\xf7\x33\xbf\x83\x21\x3d\xbd\xa4\x6f\xb4\xa3\x22\x67\x7a\x76\x38\xaa\x92\x06\xb6\xa4\x5f\x0d\x55\x45\xec\x85\x7c\x03\x85\x53\xc1\xb5\x95\x6a\x04\x15\x9c\x6c\x69\x59\x65\x11\x7d\x95\x54\x76\xdd\xa8\xf2\x06\x2a\xb8\x65\xd4\xe2\xc4\x81\x0c\x9f\xb9\x73\x83\x3f\x92\xf9\xad\xcc\x9a\xd8\xe3\x5b\x7d\x1a\xbd\xb2\xb0\x3f\x50\x01\x40\x5d\xf9\xbd\xde\x9a\x46\x12\x52\x28\x0d\xf6\x13\x45\x36\xc2\x6f\xe8\xde\x82\xbe\x40\xbc\x34\x77\xa5\x8a\xad\xc4\x1a\xbd\xc6\xb3\x7f\x9a\x52\x8f\x6a\xc6\x3b\x4f\x43\x2c\x98\xf3\xec\x30\xd4\x06\x0d\x38\x32\xde\x0a\xfe\x60\x4f\x9f\xc8\x12\x83\x4e\xe8\xb0\xb3\x43\x5f\xb2\xa7\x37\x74\x01\x66\x5a\x63\x46\xa1\xde\x05\x9c\xd3\xa8\xb8\xce\xd6\x11\x7b\x68\x87\x56\x19\xe0\xd9\xca\x3e\xc8\xec\x87\x27\xd4\x7d\x8a\x18\x78\xd6\xa7\xe0\x9b\xe8\x3a\x66\x9a\xba\x81\x7c\xc3\x4e\xab\xe8\x4e\x8d\x1c\x43\x55\x9b\x9d\x69\x02\x35\x18\x8a\x1e\x4a\x55\x5f\x93\x35\x0b\x31\xca\x48\x4b\x6a\x96\x9a\x4a\xdc\xc0\x5b\x5d\xf9\xcd\x00\x76\x92\x75\xc2\x35\x1d\x55\xd5\x93\x09\xa8\x36\x15\x55\x85\x39\xe2\xa4\x9b\xa1\x69\xea\x37\xfb\x11\x95\xc6\xbd\x62\x83\x6e\x81\x26\x55\xf6\x52\x54\x36\x90\x50\x70\x20\x75\xbc\x62\x96\xc2\xec\x92\xd3\x92\x23\x52\x0d\x33\x4a\x05\x23\x56\x3b\xcd\x5e\x54\x0f\x3d\xfb\x10\x2c\x4e\x0f\xd4\x38\x5b\xf4\xec\xb6\x98\xa0\xa0\xa4\x31\x3f\x24\xfa\xc9\xf0\xfc\x14\xb8\x9f\x72\xdc\xa8\xd7\xd1\xb7\x81\x06\xb4\x2c\x26\x94\x54\x2e\x95\x55\xac\xec\x43\x4a\x15\x0a\xed\x18\x4e\x9c\xcb\x17\x55\x6a\x7b\x6a\x53\x2a\x11\x3c\x97\x8c\x31\xd0\xbf\x99\x49\x4c\x8e\x0a\xec\xa1\xfc\x81\x04\x72\x8b\xf3\x18\xfa\x5f\x58\x0c\x1e\x00\xa2\x93\xb3\xa6\xe6\x94\x88\x7c\xab\xa9\x60\x59\xaf\xec\xd0\x9f\x23\x7b\xd2\x17\xd0\x8c\x38\x9b\x8c\x60\xa9\x57\x1d\x9d\x86\xea\x2a\x38\xe3\xd4\xb5\x26\x27\x38\xe8\x24\xf2\x70\xa1\x1e\x62\x87\x40\xcf\xa0\x06\x20\x92\x11\xf7\xf3\x73\x63\xcb\x4c\x65\x25\x71\x6e\x68\xc8\xe8\x8e\xbe\x37\xa9\x34\xc0\xb4\x4a\xdd\x08\x5b\x0b\x22\x2d\xd9\xbd\x2a\xb2\xab\x92\x69\xe9\x1f\xf4\x02\xfb\xa5\x20\x36\x53\x4f\xd3\x29\x67\x5b\x4e\xe2\x9c\x96\xe8\x71\x76\x9a\xec\xd4\xa8\xec\x7b\x7c\x5d\x99\x3d\x13\x1c\xdf\x53\x33\x15\x76\x09\x44\x97\x3a\x6b\x02\xb7\x91\x3a\xc6\x31\x93\xb1\x76\xcb\x3d\x9a\x05\x5c\x13\xf1\x3c\xcf\xbb\x98\xdc\x11\x51\xc3\xbe\x50\xac\x88\x39\x6b\xf2\xc4\xc2\x8d\x37\x09\x4c\x19\xcc\x6d\xcc\x1f\xe5\x34\x6d\xa7\x2c\x73\xcb\xf2\x42\x7e\x40\x09\xa2\xfe\xa0\x19\xf1\x77\x20\xa7\xa0\xa9\xa1\xe8\x6a\x6a\x93\xf0\x5d\x4f\x37\x10\xa7\xd9\x19\xf8\x08\xbd\x46\x27\x1e\x39\x3f\xb1\xbb\x9f\xee\x2c\x2a\xaa\x14\xd9\x02\xfd\xa9\xe8\xd6\x96\xb3\x9b\x21\x97\xb0\x27\x7c\x9d\xf0\x43\xbf\x55\x47\x4a\x75\x9a\x53\x6a\xb2\x08\xd5\x3d\x23\x28\x88\x7e\xcf\x5b\x00\xf4\xee\x64\x34\xa7\x7e\xb7\x54\x49\x39\xb7\x4a\xaa\x37\xc9\xdf\x61\x44\x99\xbc\xad\xa9\x03\x38\x4d\xb0\x07\x57\xec\x7f\x62\xa2\xca\xbc\xc2\xe9\x92\x93\xce\x4c\xcd\xeb\xe0\xb0\x91\xd3\x5a\x87\xd7\x96\x73\x24\x19\xae\xe0\x69\x46\x1b\x9a\xf8\x5e\xdb\x42\xfd\x81\x2f\x6b\xde\x53\xc4\x9a\xf3\xb8\x38\xea\xa4\x64\x27\x81\x82\x40\x05\xa0\x2a\xa0\x31\xa8\x5e\x2c\x15\xbb\x67\x7e\xe0\x7e\x04\x39\x80\xde\x87\xfc\x31\xde\x12\xe5\x14\xae\xa9\x44\x3a\x30\x20\x0f\x77\x60\x35\x53\xe3\x0f\xf2\x86\x72\x62\x65\x7e\x30\xca\x05\xba\x9f\x0c\xe2\x64\xfb\x9c\xf5\x0c\x91\xea\x4c\x55\x78\x7b\x52\x5b\x54\xcb\x03\x7f\x89\x63\x05\x8a\x5d\x39\x95\x3b\x7b\x1f\x6a\x82\x0a\xaf\xab\x7c\xab\x4f\x33\xae\xb1\x36\xb4\x77\xee\xdf\x60\xd9\x00\x6f\x14\x30\x1a\x62\x07\xdd\x9a\x2a\x39\xb5\x7f\x21\x93\x00\x41\xb9\xcf\xb9\xf1\x15\x63\x51\xc1\x59\xde\x6e\x15\x30\x27\xef\x47\xaa\xf2\xa6\xc9\x33\xba\xbc\x95\x19\xb9\x37\x14\x00\x6f\x33\x10\xa5\x8e\xba\x49\x4d\x83\x9d\x88\x0e\x55\x7e\x4d\x5e\x92\xe4\x55\x57\x2a\x51\xe6\x3f\x55\x7b\x51\x4d\x4d\x86\x9e\x7d\x7e\x3e\xa2\x6f\x54\xba\x9c\x26\xc0\x8e\x35\xeb\xbd\xea\x69\x0e\xc4\x9d\x27\xab\x1b\x6c\xed\xa9\x8e\xa9\xcd\x2b\xce\x9c\x60\x13\xb3\xcf\x5a\x8c\xb7\x63\x9c\x6a\x9d\xf7\x4b\x81\x1e\x66\xae\xc6\x19\x37\xef\x43\x3d\x15\x80\x2b\xfb\xa2\x66\x7e\xd5\x8c\xca\xe9\x46\xab\x1b\x7b\xa0\x1a\x7b\xb4\x6a\xcf\x7b\x92\x0e\xdd\x8b\xdc\x4e\xab\xa6\xb1\xe3\x92\xab\xc9\xef\xa7\x68\xc7\xce\xcc\x97\xb5\x48\x1d\x45\x64\x75\x15\x89\xd2\xf1\x66\xd5\x9b\x77\x57\x59\x6d\x7e\xf5\xbe\xd8\xc4\xff\x55\x8a\x87\x45\xea\xdd\xc5\xba\x14\xdb\xac\xe3\xaa\xaa\x9a\xdb\xb4\x83\x79\xac\xf2\xe2\x45\xf6\x52\x4c\x5d\x7c\x7a\xf1\x66\x47\x29\x1e\x2a\x76\x6f\x7b\xeb\xde\xf0\x6d\xb5\x83\x35\x29\xdd\x39\xd9\x48\x31\x71\xb1\xa3\x7b\x9c\xe1\x82\xf7\xdd\xa6\xed\xbd\xe1\xe9\xe9\xcd\x46\x58\x40\xcb\x70\xfe\xd1\x4c\x62\xff\x81\x77\xd5\x05\x6b\xd9\x09\x87\x1d\xec\x68\x7b\x3b\x9a\xfb\x94\x83\x4a\x3f\x96\x55\x58\x87\x8a\x9b\xac\x88\x71\x93\x2d\xfb\x4d\x89\x57\xb8\x37\x69\xb2\xe5\xb4\x67\xb2\xa5\xbe\xe0\x1d\x97\x03\x49\xb0\x7b\x15\xdc\xd8\x04\x8a\xb5\xae\x5a\x45\xca\xa0\x6d\xe1\x97\x77\x2f\x81\xa4\xf4\xbf\x7c\x16\x33\xf0\x31\xfc\xfb\x1f\x8c\x35\x3e\x85\x1f\x6a\x47\x3b\x78\x73\xb1\x19\x18\x04\x7e\x2e\xae\x2a\x7d\x84\x07\xc6\xbb\x3d\xe3\x3d\x18\x3c\xc8\xfb\xab\xf4\xa0\x99\x86\xdd\xe8\x76\xf1\xd9\xe0\x34\xad\x3d\xa7\x08\xea\xa3\x5e\x05\x5a\x36\x3d\x90\x55\xa4\x6c\xb0\xf4\x60\x47\xef\x76\x40\xf6\x6d\xd6\x61\x8b\xca\x5a\x67\x3b\xff\x6d\x31\x8b\xe8\xd9\xf6\xb5\x5f\x75\xd4\xf9\xf8\xc9\x52\x9e\x2c\xf5\xfb\x1f\x1e\x3e\xf8\x6f\x00\x00\x00\xff\xff\x2e\xf8\x5e\x6b\x3b\x1b\x00\x00") func _1605075346_add_communitiesUpSqlBytes() ([]byte, error) { return bindataRead( @@ -778,8 +485,28 @@ func _1605075346_add_communitiesUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1605075346_add_communities.up.sql", size: 7016, mode: os.FileMode(0644), modTime: time.Unix(1608287483, 0)} - a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x66, 0x36, 0x32, 0x3b, 0x5a, 0xf, 0xbb, 0x61, 0x32, 0x2a, 0xbb, 0xb0, 0xe8, 0x24, 0x7f, 0x7c, 0xd9, 0xba, 0xd0, 0x5a, 0xb6, 0x12, 0x37, 0x4a, 0xd9, 0x0, 0xe, 0xa2, 0x4e, 0x22, 0xa7, 0x8c}} + info := bindataFileInfo{name: "1605075346_add_communities.up.sql", size: 6971, mode: os.FileMode(0644), modTime: time.Unix(1610018391, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1f, 0x64, 0xea, 0xb4, 0xae, 0x9e, 0xdb, 0x9, 0x58, 0xb6, 0x5c, 0x7a, 0x50, 0xc5, 0xfe, 0x93, 0x5d, 0x36, 0x85, 0x5d, 0x6a, 0xba, 0xc9, 0x7e, 0x84, 0xd7, 0xbf, 0x2a, 0x53, 0xf3, 0x97, 0xf1}} + return a, nil +} + +var _readmeMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x54\x91\xc1\xce\xd3\x30\x10\x84\xef\x7e\x8a\x91\x7a\x01\xa9\x2a\x8f\xc0\x0d\x71\x82\x03\x48\x1c\xc9\x36\x9e\x36\x96\x1c\x6f\xf0\xae\x93\xe6\xed\x91\xa3\xc2\xdf\xff\x66\xed\xd8\x33\xdf\x78\x4f\xa7\x13\xbe\xea\x06\x57\x6c\x35\x39\x31\xa7\x7b\x15\x4f\x5a\xec\x73\x08\xbf\x08\x2d\x79\x7f\x4a\x43\x5b\x86\x17\xfd\x8c\x21\xea\x56\x5e\x47\x90\x4a\x14\x75\x48\xde\x64\x37\x2c\x6a\x96\xae\x99\x48\x05\xf6\x27\x77\x13\xad\x08\xae\x8a\x51\xe7\x25\xf3\xf1\xa9\x9f\xf9\x58\x58\x2c\xad\xbc\xe0\x8b\x56\xf0\x21\x5d\xeb\x4c\x95\xb3\xae\x84\x60\xd4\xdc\xe6\x82\x5d\x1b\x36\x6d\x39\x62\x92\xf5\xb8\x11\xdb\x92\xd3\x28\xce\xe0\x13\xe1\x72\xcd\x3c\x63\xd4\x65\x87\xae\xac\xe8\xc3\x28\x2e\x67\x44\x66\x3a\x21\x25\xa2\x72\xac\x14\x67\xbc\x84\x9f\x53\x32\x8c\x52\x70\x25\x56\xd6\xfd\x8d\x05\x37\xad\x30\x9d\x9f\xa6\x86\x0f\xcd\x58\x7f\xcf\x34\x93\x3b\xed\x90\x9f\xa4\x1f\xcf\x30\x85\x4d\x07\x58\xaf\x7f\x25\xc4\x9d\xf3\x72\x64\x84\xd0\x7f\xf9\x9b\x3a\x2d\x84\xef\x85\x48\x66\x8d\xd8\x88\x9b\x8c\x8c\x98\x5b\xf6\x74\x14\x4e\x33\x0d\xc9\xe0\x93\x38\xda\x12\xc5\x69\xbd\xe4\xf0\x2e\x7a\x78\x07\x1c\xfe\x13\x9f\x91\x29\x31\x95\x7b\x7f\x62\x59\x37\xb4\xe5\x5e\x25\xfe\x33\xee\xd5\x53\x71\xd6\xda\x3a\xd8\xcb\xde\x2e\xf8\xa1\x90\x55\x53\x0c\xc7\xaa\x0d\xe9\x76\x14\x29\x1c\x7b\x68\xdd\x2f\xe1\x6f\x00\x00\x00\xff\xff\x3c\x0a\xc2\xfe\x2a\x02\x00\x00") + +func readmeMdBytes() ([]byte, error) { + return bindataRead( + _readmeMd, + "README.md", + ) +} + +func readmeMd() (*asset, error) { + bytes, err := readmeMdBytes() + if err != nil { + return nil, err + } + + info := bindataFileInfo{name: "README.md", size: 554, mode: os.FileMode(0644), modTime: time.Unix(1610018362, 0)} + a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x1c, 0x6e, 0xfb, 0xcc, 0x81, 0x94, 0x4d, 0x8c, 0xa0, 0x3b, 0x5, 0xb0, 0x18, 0xd6, 0xbb, 0xb3, 0x79, 0xc8, 0x8f, 0xff, 0xc1, 0x10, 0xf9, 0xf, 0x20, 0x1b, 0x4a, 0x74, 0x96, 0x42, 0xd7, 0xa8}} return a, nil } @@ -798,7 +525,7 @@ func docGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "doc.go", size: 850, mode: os.FileMode(0644), modTime: time.Unix(1603694101, 0)} + info := bindataFileInfo{name: "doc.go", size: 850, mode: os.FileMode(0644), modTime: time.Unix(1610007618, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa0, 0xcc, 0x41, 0xe1, 0x61, 0x12, 0x97, 0xe, 0x36, 0x8c, 0xa7, 0x9e, 0xe0, 0x6e, 0x59, 0x9e, 0xee, 0xd5, 0x4a, 0xcf, 0x1e, 0x60, 0xd6, 0xc3, 0x3a, 0xc9, 0x6c, 0xf2, 0x86, 0x5a, 0xb4, 0x1e}} return a, nil } @@ -898,70 +625,44 @@ var _bindata = map[string]func() (*asset, error){ "000001_init.up.db.sql": _000001_initUpDbSql, - "000002_add_last_ens_clock_value.down.sql": _000002_add_last_ens_clock_valueDownSql, - "000002_add_last_ens_clock_value.up.sql": _000002_add_last_ens_clock_valueUpSql, - "1586358095_add_replace.down.sql": _1586358095_add_replaceDownSql, - "1586358095_add_replace.up.sql": _1586358095_add_replaceUpSql, - "1588665364_add_image_data.down.sql": _1588665364_add_image_dataDownSql, - "1588665364_add_image_data.up.sql": _1588665364_add_image_dataUpSql, - "1589365189_add_pow_target.down.sql": _1589365189_add_pow_targetDownSql, - "1589365189_add_pow_target.up.sql": _1589365189_add_pow_targetUpSql, - "1591277220_add_index_messages.down.sql": _1591277220_add_index_messagesDownSql, - "1591277220_add_index_messages.up.sql": _1591277220_add_index_messagesUpSql, - "1593087212_add_mute_chat_and_raw_message_fields.down.sql": _1593087212_add_mute_chat_and_raw_message_fieldsDownSql, - "1593087212_add_mute_chat_and_raw_message_fields.up.sql": _1593087212_add_mute_chat_and_raw_message_fieldsUpSql, - "1595862781_add_audio_data.down.sql": _1595862781_add_audio_dataDownSql, - "1595862781_add_audio_data.up.sql": _1595862781_add_audio_dataUpSql, - "1595865249_create_emoji_reactions_table.down.sql": _1595865249_create_emoji_reactions_tableDownSql, - "1595865249_create_emoji_reactions_table.up.sql": _1595865249_create_emoji_reactions_tableUpSql, - "1596805115_create_group_chat_invitations_table.down.sql": _1596805115_create_group_chat_invitations_tableDownSql, - "1596805115_create_group_chat_invitations_table.up.sql": _1596805115_create_group_chat_invitations_tableUpSql, "1597322655_add_invitation_admin_chat_field.up.sql": _1597322655_add_invitation_admin_chat_fieldUpSql, "1597757544_add_nickname.up.sql": _1597757544_add_nicknameUpSql, - "1598955122_add_mentions.down.sql": _1598955122_add_mentionsDownSql, - "1598955122_add_mentions.up.sql": _1598955122_add_mentionsUpSql, - "1599641390_add_emoji_reactions_index.down.sql": _1599641390_add_emoji_reactions_indexDownSql, - "1599641390_add_emoji_reactions_index.up.sql": _1599641390_add_emoji_reactions_indexUpSql, - "1599720851_add_seen_index_remove_long_messages.down.sql": _1599720851_add_seen_index_remove_long_messagesDownSql, - "1599720851_add_seen_index_remove_long_messages.up.sql": _1599720851_add_seen_index_remove_long_messagesUpSql, "1603198582_add_profile_chat_field.up.sql": _1603198582_add_profile_chat_fieldUpSql, - "1603816533_add_links.down.sql": _1603816533_add_linksDownSql, - "1603816533_add_links.up.sql": _1603816533_add_linksUpSql, - "1603888149_create_chat_identity_last_published_table.down.sql": _1603888149_create_chat_identity_last_published_tableDownSql, - "1603888149_create_chat_identity_last_published_table.up.sql": _1603888149_create_chat_identity_last_published_tableUpSql, "1605075346_add_communities.up.sql": _1605075346_add_communitiesUpSql, + "README.md": readmeMd, + "doc.go": docGo, } @@ -1006,41 +707,28 @@ type bintree struct { } var _bintree = &bintree{nil, map[string]*bintree{ - "000001_init.down.db.sql": &bintree{_000001_initDownDbSql, map[string]*bintree{}}, - "000001_init.up.db.sql": &bintree{_000001_initUpDbSql, map[string]*bintree{}}, - "000002_add_last_ens_clock_value.down.sql": &bintree{_000002_add_last_ens_clock_valueDownSql, map[string]*bintree{}}, - "000002_add_last_ens_clock_value.up.sql": &bintree{_000002_add_last_ens_clock_valueUpSql, map[string]*bintree{}}, - "1586358095_add_replace.down.sql": &bintree{_1586358095_add_replaceDownSql, map[string]*bintree{}}, - "1586358095_add_replace.up.sql": &bintree{_1586358095_add_replaceUpSql, map[string]*bintree{}}, - "1588665364_add_image_data.down.sql": &bintree{_1588665364_add_image_dataDownSql, map[string]*bintree{}}, - "1588665364_add_image_data.up.sql": &bintree{_1588665364_add_image_dataUpSql, map[string]*bintree{}}, - "1589365189_add_pow_target.down.sql": &bintree{_1589365189_add_pow_targetDownSql, map[string]*bintree{}}, - "1589365189_add_pow_target.up.sql": &bintree{_1589365189_add_pow_targetUpSql, map[string]*bintree{}}, - "1591277220_add_index_messages.down.sql": &bintree{_1591277220_add_index_messagesDownSql, map[string]*bintree{}}, - "1591277220_add_index_messages.up.sql": &bintree{_1591277220_add_index_messagesUpSql, map[string]*bintree{}}, - "1593087212_add_mute_chat_and_raw_message_fields.down.sql": &bintree{_1593087212_add_mute_chat_and_raw_message_fieldsDownSql, map[string]*bintree{}}, - "1593087212_add_mute_chat_and_raw_message_fields.up.sql": &bintree{_1593087212_add_mute_chat_and_raw_message_fieldsUpSql, map[string]*bintree{}}, - "1595862781_add_audio_data.down.sql": &bintree{_1595862781_add_audio_dataDownSql, map[string]*bintree{}}, - "1595862781_add_audio_data.up.sql": &bintree{_1595862781_add_audio_dataUpSql, map[string]*bintree{}}, - "1595865249_create_emoji_reactions_table.down.sql": &bintree{_1595865249_create_emoji_reactions_tableDownSql, map[string]*bintree{}}, - "1595865249_create_emoji_reactions_table.up.sql": &bintree{_1595865249_create_emoji_reactions_tableUpSql, map[string]*bintree{}}, - "1596805115_create_group_chat_invitations_table.down.sql": &bintree{_1596805115_create_group_chat_invitations_tableDownSql, map[string]*bintree{}}, - "1596805115_create_group_chat_invitations_table.up.sql": &bintree{_1596805115_create_group_chat_invitations_tableUpSql, map[string]*bintree{}}, - "1597322655_add_invitation_admin_chat_field.up.sql": &bintree{_1597322655_add_invitation_admin_chat_fieldUpSql, map[string]*bintree{}}, - "1597757544_add_nickname.up.sql": &bintree{_1597757544_add_nicknameUpSql, map[string]*bintree{}}, - "1598955122_add_mentions.down.sql": &bintree{_1598955122_add_mentionsDownSql, map[string]*bintree{}}, - "1598955122_add_mentions.up.sql": &bintree{_1598955122_add_mentionsUpSql, map[string]*bintree{}}, - "1599641390_add_emoji_reactions_index.down.sql": &bintree{_1599641390_add_emoji_reactions_indexDownSql, map[string]*bintree{}}, - "1599641390_add_emoji_reactions_index.up.sql": &bintree{_1599641390_add_emoji_reactions_indexUpSql, map[string]*bintree{}}, - "1599720851_add_seen_index_remove_long_messages.down.sql": &bintree{_1599720851_add_seen_index_remove_long_messagesDownSql, map[string]*bintree{}}, - "1599720851_add_seen_index_remove_long_messages.up.sql": &bintree{_1599720851_add_seen_index_remove_long_messagesUpSql, map[string]*bintree{}}, - "1603198582_add_profile_chat_field.up.sql": &bintree{_1603198582_add_profile_chat_fieldUpSql, map[string]*bintree{}}, - "1603816533_add_links.down.sql": &bintree{_1603816533_add_linksDownSql, map[string]*bintree{}}, - "1603816533_add_links.up.sql": &bintree{_1603816533_add_linksUpSql, map[string]*bintree{}}, - "1603888149_create_chat_identity_last_published_table.down.sql": &bintree{_1603888149_create_chat_identity_last_published_tableDownSql, map[string]*bintree{}}, - "1603888149_create_chat_identity_last_published_table.up.sql": &bintree{_1603888149_create_chat_identity_last_published_tableUpSql, map[string]*bintree{}}, - "1605075346_add_communities.up.sql": &bintree{_1605075346_add_communitiesUpSql, map[string]*bintree{}}, - "doc.go": &bintree{docGo, map[string]*bintree{}}, + "000001_init.down.db.sql": &bintree{_000001_initDownDbSql, map[string]*bintree{}}, + "000001_init.up.db.sql": &bintree{_000001_initUpDbSql, map[string]*bintree{}}, + "000002_add_last_ens_clock_value.up.sql": &bintree{_000002_add_last_ens_clock_valueUpSql, map[string]*bintree{}}, + "1586358095_add_replace.up.sql": &bintree{_1586358095_add_replaceUpSql, map[string]*bintree{}}, + "1588665364_add_image_data.up.sql": &bintree{_1588665364_add_image_dataUpSql, map[string]*bintree{}}, + "1589365189_add_pow_target.up.sql": &bintree{_1589365189_add_pow_targetUpSql, map[string]*bintree{}}, + "1591277220_add_index_messages.up.sql": &bintree{_1591277220_add_index_messagesUpSql, map[string]*bintree{}}, + "1593087212_add_mute_chat_and_raw_message_fields.up.sql": &bintree{_1593087212_add_mute_chat_and_raw_message_fieldsUpSql, map[string]*bintree{}}, + "1595862781_add_audio_data.up.sql": &bintree{_1595862781_add_audio_dataUpSql, map[string]*bintree{}}, + "1595865249_create_emoji_reactions_table.up.sql": &bintree{_1595865249_create_emoji_reactions_tableUpSql, map[string]*bintree{}}, + "1596805115_create_group_chat_invitations_table.up.sql": &bintree{_1596805115_create_group_chat_invitations_tableUpSql, map[string]*bintree{}}, + "1597322655_add_invitation_admin_chat_field.up.sql": &bintree{_1597322655_add_invitation_admin_chat_fieldUpSql, map[string]*bintree{}}, + "1597757544_add_nickname.up.sql": &bintree{_1597757544_add_nicknameUpSql, map[string]*bintree{}}, + "1598955122_add_mentions.up.sql": &bintree{_1598955122_add_mentionsUpSql, map[string]*bintree{}}, + "1599641390_add_emoji_reactions_index.up.sql": &bintree{_1599641390_add_emoji_reactions_indexUpSql, map[string]*bintree{}}, + "1599720851_add_seen_index_remove_long_messages.up.sql": &bintree{_1599720851_add_seen_index_remove_long_messagesUpSql, map[string]*bintree{}}, + "1603198582_add_profile_chat_field.up.sql": &bintree{_1603198582_add_profile_chat_fieldUpSql, map[string]*bintree{}}, + "1603816533_add_links.up.sql": &bintree{_1603816533_add_linksUpSql, map[string]*bintree{}}, + "1603888149_create_chat_identity_last_published_table.up.sql": &bintree{_1603888149_create_chat_identity_last_published_tableUpSql, map[string]*bintree{}}, + "1605075346_add_communities.up.sql": &bintree{_1605075346_add_communitiesUpSql, map[string]*bintree{}}, + "README.md": &bintree{readmeMd, map[string]*bintree{}}, + "doc.go": &bintree{docGo, map[string]*bintree{}}, }} // RestoreAsset restores an asset under the given directory. diff --git a/protocol/migrations/sqlite/000002_add_last_ens_clock_value.down.sql b/protocol/migrations/sqlite/000002_add_last_ens_clock_value.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1586358095_add_replace.down.sql b/protocol/migrations/sqlite/1586358095_add_replace.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1588665364_add_image_data.down.sql b/protocol/migrations/sqlite/1588665364_add_image_data.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1589365189_add_pow_target.down.sql b/protocol/migrations/sqlite/1589365189_add_pow_target.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1591277220_add_index_messages.down.sql b/protocol/migrations/sqlite/1591277220_add_index_messages.down.sql deleted file mode 100644 index b264f5e09..000000000 --- a/protocol/migrations/sqlite/1591277220_add_index_messages.down.sql +++ /dev/null @@ -1,5 +0,0 @@ -DROP INDEX idx_search_by_local_chat_id_sort_on_cursor; - -CREATE INDEX idx_search_by_chat_id ON user_messages( - substr('0000000000000000000000000000000000000000000000000000000000000000' || clock_value, -64, 64) || id, chat_id, hide -); diff --git a/protocol/migrations/sqlite/1593087212_add_mute_chat_and_raw_message_fields.down.sql b/protocol/migrations/sqlite/1593087212_add_mute_chat_and_raw_message_fields.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1595862781_add_audio_data.down.sql b/protocol/migrations/sqlite/1595862781_add_audio_data.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1595865249_create_emoji_reactions_table.down.sql b/protocol/migrations/sqlite/1595865249_create_emoji_reactions_table.down.sql deleted file mode 100644 index e2effcfc6..000000000 --- a/protocol/migrations/sqlite/1595865249_create_emoji_reactions_table.down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE emoji_reactions; \ No newline at end of file diff --git a/protocol/migrations/sqlite/1596805115_create_group_chat_invitations_table.down.sql b/protocol/migrations/sqlite/1596805115_create_group_chat_invitations_table.down.sql deleted file mode 100644 index 2fe7a2b6d..000000000 --- a/protocol/migrations/sqlite/1596805115_create_group_chat_invitations_table.down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE group_chat_invitations; \ No newline at end of file diff --git a/protocol/migrations/sqlite/1598955122_add_mentions.down.sql b/protocol/migrations/sqlite/1598955122_add_mentions.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1599641390_add_emoji_reactions_index.down.sql b/protocol/migrations/sqlite/1599641390_add_emoji_reactions_index.down.sql deleted file mode 100644 index 184b17ecc..000000000 --- a/protocol/migrations/sqlite/1599641390_add_emoji_reactions_index.down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP INDEX emoji_reactions_message_id_local_chat_id_retracted_idx; diff --git a/protocol/migrations/sqlite/1599720851_add_seen_index_remove_long_messages.down.sql b/protocol/migrations/sqlite/1599720851_add_seen_index_remove_long_messages.down.sql deleted file mode 100644 index 5e6981313..000000000 --- a/protocol/migrations/sqlite/1599720851_add_seen_index_remove_long_messages.down.sql +++ /dev/null @@ -1,2 +0,0 @@ -DROP INDEX seen_local_chat_id_idx; -UPDATE user_messages SET hide = 0 WHERE length(text) > 4096; diff --git a/protocol/migrations/sqlite/1603816533_add_links.down.sql b/protocol/migrations/sqlite/1603816533_add_links.down.sql deleted file mode 100644 index e69de29bb..000000000 diff --git a/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql b/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql deleted file mode 100644 index 42b1c093d..000000000 --- a/protocol/migrations/sqlite/1603888149_create_chat_identity_last_published_table.down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE chat_identity_last_published; \ No newline at end of file diff --git a/protocol/migrations/sqlite/1605075346_add_communities.up.sql b/protocol/migrations/sqlite/1605075346_add_communities.up.sql index cb4df522f..73ba5864e 100644 --- a/protocol/migrations/sqlite/1605075346_add_communities.up.sql +++ b/protocol/migrations/sqlite/1605075346_add_communities.up.sql @@ -2,7 +2,6 @@ ALTER TABLE chats ADD COLUMN community_id TEXT DEFAULT ""; UPDATE chats SET community_id = ""; ALTER TABLE user_messages ADD COLUMN community_id TEXT DEFAULT ""; -UPDATE user_messages SET community_id = ""; CREATE TABLE IF NOT EXISTS communities_communities ( id BLOB NOT NULL PRIMARY KEY ON CONFLICT REPLACE, diff --git a/protocol/migrations/sqlite/README.md b/protocol/migrations/sqlite/README.md new file mode 100644 index 000000000..4097a299c --- /dev/null +++ b/protocol/migrations/sqlite/README.md @@ -0,0 +1,13 @@ +### How to write migrations? + +We only write `up` migrations, `down` migrations are not always possible in sqlite or +too complex/too expensive. For example to remove a column you would have to duplicate +the table, copy over the data, delete and recreated. +This can be very expensive for some tables (user_messages for example), so should not be attempted. + + +### Notes + +One issue we faced multiple times is that updates to `user_messages` can be very +expensive, leading to slow upgrade times and interrupted migrations. So avoid +writes if not necessary. diff --git a/protocol/pushnotificationclient/migrations/migrations.go b/protocol/pushnotificationclient/migrations/migrations.go index 52825d1ae..ac88c36d9 100644 --- a/protocol/pushnotificationclient/migrations/migrations.go +++ b/protocol/pushnotificationclient/migrations/migrations.go @@ -90,7 +90,7 @@ func _1593601729_initial_schemaDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1593601729_initial_schema.down.sql", size: 144, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1593601729_initial_schema.down.sql", size: 144, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa, 0x95, 0x55, 0x64, 0x38, 0x40, 0x16, 0xbf, 0x8b, 0x1c, 0x18, 0xb4, 0xc5, 0x7f, 0xd0, 0xb8, 0xf0, 0x3c, 0xa2, 0x82, 0xf8, 0x8d, 0x5a, 0xd3, 0xb6, 0x6e, 0xa3, 0xb4, 0xc, 0x9, 0x33, 0x0}} return a, nil } @@ -110,7 +110,7 @@ func _1593601729_initial_schemaUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1593601729_initial_schema.up.sql", size: 1773, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1593601729_initial_schema.up.sql", size: 1773, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x4e, 0x1e, 0x5, 0x35, 0x9, 0xb2, 0x2d, 0x6f, 0x33, 0x63, 0xa2, 0x7a, 0x5b, 0xd2, 0x2d, 0xcb, 0x79, 0x7e, 0x6, 0xb4, 0x9d, 0x35, 0xd8, 0x9b, 0x55, 0xe5, 0xf8, 0x44, 0xca, 0xa6, 0xf3, 0xd3}} return a, nil } @@ -130,7 +130,7 @@ func _1597909626_add_server_typeDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1597909626_add_server_type.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1597909626_add_server_type.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} return a, nil } @@ -150,7 +150,7 @@ func _1597909626_add_server_typeUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1597909626_add_server_type.up.sql", size: 145, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1597909626_add_server_type.up.sql", size: 145, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc8, 0x3f, 0xe0, 0xe7, 0x57, 0x0, 0x5d, 0x60, 0xf3, 0x55, 0x64, 0x71, 0x80, 0x3c, 0xca, 0x8, 0x61, 0xb5, 0x3c, 0xe, 0xa1, 0xe4, 0x61, 0xd1, 0x4e, 0xd8, 0xb2, 0x55, 0xdd, 0x87, 0x62, 0x9b}} return a, nil } @@ -170,7 +170,7 @@ func _1599053776_add_chat_id_and_typeDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1599053776_add_chat_id_and_type.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1599682300, 0)} + info := bindataFileInfo{name: "1599053776_add_chat_id_and_type.down.sql", size: 0, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xe3, 0xb0, 0xc4, 0x42, 0x98, 0xfc, 0x1c, 0x14, 0x9a, 0xfb, 0xf4, 0xc8, 0x99, 0x6f, 0xb9, 0x24, 0x27, 0xae, 0x41, 0xe4, 0x64, 0x9b, 0x93, 0x4c, 0xa4, 0x95, 0x99, 0x1b, 0x78, 0x52, 0xb8, 0x55}} return a, nil } @@ -190,7 +190,7 @@ func _1599053776_add_chat_id_and_typeUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1599053776_add_chat_id_and_type.up.sql", size: 264, mode: os.FileMode(0644), modTime: time.Unix(1599682300, 0)} + info := bindataFileInfo{name: "1599053776_add_chat_id_and_type.up.sql", size: 264, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xea, 0x7a, 0xf9, 0xc4, 0xa2, 0x96, 0x2e, 0xf9, 0x8f, 0x7, 0xf1, 0x1e, 0x73, 0x8a, 0xa6, 0x3a, 0x13, 0x4, 0x73, 0x82, 0x83, 0xb, 0xe3, 0xb5, 0x3b, 0x7e, 0xd, 0x23, 0xce, 0x98, 0xd4, 0xdc}} return a, nil } @@ -210,7 +210,7 @@ func docGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "doc.go", size: 382, mode: os.FileMode(0644), modTime: time.Unix(1603694101, 0)} + info := bindataFileInfo{name: "doc.go", size: 382, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc0, 0x2f, 0x1e, 0x64, 0x9, 0x93, 0xe4, 0x8b, 0xf2, 0x98, 0x5a, 0x45, 0xe2, 0x80, 0x88, 0x67, 0x7a, 0x2d, 0xd7, 0x4b, 0xd1, 0x73, 0xb6, 0x6d, 0x15, 0xc2, 0x0, 0x34, 0xcd, 0xa0, 0xdb, 0x20}} return a, nil } diff --git a/protocol/pushnotificationserver/migrations/migrations.go b/protocol/pushnotificationserver/migrations/migrations.go index d29ea3cb6..e4ea716b7 100644 --- a/protocol/pushnotificationserver/migrations/migrations.go +++ b/protocol/pushnotificationserver/migrations/migrations.go @@ -88,7 +88,7 @@ func _1593601728_initial_schemaDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1593601728_initial_schema.down.sql", size: 200, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1593601728_initial_schema.down.sql", size: 200, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x88, 0x8a, 0x61, 0x81, 0x57, 0x45, 0x9b, 0x97, 0x9b, 0x1f, 0xf6, 0x94, 0x8a, 0x20, 0xb3, 0x2b, 0xff, 0x69, 0x49, 0xf4, 0x58, 0xcc, 0xd0, 0x55, 0xcc, 0x9a, 0x8b, 0xb6, 0x7f, 0x29, 0x53, 0xc1}} return a, nil } @@ -108,7 +108,7 @@ func _1593601728_initial_schemaUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1593601728_initial_schema.up.sql", size: 675, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1593601728_initial_schema.up.sql", size: 675, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfd, 0x61, 0x90, 0x79, 0xd9, 0x14, 0x65, 0xe9, 0x96, 0x53, 0x17, 0x33, 0x54, 0xeb, 0x8b, 0x5d, 0x95, 0x99, 0x10, 0x36, 0x58, 0xdd, 0xb2, 0xbf, 0x45, 0xd9, 0xbb, 0xc4, 0x92, 0xe, 0xce, 0x2}} return a, nil } @@ -128,7 +128,7 @@ func _1598419937_add_push_notifications_tableDownSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1598419937_add_push_notifications_table.down.sql", size: 51, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1598419937_add_push_notifications_table.down.sql", size: 51, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc, 0x98, 0xc8, 0x30, 0x45, 0x5b, 0xc5, 0x7d, 0x13, 0x5d, 0xe7, 0xc8, 0x23, 0x43, 0xf7, 0xdc, 0x9c, 0xe2, 0xdd, 0x63, 0xf0, 0xb7, 0x16, 0x40, 0xc, 0xda, 0xb9, 0x16, 0x70, 0x2b, 0x5a, 0x7e}} return a, nil } @@ -148,7 +148,7 @@ func _1598419937_add_push_notifications_tableUpSql() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "1598419937_add_push_notifications_table.up.sql", size: 104, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "1598419937_add_push_notifications_table.up.sql", size: 104, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2, 0x3e, 0xef, 0xf, 0xc2, 0xdf, 0xbc, 0x99, 0x7a, 0xc2, 0xd3, 0x64, 0x4f, 0x4c, 0x7e, 0xfc, 0x2e, 0x8c, 0xa7, 0x54, 0xd3, 0x4d, 0x25, 0x98, 0x41, 0xbc, 0xea, 0xd7, 0x2, 0xc1, 0xd0, 0x52}} return a, nil } @@ -168,7 +168,7 @@ func docGo() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "doc.go", size: 382, mode: os.FileMode(0644), modTime: time.Unix(1603694101, 0)} + info := bindataFileInfo{name: "doc.go", size: 382, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xc0, 0x2f, 0x1e, 0x64, 0x9, 0x93, 0xe4, 0x8b, 0xf2, 0x98, 0x5a, 0x45, 0xe2, 0x80, 0x88, 0x67, 0x7a, 0x2d, 0xd7, 0x4b, 0xd1, 0x73, 0xb6, 0x6d, 0x15, 0xc2, 0x0, 0x34, 0xcd, 0xa0, 0xdb, 0x20}} return a, nil } diff --git a/protocol/sqlite/ad_hoc_migration.go b/protocol/sqlite/ad_hoc_migration.go new file mode 100644 index 000000000..7d1e435e3 --- /dev/null +++ b/protocol/sqlite/ad_hoc_migration.go @@ -0,0 +1,67 @@ +package sqlite + +import ( + "database/sql" + + _ "github.com/mutecomm/go-sqlcipher" // We require go sqlcipher that overrides default implementation + "github.com/pkg/errors" + "github.com/status-im/migrate/v4" +) + +const communitiesMigrationVersion uint = 1605075346 + +// FixCommunitiesMigration fixes an issue with a released migration +// In some instances if it was interrupted the migration would be skipped +// but marked as completed. +// What we do here is that we check whether we are at that migration, if +// so we check that the communities table is present, if not we re-run that +// migration. +func FixCommunitiesMigration(version uint, dirty bool, m *migrate.Migrate, db *sql.DB) error { + // If the version is not the same, ignore + if version != communitiesMigrationVersion { + return nil + } + + // If it's dirty, it will be replayed anyway + if dirty { + return nil + } + + // Otherwise we check whether it actually succeeded by checking for the + // presence of the communities_communities table + + var name string + + err := db.QueryRow(`SELECT name FROM sqlite_master WHERE type='table' AND name='communities_communities'`).Scan(&name) + + // If the err is nil, it means the migration went through fine + if err == nil { + return nil + } + + // If any other other, we return the error as that's unexpected + if err != sql.ErrNoRows { + return errors.Wrap(err, "failed to find the communities table") + } + + // We replay the migration then + return ReplayLastMigration(version, m) +} + +func ReplayLastMigration(version uint, m *migrate.Migrate) error { + // Force version if dirty so it's not dirty anymore + if err := m.Force(int(version)); err != nil { + return errors.Wrap(err, "failed to force migration") + } + + // Step down 1 and we retry + if err := m.Steps(-1); err != nil { + return errors.Wrap(err, "failed to step down") + } + + return nil +} + +func ApplyAdHocMigrations(version uint, dirty bool, m *migrate.Migrate, db *sql.DB) error { + return FixCommunitiesMigration(version, dirty, m, db) +} diff --git a/protocol/sqlite/db.go b/protocol/sqlite/db.go index 41b2073fb..d42f96d85 100644 --- a/protocol/sqlite/db.go +++ b/protocol/sqlite/db.go @@ -27,6 +27,8 @@ const reducedKdfIterationsNumber = 3200 const InMemoryPath = ":memory:" +var migrationsTable = "status_protocol_go_" + sqlcipher.DefaultMigrationsTable + // MigrationConfig is a struct that allows to define bindata migrations. type MigrationConfig struct { AssetNames []string @@ -36,19 +38,19 @@ type MigrationConfig struct { // Open opens or initializes a new database for a given file path. // MigrationConfig is optional but if provided migrations are applied automatically. func Open(path, key string) (*sql.DB, error) { - return open(path, key, reducedKdfIterationsNumber) + return openAndMigrate(path, key, reducedKdfIterationsNumber) } // OpenInMemory opens an in memory SQLite database. // Number of KDF iterations is reduced to 0. func OpenInMemory() (*sql.DB, error) { - return open(InMemoryPath, "", 0) + return openAndMigrate(InMemoryPath, "", 0) } // OpenWithIter allows to open a new database with a custom number of kdf iterations. // Higher kdf iterations number makes it slower to open the database. func OpenWithIter(path, key string, kdfIter int) (*sql.DB, error) { - return open(path, key, kdfIter) + return openAndMigrate(path, key, kdfIter) } func open(path string, key string, kdfIter int) (*sql.DB, error) { @@ -83,17 +85,25 @@ func open(path string, key string, kdfIter int) (*sql.DB, error) { return nil, err } - if err := Migrate(db); err != nil { - return nil, err - } - return db, nil } -// ApplyMigrations allows to apply bindata migrations on the current *sql.DB. +func openAndMigrate(path string, key string, kdfIter int) (*sql.DB, error) { + db, err := open(path, key, kdfIter) + if err != nil { + return nil, err + } + + if err := Migrate(db); err != nil { + return nil, err + } + return db, nil +} + +// applyMigrations allows to apply bindata migrations on the current *sql.DB. // `assetNames` is a list of assets with migrations and `assetGetter` is responsible // for returning the content of the asset with a given name. -func ApplyMigrations(db *sql.DB, assetNames []string, assetGetter func(name string) ([]byte, error)) error { +func applyMigrations(db *sql.DB, assetNames []string, assetGetter func(name string) ([]byte, error)) error { resources := bindata.Resource( assetNames, assetGetter, @@ -105,7 +115,7 @@ func ApplyMigrations(db *sql.DB, assetNames []string, assetGetter func(name stri } driver, err := sqlcipher.WithInstance(db, &sqlcipher.Config{ - MigrationsTable: "status_protocol_go_" + sqlcipher.DefaultMigrationsTable, + MigrationsTable: migrationsTable, }) if err != nil { return errors.Wrap(err, "failed to create driver") @@ -126,10 +136,15 @@ func ApplyMigrations(db *sql.DB, assetNames []string, assetGetter func(name stri return errors.Wrap(err, "could not get version") } - // Force version if dirty + err = ApplyAdHocMigrations(version, dirty, m, db) + if err != nil { + return errors.Wrap(err, "failed to apply ad-hoc migrations") + } + if dirty { - if err = m.Force(int(version)); err != nil { - return errors.Wrap(err, "failed to force migration") + err = ReplayLastMigration(version, m) + if err != nil { + return errors.Wrap(err, "failed to replay last migration") } } @@ -151,7 +166,7 @@ func Migrate(database *sql.DB) error { if err != nil { return errors.Wrap(err, "failed to prepare status-go/protocol migrations") } - err = ApplyMigrations(database, migrationNames, migrationGetter) + err = applyMigrations(database, migrationNames, migrationGetter) if err != nil { return errors.Wrap(err, "failed to apply status-go/protocol migrations") } diff --git a/protocol/sqlite/db_test.go b/protocol/sqlite/db_test.go index 7eaff8dd9..2b75057c9 100644 --- a/protocol/sqlite/db_test.go +++ b/protocol/sqlite/db_test.go @@ -17,7 +17,7 @@ func TestOpen(t *testing.T) { dbPath := filepath.Join(dir, "db.sql") // Open the db for the first time. - db, err := open(dbPath, "some-key", reducedKdfIterationsNumber) + db, err := openAndMigrate(dbPath, "some-key", reducedKdfIterationsNumber) require.NoError(t, err) // Insert some data. @@ -30,6 +30,104 @@ func TestOpen(t *testing.T) { // Open again with different key should fail // because the file already exists and it should not // be recreated. - _, err = open(dbPath, "different-key", reducedKdfIterationsNumber) + _, err = openAndMigrate(dbPath, "different-key", reducedKdfIterationsNumber) require.Error(t, err) } + +// TestCommunitiesMigrationDirty tests the communities migration when +// dirty flag has been set to true. +// We first make it fail, then clean up so that it can be replayed, and +// then execute again, and we should be all migrated. +func TestCommunitiesMigrationDirty(t *testing.T) { + // Open the db for the first time. + db, err := open(InMemoryPath, "some-key", reducedKdfIterationsNumber) + require.NoError(t, err) + + // Create a communities table, so that migration will fail + _, err = db.Exec(`CREATE TABLE communities_communities (a varchar);`) + require.NoError(t, err) + + // Migrate the database, this should fail + err = Migrate(db) + require.Error(t, err) + + // Version and dirty should be true and set to communities migration + var version uint + var dirty bool + + err = db.QueryRow(`SELECT version, dirty FROM `+migrationsTable).Scan(&version, &dirty) + require.NoError(t, err) + + require.True(t, dirty) + require.Equal(t, communitiesMigrationVersion, version) + + // Drop communities table and re-run migrations + + _, err = db.Exec(`DROP TABLE communities_communities`) + + require.NoError(t, err) + + // Migrate the database, this should work + err = Migrate(db) + require.NoError(t, err) + + // Make sure communities table is present + + var name string + err = db.QueryRow(`SELECT name FROM sqlite_master WHERE type='table' AND name='communities_communities'`).Scan(&name) + + require.NoError(t, err) + require.Equal(t, "communities_communities", name) + +} + +// TestCommunitiesMigrationNotDirty tests the communities migration when +// dirty flag has been set to false, and the communities migration has +// effectively been skipped. +// We first make it fail, then clean up so that it can be replayed, set +// dirty to false and then execute again, and we should be all migrated. +func TestCommunitiesMigrationNotDirty(t *testing.T) { + // Open the db for the first time. + db, err := open(InMemoryPath, "some-key", reducedKdfIterationsNumber) + require.NoError(t, err) + + // Create a communities table, so that migration will fail + _, err = db.Exec(`CREATE TABLE communities_communities (a varchar);`) + require.NoError(t, err) + + // Migrate the database, this should fail + err = Migrate(db) + require.Error(t, err) + + // Set dirty to false + _, err = db.Exec(`UPDATE ` + migrationsTable + ` SET dirty = 0`) + require.NoError(t, err) + + // Version and dirty should be true and set to communities migration + var version uint + var dirty bool + + err = db.QueryRow(`SELECT version, dirty FROM `+migrationsTable).Scan(&version, &dirty) + require.NoError(t, err) + + require.False(t, dirty) + require.Equal(t, communitiesMigrationVersion, version) + + // Drop communities table and re-run migrations + _, err = db.Exec(`DROP TABLE communities_communities`) + + require.NoError(t, err) + + // Migrate the database, this should work + err = Migrate(db) + require.NoError(t, err) + + // Make sure communities table is present + + var name string + err = db.QueryRow(`SELECT name FROM sqlite_master WHERE type='table' AND name='communities_communities'`).Scan(&name) + + require.NoError(t, err) + require.Equal(t, "communities_communities", name) + +} diff --git a/static/bindata.go b/static/bindata.go index ca91e5290..2d5e4974f 100644 --- a/static/bindata.go +++ b/static/bindata.go @@ -97,7 +97,7 @@ func ConfigReadmeMd() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "../config/README.md", size: 3153, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "../config/README.md", size: 3153, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x84, 0xf1, 0x44, 0x5b, 0x33, 0xe5, 0xfa, 0xe6, 0x38, 0x77, 0x19, 0x91, 0x6e, 0xd8, 0x8e, 0x8d, 0xaa, 0x32, 0xb2, 0x8b, 0xf9, 0x4f, 0x3, 0xe, 0xc0, 0xca, 0x5e, 0x5d, 0xec, 0x37, 0x1d, 0xc3}} return a, nil } @@ -117,7 +117,7 @@ func ConfigCliFleetEthProdJson() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "../config/cli/fleet-eth.prod.json", size: 4925, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "../config/cli/fleet-eth.prod.json", size: 4925, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x97, 0x5a, 0x72, 0x64, 0x6b, 0xee, 0xe6, 0x97, 0xda, 0xe8, 0x53, 0x7c, 0x33, 0x25, 0x27, 0x55, 0xa8, 0xe0, 0x9a, 0xc2, 0x16, 0xcf, 0xc0, 0x91, 0x8a, 0xbc, 0x98, 0x5, 0xe5, 0x63, 0x83, 0x77}} return a, nil } @@ -137,7 +137,7 @@ func ConfigCliFleetEthStagingJson() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "../config/cli/fleet-eth.staging.json", size: 2307, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "../config/cli/fleet-eth.staging.json", size: 2307, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xa, 0x55, 0x35, 0x5e, 0xf5, 0x90, 0x37, 0x0, 0xe4, 0x45, 0x8c, 0x19, 0x77, 0x14, 0xa0, 0x94, 0x1c, 0x9b, 0x78, 0xa7, 0x2e, 0x58, 0x45, 0x1b, 0xba, 0xf3, 0xfb, 0x62, 0x87, 0x97, 0xf8, 0x96}} return a, nil } @@ -157,7 +157,7 @@ func ConfigCliFleetEthTestJson() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "../config/cli/fleet-eth.test.json", size: 2315, mode: os.FileMode(0644), modTime: time.Unix(1599559876, 0)} + info := bindataFileInfo{name: "../config/cli/fleet-eth.test.json", size: 2315, mode: os.FileMode(0644), modTime: time.Unix(1609934130, 0)} a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x7, 0x92, 0x14, 0x26, 0xa6, 0x12, 0xb1, 0x0, 0x2d, 0xbe, 0x9a, 0xb7, 0x55, 0xdb, 0xfc, 0x1f, 0x75, 0xe, 0xc2, 0x2b, 0xad, 0xfe, 0x44, 0x78, 0x2e, 0x7f, 0x8, 0x7f, 0xd1, 0x9e, 0x11, 0x2c}} return a, nil }