Andy Allan
cc99d8169f
Remove default values from id columns
...
In both the case of primary keys, and also foreign key references,
there's no need to set a default value.
This doesn't have a big impact in routine situations, but can be
very confusing when debugging corner cases.
2022-02-23 15:22:37 +00:00
Tom Hughes
7eafdca51c
Update to rails 7.0.2.2
2022-02-16 14:26:57 +00:00
Tom Hughes
7d53525219
Index note comments by author and date
...
Fixes #3443
2022-02-01 18:48:18 +00:00
Tom Hughes
cf54b68f84
Restore accidentally deleted lines in database structure
2021-08-06 00:19:39 +01:00
Tom Hughes
81c3ebe03c
Remove xid_to_int4 postgres function
...
Fixes #3288
2021-08-06 00:15:40 +01:00
Tom Hughes
e222329d04
Add support for OAuth2 using doorkeeper
2021-05-18 12:05:32 +01:00
Tom Hughes
a71b8af4d1
Update to rails 6.1.3.2
2021-05-12 18:49:21 +01:00
Tom Hughes
84c601460f
Add rate limiting to user friendships
2021-05-11 12:10:36 +01:00
mmd-osm
4e6d729529
Remove /api/0.6/changes endpoint
...
Also removes sql functions which are only used by this endpoint
2021-02-03 14:06:34 +00:00
Tom Hughes
384ac46102
Convert id column for oauth_nonces to bigint
2020-12-14 14:48:59 +00:00
Tom Hughes
22e56a9f36
Revert accidental changes to database structure
2020-10-08 09:51:04 +01:00
Tom Hughes
06a98ad983
Index changeset comments by changeset and date
2020-10-06 23:10:52 +01:00
Tom Hughes
1946c84f71
Index changeset comments by author and date
2020-10-06 22:42:44 +01:00
mmd-osm
f47aaa58c3
travis: update structure.sql
2019-12-30 12:55:59 +01:00
Tom Hughes
22cd2314e5
Update to rails 6.0.1
2019-11-24 11:05:02 +00:00
Andy Allan
56d9b8a4ce
Remove the users.nearby column
...
Refs #2417 and #2432
2019-11-20 15:07:42 +01:00
Matt Amos
689821c224
Ooops, forgot to commit changes to db/structure.sql
2019-10-21 15:05:16 +01:00
Tom Hughes
3e17c3aab6
Drop postgres 9.6 specific setting from structure.sql
...
Closes #2404
2019-10-20 19:22:47 +01:00
Matt Amos
809b194030
Reverting part of the db/structure.sql change which had been unintentionally committed. (perhaps PG version difference?)
2019-10-04 15:38:42 +01:00
Matt Amos
098e73479b
Remove shared lib PG functions from committed DB structure.
2019-10-04 13:40:27 +01:00
Tom Hughes
8a39c6b4a2
Drop old user image columns
2019-07-17 19:12:30 +01:00
Tom Hughes
cd4ac6ac2d
Revert accidental schema changes
2019-07-15 09:27:52 +01:00
Tom Hughes
550fa0c8e4
It's to_sym not to_symbol
2019-07-15 08:39:20 +01:00
Tom Hughes
ba627420a3
Add support for Active Storage attachments
2019-07-09 19:17:29 +01:00
Tom Hughes
d2d5d48f29
Allow signups to be blocked by MX host
2019-06-23 11:21:03 +01:00
Tom Hughes
1bef353c27
Update database schema
2019-05-19 17:17:25 +01:00
Tom Hughes
8e258d810c
Add some extra indexes for ACL lookups
2019-05-18 12:57:31 +01:00
Tom Hughes
a8aed64eb7
Update database schema
2019-04-24 18:29:54 +01:00
Andy Allan
801522c5c3
Set up Delayed Job as the backend for Active Job
...
This persists jobs into the database, and uses locking to ensure that
workers from multiple machines avoid treading on each other.
Jobs can be run by using `bundle exec rake jobs:work`
Fixes #2015
2018-10-31 15:31:32 +01:00
Tom Hughes
f227804093
Add some extra indexes on issues
2018-06-10 15:25:53 +01:00
Andy Allan
7dbf8d8336
Merge branch 'master' into moderation
2018-04-11 09:54:04 +08:00
Andy Allan
ee1a8637d3
Convert issue status to an enum
2018-03-21 12:05:08 +08:00
Andy Allan
5310c7000c
Remove cascading deletes, add another foreign key, and switch index around.
2018-03-14 16:15:39 +08:00
Andy Allan
3e5a4a14df
Ensure reports have an issue id and a user id
2018-03-14 15:36:46 +08:00
Tom Hughes
f1e9dcc66a
Add an indexed home_tile column to the user table
2018-03-04 09:59:23 +00:00
Andy Allan
80a241f798
Allow reporting of anonymous notes
2018-02-28 14:26:40 +08:00
Andy Allan
63992d83bd
Store the report category.
2017-12-13 16:02:55 +00:00
Andy Allan
0df788d742
Rename 'issue_type' to 'assigned_role', set defaults in the model and test.
2017-12-06 17:15:11 +00:00
Andy Allan
1956ab5913
Use a simple user_id for tables with one owning user
...
This is the standard way of naming in rails, and it avoids having
to tell rails which models are actually required.
2017-11-29 16:23:13 +00:00
Andy Allan
1d24228a3b
Combine migrations into one
...
This makes it easier to review, rather than having a PR with migrations that
correct each other.
2017-11-29 16:13:32 +00:00
Andy Allan
2dd8f09395
Remove the reassign column from issue_comments
...
Reassigning is an effect of a controller action, not something that
should be stored in the database like this.
2017-11-29 16:05:12 +00:00
Andy Allan
33c43ab0af
Ensure that issue comments have associated issues and users.
2017-09-13 15:01:36 +01:00
Andy Allan
a0b665faf7
Add missing structure.sql changes from 948fd8c8fa
2017-09-13 14:58:13 +01:00
Andy Allan
67a95ac7e9
Remove created_at / updated_at column definitions since these duplicate t.timestamps
2017-09-13 14:57:07 +01:00
Andy Allan
dbd88d893f
Merge branch 'master' into moderation
2017-07-12 10:16:11 +01:00
Andy Allan
9046b5ba8d
Revert unrelated changes from db/structure.sql
2017-07-05 15:36:56 +01:00
Tom Hughes
81deb35331
Update to rails 5.0.4
2017-06-27 08:26:44 +01:00
Tom Hughes
15934b9b56
Index oauth_tokens and client_applications by user_id
2017-02-22 13:44:57 +00:00
Tom Hughes
c83f15821d
Update schema
2016-10-19 11:58:08 +01:00
Mikel Maron
3a14abde1b
Update structure.sql
2016-10-11 21:22:00 -04:00