forked-synapse/synapse/storage/schema/delta
Erik Johnston c5a296b10c Add support for persisting event format versions
Currently we only have the one event format version defined, but this
adds the necessary infrastructure to persist and fetch the format
versions alongside the events.

We specify the format version rather than the room version as:

1. We don't necessarily know the room version, existing events may be
   either v1 or v2.
2. We'd need to be careful to prevent/handle correctly if different
   events in the same room reported to be of different versions, which
   sounds annoying.
2019-01-23 11:30:01 +00:00
..
12 copyrights 2016-01-07 04:26:29 +00:00
13 copyrights 2016-01-07 04:26:29 +00:00
14 Use simplejson throughout 2018-03-29 22:45:52 +01:00
15 copyrights 2016-01-07 04:26:29 +00:00
16 Use TEXT instead of VARCHAR(n), since PostgreSQL treats them the same except for a limit 2015-04-28 12:41:33 +01:00
17 copyrights 2016-01-07 04:26:29 +00:00
18 copyrights 2016-01-07 04:26:29 +00:00
19 copyrights 2016-01-07 04:26:29 +00:00
20 Don't require config to create database 2016-04-06 14:15:45 +01:00
21 copyrights 2016-01-07 04:26:29 +00:00
22 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
23 Remove the last vestiges of refresh_tokens 2017-10-31 20:35:58 +00:00
24 copyrights 2016-01-07 04:26:29 +00:00
25 run isort 2018-07-09 16:09:20 +10:00
26 copyrights 2016-01-07 04:26:29 +00:00
27 run isort 2018-07-09 16:09:20 +10:00
28 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
29 Add comments to existing schema deltas that used "CREATE INDEX" directly 2016-09-12 11:00:26 +01:00
30 run isort 2018-07-09 16:09:20 +10:00
31 run isort 2018-07-09 16:09:20 +10:00
32 Remove topics table 2016-05-13 14:40:38 +01:00
33 run isort 2018-07-09 16:09:20 +10:00
34 Drop sent_transactions 2018-12-01 23:07:35 -06:00
35 Drop some unused indices 2016-10-17 11:08:19 +01:00
36 Latest delta is now 37 2016-10-19 11:40:35 +01:00
37 run isort 2018-07-09 16:09:20 +10:00
38 move search reindex to schema 47 2018-02-13 16:44:46 +00:00
39 Merge pull request #1676 from matrix-org/erikj/room_list 2016-12-12 17:00:10 +00:00
40 Add unique indexes to a couple of tables 2018-11-02 10:36:13 +00:00
41 Add an index to event_search 2017-05-11 12:05:22 +01:00
42 run isort 2018-07-09 16:09:20 +10:00
43 s/popualte/populate/ 2017-11-04 19:35:33 +00:00
44 Fix error on sqlite 3.7 2017-11-21 11:14:17 +00:00
45 Fix schema delta versions 2017-10-11 13:23:15 +01:00
46 Merge branch 'develop' into matthew/search-all-local-users 2017-11-30 01:51:38 +00:00
47 Comments 2018-02-16 11:35:01 +00:00
48 Merge pull request #3213 from matrix-org/rav/consent_handler 2018-05-16 07:19:18 +01:00
49 Send users a server notice about consent 2018-05-22 11:54:51 +01:00
50 api into monthly_active_users table 2018-07-31 16:36:24 +01:00
51 Don't reuse backup versions 2018-10-05 15:08:36 +01:00
52 Merge remote-tracking branch 'origin/develop' into dbkr/e2e_backup_versions_are_numbers 2018-11-09 18:35:02 +00:00
53 Add support for persisting event format versions 2019-01-23 11:30:01 +00:00