Commit Graph
42 Commits
Author SHA1 Message Date
James Smith e42f34c56e move activity backfill to after permission-related DB changes
resolves #2643
2024-09-10 09:39:54 +01:00
James Smith d6a64a89e2 don't overwrite public IDs 2024-09-05 19:35:42 +01:00
James Smith 0a504548fd speed up public ID migration 2024-09-05 19:34:46 +01:00
James Smith c639fe0ff4 fix data migration public IDs 2024-09-05 12:30:14 +01:00
James Smith cbe410a438 add public_id fields to relevant models and generate IDs 2024-09-05 12:30:12 +01:00
James Smith 3fdf0dd73f rename assign_default_permissions 2024-09-02 10:11:33 +01:00
James Smith cd244970d7 safe-traversal for role renames 2024-08-30 17:13:53 +01:00
James Smith c4eae3c070 rename viewer role to member 2024-08-30 17:13:53 +01:00
James Smith 02213b615c rename "editor" role to "moderator" for clarity 2024-08-30 17:13:52 +01:00
James Smith d6e360c6ed add default permissions for all existing objects 2024-08-30 14:47:06 +01:00
James Smith 4607c42f43 Reorder data migration to avoid error 2024-08-06 16:09:30 +01:00
James Smith b3c0028966 make backfill task get correct models 2024-08-05 14:23:24 +01:00
James Smith 77bb4e3093 backfill last 20 creation activities on migration 2024-08-05 11:19:14 +01:00
James Smith 9073cb6227 create actors for more followable classes 2024-08-02 11:28:58 +01:00
James Smith 33d7b08932 add data migration to create federails actors for existing users 2024-07-31 13:55:58 +01:00
James Smith 90632d020f move all user default settings into SiteSettings constants, not migrations 2024-07-16 17:25:36 +01:00
James Smith 61544d3457 disable attachment refresh during bulk migration 2024-06-26 16:01:41 +01:00
James Smith a841bc75af set Shrine metadata for all files 2024-06-25 14:13:28 +01:00
James Smith da31c49371 don't validate on save when migrating admin user first use token 2024-04-09 15:04:19 +01:00
James Smith 5b337e247b set reset password token to a known value for first use
for both new admin users, and old ones.
2024-03-22 15:04:15 +00:00
James Smith 4df72fe21f swallow invalid SQL error if admin flag is already gone somehow 2024-03-21 14:54:07 +00:00
James Smith 7c70619713 convert existing admin boolean flag to role 2024-03-21 14:39:16 +00:00
James Smith ead58a36cd make Problem data migration fail safe 2024-02-05 11:12:15 +00:00
James Smith ac6c1a3301 lint: use find_each instead of all.each in ActiveRecord models 2023-10-10 19:54:04 +01:00
James Smith 4526c403d0 handle missing printed field in data migration
This will happen if db:setup is used rather than a piece-by-piece migration
2023-08-05 22:08:01 +01:00
James Smith f913e220a4 use a data migration to move printed flag into a favorite 2023-08-05 22:06:47 +01:00
James Smith e509fe49cb Create admin user on app start, not in data migration 2023-07-06 10:31:45 +01:00
James Smith ecbb208b5a explicitly check both names and slugs for duplication in data migration
increase timestamp on migration to allow recovery of previously-broken nightly installs (i.e. mine)
2023-06-29 09:02:26 +01:00
James Smith b6cd38f52a make creator and collection names and slugs unique
resolves #1301
2023-06-28 21:45:23 +01:00
James Smith 01a8f4db22 create slugs for all existing models, creators, and collections 2023-06-18 09:47:19 +01:00
James Smith 64836030ce add data migration to generate slugs 2023-06-17 23:27:33 +01:00
James Smith 5e0470fdbd DRY up path separator trimming into a string extension 2023-06-13 22:01:29 +01:00
James Smith 570245df76 trim existing model paths and destroy duplicates 2023-06-13 16:11:08 +01:00
James Smith 21c5b6b5bb Remove extraneous destination_exists problems 2023-06-12 09:05:39 +01:00
James Smith 1ffdb76227 lint: move constant outside loop 2023-05-10 17:16:34 +01:00
Don EiseleandJames Smith 2d3ae49ff0 Update db/data/20230308006000_move_collection_tag_into_object.rb
Co-authored-by: James Smith <james@floppy.org.uk>
2023-03-16 08:08:18 -05:00
Don Eisele 814b15383c In progress: Moving collections from tag to first-class object 2023-03-08 14:54:40 -06:00
Don Eisele a425123743 if scale_factor doesn't exist on objects, don't break when removing it 2023-02-23 00:45:50 -06:00
James Smith 91bd8a0d9e add data migration for scale factor
moving into note
2023-02-21 18:08:33 +00:00
James Smith dc416ff600 add data migration to add new renderer settings 2022-12-14 23:13:10 +00:00
James Smith a3c32e1930 lint: don't use find_by_x 2022-12-12 16:38:50 +00:00
James Smith 921934adf2 create default admin user 2022-06-14 22:47:37 +01:00