Ishmeet Singh
a33174acb8
Add NOT NULL constraints to redaction title and description
2024-03-11 09:27:11 +00:00
Tom Hughes
29cc21c599
Drop user tokens table
2024-02-28 21:02:54 +00:00
Tom Hughes
9db635a992
Drop lowercase index on display names
2024-01-17 19:05:25 +00:00
Andy Allan
d5efa4c357
Merge pull request #4405 from tomhughes/normalize-display-name
...
Require user names to be unique after unicode normalisation
2024-01-17 16:24:09 +00:00
Gregory Igelmund
efc61f1315
Add basic structures for UserMute and Message muting logic
...
Including models, migration, controllers, views & locales.
2023-12-19 12:57:47 -05:00
Tom Hughes
c12f8959dd
Require user names to be unique after unicode normalisation
...
As with the previous checks on case sensitivity this only affects
new users, and changes to names of existing users.
2023-12-13 22:27:36 +00:00
Andy Allan
367fa44a74
Migrate some sequences to use bigints
...
These primary keys were converted to bigints in migrations, but the
sequences were left unmentioned. If the original migrations are run on
postgresql 10.0+, then this leads to a mismatch in column types vs sequence
types. This migration fixes these mismatches.
If the original migrations were run on postgresql < 10, all sequences were
bigints anyway, and this migration is a no-op.
If the sequence is a bigint, then postgresql doesn't output that fact in the
statement dump.
Refs #4298
2023-12-06 14:54:12 +00:00
Tom Hughes
0c2e471708
Fix new rubocop warnings
2023-12-05 18:13:13 +00:00
Anton Khorev
a8aaf62e62
Add earliest allowed deletion time to user model
2023-11-22 17:02:48 +03:00
Tom Hughes
f2f0cf1ad9
Switch to using native rails support for managing Postgres enumerations
2023-11-15 18:25:05 +00:00
Tom Hughes
2f11b77309
Add support for per-user limits on the rate changes can be made
2023-11-02 08:59:57 +00:00
Tom Hughes
c6bb4a5f4e
Add importer role that can be associated with higher rate limits
2023-11-02 08:58:12 +00:00
Tom Hughes
0844024c8e
Build new relation member indexes concurrently
2023-10-26 19:58:11 +01:00
Tom Hughes
64952fef8b
Disable transactions for relation member index changes
2023-10-26 19:48:25 +01:00
Tom Hughes
4f542ef900
Remove extraneous fields from primary keys for relation members
2023-10-26 18:08:26 +01:00
Tom Hughes
387ecce798
Add a primary key to the changeset_tags table
2023-10-08 12:33:54 +01:00
Milan Cvetkovic
8a22bfb222
Add unconfigured doorkeeper-openid_connect
...
After executing:
rails generate doorkeeper:openid_connect:install
rails generate doorkeeper:openid_connect:install
Split migration script to 2 to avoid deadlock.
2023-10-03 18:53:09 +01:00
Tom Hughes
a274726f46
Add rate limiting for changeset comments
...
Fixes #4196
2023-08-25 19:53:04 +01:00
Milan Cvetkovic
ad164d384e
Change provider name to "microsoft"
2023-08-20 10:19:30 +01:00
Milan Cvetkovic
ef6803416b
Add migration script
2023-08-20 10:17:42 +01:00
Andy Allan
479c1575e1
Remove tile_for_point SQL functions
...
This removes both the pl/pgsql version and the shared library version
of the `tile_for_point` SQL function. This function was only used in some
old migrations, and is not required for production usage.
Removing this function simplifies the installation and configuration for
new developers.
These SQL functions are separate from the `tile_for_point` ruby/C function
which is part of the quad_tile gem. This function is still used when
creating and updating database records.
Fixes #3110 .
2022-12-07 17:22:50 +00:00
Tom Hughes
12c1d5e6c0
Merge remote-tracking branch 'upstream/pull/3126'
2022-12-03 10:59:14 +00:00
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
fea1b5b88d
Fix new rubocop warnings
2021-12-28 19:47:51 +00:00
Tom Hughes
d3c800fdb4
Fix new rubocop warnings
2021-06-29 18:29:00 +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
Tom Hughes
1ba10fa9ac
Drop monkey patch that is no longer required
2021-05-10 18:52:34 +01:00
Andy Allan
6c5c36deac
Automatically enable the btree_gist extension
...
This simplifies the install instructions. Loading from structure.sql is already handled.
2021-03-10 18:24:36 +00:00
Tom Hughes
eada36ff96
Switch to using the zeitwork autoloader
2020-12-30 20:30:21 +00:00
Tom Hughes
e392556444
Revert "Switch to using the zeitwork autoloader"
...
This reverts commit 127880a73f
.
2020-12-29 19:29:36 +00:00
Tom Hughes
5677877ed1
Fix case for zeitwork
2020-12-29 18:54:12 +00:00
Tom Hughes
384ac46102
Convert id column for oauth_nonces to bigint
2020-12-14 14:48:59 +00: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
Tom Hughes
18b9b9f14c
Fix new rubocop warnings
2020-09-07 07:11:22 +01:00
Tom Hughes
b1e44c1eea
Fix rubocop Style/CombinableLoops warnings
2020-09-02 18:27:11 +01:00
Tom Hughes
57f5b7840e
Fix rubocop warnings
2019-12-04 19:31:53 +00:00
Tom Hughes
e6667b7ff5
Fix rubocop warnings
2019-11-27 11:47:16 +00:00
Andy Allan
56d9b8a4ce
Remove the users.nearby column
...
Refs #2417 and #2432
2019-11-20 15:07:42 +01:00
Tom Hughes
8a39c6b4a2
Drop old user image columns
2019-07-17 19:12:30 +01:00
Tom Hughes
826b70fdc5
Replace migrations that rely on models with rake tasks
...
Replace some migrations that rely on relationships between
models to add subscriptions with rake tasks.
2019-07-17 18:55:15 +01:00
Tom Hughes
227c402ad1
Don't try and add fingerprints for user images
...
It won't actually work, and anybody migrating up to the current
schema is never going to use the fingerprints anyway.
2019-07-17 18:49:09 +01:00
Andy Allan
d130db9fa8
Avoid more models in old migrations
...
Although these migrations run fine today, they could break in the future
if changes are made to the current model code.
2019-07-17 12:16:20 +02:00
Andy Allan
6ebb21b660
Avoid using live models in old migrations
...
Instead, we define models in the migrations themselves. This ensures that
column names etc match the state of the database during the migration,
not the current live version of the model.
2019-07-17 11:52:02 +02: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