Erik Johnston
|
cd0864121b
|
Make postgres database error slightly more helpful
|
2015-04-29 12:12:25 +01:00 |
|
Erik Johnston
|
4932a7e2d9
|
Use __all__ instead of assert to stop pyflakes from warning about unused import in __init__
|
2015-04-29 12:12:25 +01:00 |
|
Erik Johnston
|
a08bf11138
|
Appease PEP8
|
2015-04-29 11:44:48 +01:00 |
|
Erik Johnston
|
204132a998
|
Check that postgres database has correct charset set
|
2015-04-29 11:42:28 +01:00 |
|
Erik Johnston
|
327ca883ec
|
Merge branch 'develop' of github.com:matrix-org/synapse into postgres
|
2015-04-28 13:39:42 +01:00 |
|
Erik Johnston
|
18f8247701
|
Use TEXT instead of VARCHAR(n), since PostgreSQL treats them the same except for a limit
|
2015-04-28 12:41:33 +01:00 |
|
Mark Haines
|
9182f87664
|
Merge pull request #126 from matrix-org/csauth
Client / Server Auth Refactor
|
2015-04-28 11:00:27 +01:00 |
|
Erik Johnston
|
8558e1ec73
|
Make get_max_token into inlineCallbacks so that the lock works.
|
2015-04-27 15:19:44 +01:00 |
|
Erik Johnston
|
6f8e2d517e
|
Merge branch 'develop' of github.com:matrix-org/synapse into postgres
|
2015-04-27 14:41:40 +01:00 |
|
Erik Johnston
|
2732be83d9
|
Shuffle operations so that locking upsert happens last in the txn. This ensures the lock is held for the least amount of time possible.
|
2015-04-27 13:22:30 +01:00 |
|
Erik Johnston
|
e4c4664d73
|
Handle the fact that postgres databases can be restarted from under us
|
2015-04-27 12:40:49 +01:00 |
|
David Baker
|
8a5be236e0
|
pep8
|
2015-04-27 11:49:18 +01:00 |
|
David Baker
|
b02e1006b9
|
Run database check before daemonizing, at the cost of database hygiene.
|
2015-04-27 11:46:00 +01:00 |
|
David Baker
|
f8152f2708
|
rename db method to be more informative
|
2015-04-27 10:16:26 +01:00 |
|
David Baker
|
2f475bd5d5
|
pep8
|
2015-04-24 18:15:07 +01:00 |
|
David Baker
|
a7b51f4539
|
Check users in our table aren't on a different domain to the one we're configured with to try & fix SYN-266
|
2015-04-24 18:11:21 +01:00 |
|
Mark Haines
|
4e2f8b8722
|
Copyright notices
|
2015-04-24 10:35:29 +01:00 |
|
David Baker
|
91c8f828e1
|
pep8
|
2015-04-17 19:56:04 +01:00 |
|
David Baker
|
8db6832db8
|
Password reset, finally.
|
2015-04-17 19:53:47 +01:00 |
|
David Baker
|
117f35ac4a
|
Add endpoint to get threepids from server
|
2015-04-17 17:20:18 +01:00 |
|
David Baker
|
4eea5cf6c2
|
pep8
|
2015-04-17 16:46:45 +01:00 |
|
David Baker
|
f96ab9d18d
|
make add3pid servlet work
|
2015-04-17 16:44:49 +01:00 |
|
Erik Johnston
|
e3417bbbe0
|
Revert needless change to storage.profile
|
2015-04-17 16:13:14 +01:00 |
|
David Baker
|
cb03fafdf1
|
Merge branch 'develop' into csauth
|
2015-04-17 13:51:10 +01:00 |
|
Erik Johnston
|
0ec346d942
|
Add unique index to room_aliases, remove duplicates on upgrade. Convert some columns back to TEXT from bytea
|
2015-04-17 11:10:20 +01:00 |
|
Erik Johnston
|
e1c0970c11
|
PEP8
|
2015-04-16 11:18:45 +01:00 |
|
Erik Johnston
|
b8092fbc82
|
Go back to storing JSON in TEXT
|
2015-04-16 11:17:52 +01:00 |
|
Erik Johnston
|
bc9e69e160
|
Move encoding and decoding of JSON into storage layer
|
2015-04-16 11:01:09 +01:00 |
|
Erik Johnston
|
ffad75bd62
|
Remove mysql/maria support
|
2015-04-15 17:00:50 +01:00 |
|
Erik Johnston
|
cf04cedf21
|
Change full_schemas/11 to work with postgres
|
2015-04-15 16:53:47 +01:00 |
|
Erik Johnston
|
5b31afcbd1
|
Remove debug logging
|
2015-04-15 16:27:04 +01:00 |
|
Erik Johnston
|
6e91f14d09
|
Add missing yield
|
2015-04-15 16:25:07 +01:00 |
|
Erik Johnston
|
ed26e4012b
|
pushers table requires a unique id.
|
2015-04-15 16:24:14 +01:00 |
|
Erik Johnston
|
a5c72780e6
|
Don't pass in removed flag
|
2015-04-15 15:13:22 +01:00 |
|
Erik Johnston
|
4af32a2817
|
Postgres does not allow you to continue using a cursor after a DB exception has been raised, so move _simple_insert or_ignore flag out of transaction
|
2015-04-15 14:51:21 +01:00 |
|
Erik Johnston
|
25d2914fba
|
Turn off persistance of sent_transactions.response_json
|
2015-04-15 14:09:35 +01:00 |
|
Erik Johnston
|
cce5d057d3
|
Add index on events (topological_ordering, stream_ordering) to help with ORDER BY clauses
|
2015-04-15 11:43:25 +01:00 |
|
Erik Johnston
|
a971fa9d58
|
Use try..finally in contextlib.contextmanager
|
2015-04-15 10:25:43 +01:00 |
|
Erik Johnston
|
ded4128965
|
Use True for True rather than 1
|
2015-04-15 10:24:24 +01:00 |
|
Erik Johnston
|
f9e12f79ca
|
Add missing yield in storage func
|
2015-04-15 10:24:07 +01:00 |
|
Erik Johnston
|
c756dfeb14
|
Correctly identify deadlocks
|
2015-04-15 10:23:42 +01:00 |
|
Erik Johnston
|
127fad17dd
|
Add postgres database engine
|
2015-04-14 14:50:29 +01:00 |
|
Erik Johnston
|
5a95cd4442
|
Rename user_ips.user -> user_id
|
2015-04-14 13:54:09 +01:00 |
|
Erik Johnston
|
58d8339966
|
Add support for postgres instead of mysql. Change sql accourdingly. blob + varbinary -> bytea. No support for UNSIGNED or CREATE INDEX IF NOT EXISTS.
|
2015-04-14 13:53:20 +01:00 |
|
Erik Johnston
|
3c741682e5
|
Correctly increment the _next_id initially
|
2015-04-14 09:54:44 +01:00 |
|
Erik Johnston
|
86fc9b617c
|
For backwards compat, make state_groups.id have a type of int, not varchar
|
2015-04-13 17:03:49 +01:00 |
|
Erik Johnston
|
93937b2b31
|
Remove duplicate rows
|
2015-04-10 18:47:03 +01:00 |
|
Erik Johnston
|
c5365dee56
|
Use case sensitive collations
|
2015-04-10 18:46:33 +01:00 |
|
Erik Johnston
|
4103b1c470
|
DROP indexes before recreating them
|
2015-04-10 18:46:09 +01:00 |
|
Erik Johnston
|
4d5b098626
|
Use LONGBLOB and TEXT for arbitary length rows
|
2015-04-10 18:45:09 +01:00 |
|