Plume/migrations/postgres
Ana Gelez 309e1200d0 Make a distinction between moderators and admins (#619)
* Make a distinction between moderators and admins

And rework the user list in the moderation interface, to be able to run the same action on many users,
and to have a huge list of actions whithout loosing space.

* Make user's role an enum + make it impossible for a moderator to escalate privileges

With the help of diesel-derive-enum (maybe it could be used in other places too?)

Also, moderators are still able to grant or revoke moderation rights to other people, but maybe only admins should be able to do it?

* Cargo fmt

* copy/pasting is bad

* Remove diesel-derive-enum and use an integer instead

It was not compatible with both Postgres and SQlite, because for one it generated a schema
with the "User_role" type, but for the other it was "Text"…

* Reset translations

* Use an enum to avoid magic numbers + fix the tests

* Reset translations

* Fix down.sql
2019-09-13 12:28:36 +02:00
..
00000000000000_diesel_initial_setup add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-22-093322_create_instances add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-22-151330_create_user add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-23-101717_create_blogs add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-23-111655_create_blog_authors add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-23-132822_create_posts add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-23-142746_create_post_authors add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-04-30-170445_timestamps add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-01-124607_create_follow add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-01-165325_add_ap_url add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-02-113930_drop_instance_local_domain add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-03-163427_user_add_keys add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-03-182555_blogs_add_keys add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-09-192013_create_comments add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-10-101553_posts_add_ap_url add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-10-154336_create_likes add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-12-213456_likes_add_ap_url add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-13-122311_create_notifications add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-13-175144_users_add_shared_inbox add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-19-091428_create_reshares add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-05-24-100613_add_notifications_creation_date add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-06-17-200302_notification_add_data add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-06-20-175532_create_mentions add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-06-20-194538_add_mentions_ap_url add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-07-25-165754_refactor_notifications add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-07-27-102221_user_add_followers_endpoint add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-07-27-125558_instance_customization add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-07-27-194816_instance_description_html add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-02-111458_create_medias add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-02-123623_medias_owner_id add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-03-102510_users_add_avatar add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-03-170848_user_add_last_fetched_date add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-04-103017_follows_add_ap_url add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-04-104828_posts_add_subtitle add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-05-174106_create_tags add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-06-182637_posts_add_source add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-09-07-212003_fix_avatar_deletion add sqlite migrations 2018-09-30 14:13:52 +02:00
2018-10-06-161151_change_default_license Change default license to CC-BY-SA 2018-10-06 18:19:45 +01:00
2018-10-19-165407_create_apps Add a model for external apps 2018-10-30 18:13:49 +01:00
2018-10-20-164036_fix_hastag_typo Add support for hashtag on user interface 2018-10-20 19:27:49 +02:00
2018-10-21-163227_create_api_token Add an ApiToken model, and an endpoint to get one 2018-10-30 18:13:49 +01:00
2018-10-30-151529_add_post_cover Add a cover field to posts 2018-10-31 15:07:40 +01:00
2018-12-08-175515_constraints Add some constraint at database level (#342) 2018-12-09 18:44:26 +01:00
2018-12-17-180104_mention_no_ap_url Remove ap_url from mention (#362) 2018-12-18 15:03:47 +01:00
2018-12-17-221135_comment_visibility Comment visibility (#364) 2018-12-24 11:23:04 +01:00
2018-12-25-164502_media-cover-deletion Allow for media cover deletion (#387) 2019-01-05 22:11:54 +01:00
2019-03-05-082814_add_fqn Add a fqn field to blogs and users (#457) 2019-03-06 18:28:10 +01:00
2019-03-06-115158_blog_images Edit blogs, and add blog icons and banners (#460) 2019-03-22 19:51:36 +01:00
2019-03-16-143637_summary-md Add markdown support for summary (#482) 2019-03-17 20:11:29 +01:00
2019-04-28-201506_create_tantivy_index import migrations and don't require diesel_cli for admins (#555) 2019-04-29 16:30:20 +02:00
2019-05-30-173029_create_password_reset_requests_table Store password reset requests in database (#610) 2019-06-04 19:55:17 +01:00
2019-06-18-152700_moderator_role Make a distinction between moderators and admins (#619) 2019-09-13 12:28:36 +02:00
2019-06-19-141114_themes Theming (#624) 2019-08-21 00:42:04 +02:00