aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/migrations (follow)
Commit message (Collapse)AuthorAgeLines
* Rename `check` to `condition`Gravatar Johannes Christ2024-08-30-1/+1
|
* Add alternate accounts to the user modelGravatar jchristgit2024-05-23-0/+55
| | | | | Introduce a way to store alternate accounts on the user, and add the `PATCH /bot/users/<id:str>/alts` endpoint, which allows updating the user's alt accounts to the alt accounts in the request..
* Merge branch 'main' into set-elidable-on-run-python-operations-in-migrationsGravatar wookie1842024-04-02-0/+18
|\
| * Make pure-SQL line in api_user.display_name migration elidableGravatar Joe Banks2024-04-01-1/+1
| | | | | | Co-authored-by: jchristgit <[email protected]>
| * Add display name to API user modelGravatar Joe Banks2024-04-01-0/+18
| |
* | Set elidable on RunPython operations in migrationsGravatar Johannes Christ2024-03-31-10/+11
|/ | | | | | Any RunPython operation that only migrated existing data (that is, did not create data) can be safely elided by Django when we run `squashmigrations`.
* Migrate mailing lists to their own API endpointsGravatar Johannes Christ2023-12-17-0/+77
| | | | | | Add a new model for the bot to store its mailing list state in, as opposed to the current JSON blob in the BotSetting table. Migrate the existing settings from the BotSetting table into the new model.
* Remove the redirect FilterList on migrationGravatar Chris Lovering2023-09-19-0/+16
| | | | | | | | This redirect filter list does not have any filters, nor does it have a bot implementation. It is something that we were working on, but has been stalled for a while. The presence of this filter list also causes the bot to warn on startup due to it finding a filter list with no implementation. This commit removes the FilterList, which can be added back if/when we support this filter type in bot.
* Fix contents and descriptions being too long for their field typeGravatar Boris Muratov2023-04-06-2/+2
|
* Make additional_settings non-null with dict defaultGravatar Boris Muratov2023-04-06-2/+2
| | | | This makes sure that the value in the DB is always a valid JSON, ensuring the unique constraint will work properly.
* Rename additional_field to additional_settingsGravatar mbaruh2023-03-26-4/+4
|
* Documentation improvements and fixesGravatar mbaruh2023-03-25-3/+3
| | | | Co-authored-by: Amrou <[email protected]>
* Make the unique constraint reversibleGravatar mbaruh2023-03-25-0/+1
| | | | Co-authored-by: Amrou <[email protected]>
* Merge branch 'main' into new-filter-schemaGravatar mbaruh2023-03-21-7/+50
|\
| * Merge branch 'main' into mbaruh/timeoutGravatar Boris Muratov2023-03-20-1/+19
| |\
| | * Replace CharField with URLField and set default to NoneGravatar vivekashok12212023-03-10-2/+2
| | |
| | * Add jump_url field to infraction modelGravatar vivekashok12212023-02-17-0/+18
| | |
| * | Migrate infraction type `mute` to `timeout`Gravatar mbaruh2023-03-04-0/+25
| |/
* | Fix documentation and importGravatar mbaruh2023-02-11-4/+4
| | | | | | | | Co-authored-by: wookie184 <[email protected]>
* | Update viewsets, fix lintingGravatar mbaruh2023-01-28-1/+1
| |
* | Make filter unique constraint use NULLS NOT DISTINCTGravatar mbaruh2023-01-28-26/+13
| | | | | | | | | | | | The existing constraint was ineffective as null values were considered distinct, and so two filters with the same content and no overrides were considered different. This change uses a new PSQL 15 feature unsupported in django currently, and so it is added with raw SQL.
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2023-01-27-4/+22
|\|
| * remove useless blank constraintGravatar Amrou Bellalouna2022-11-12-2/+2
| | | | | | | | This updates the migration as well
| * fix grammar in thread_id's help textGravatar Amrou Bellalouna2022-11-07-0/+18
| |
| * delete buggy migrationGravatar Amrou Bellalouna2022-11-07-18/+0
| |
| * add thread_id column to the nomination tableGravatar Amrou Bellalouna2022-11-06-0/+18
| |
* | Rename delete_messages to the more generic remove_contextGravatar mbaruh2022-11-09-10/+10
| |
* | Disable everyone filter in code jam categoriesGravatar mbaruh2022-11-07-0/+1
| | | | | | | | This is in line with what already existed.
* | Add creation and update timestamps to filtering modelsGravatar mbaruh2022-11-05-0/+6
| | | | | | | | This is to support auto-infractions reporting (bot 7fcec400)
* | Stop using None as a valid setting valueGravatar mbaruh2022-11-04-16/+16
| | | | | | | | See e100ae9b on bot
* | Add antispam list in migrationsGravatar mbaruh2022-11-01-0/+52
| |
* | Add uniques filter list to migrationsGravatar mbaruh2022-10-27-0/+101
| |
* | Allow char fields to be blankGravatar mbaruh2022-10-10-6/+6
| | | | | | | | | | | | This is necessary allow filters to define a blank message when the default is not blank. Additionally allows bypass_roles to be empty like the other array fields
* | Add infraction channel settingGravatar mbaruh2022-10-08-0/+6
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-10-07-4/+29
|\|
| * Bump To Django 4.1.1 & Update DependenciesGravatar Hassan Abouelela2022-09-30-2/+1
| | | | | | | | | | | | Update outdated and broken dependencies. Signed-off-by: Hassan Abouelela <[email protected]>
| * Backdate last_applied dates to use value of inserted_atGravatar Chris Lovering2022-07-27-1/+8
| |
| * Add a field to track the time an infraction was last appliedGravatar Chris Lovering2022-07-27-0/+19
| | | | | | | | A default is set for backwards compatibility with bot version that don't explicitly give a value.
* | Bring back enabled categoriesGravatar mbaruh2022-10-01-0/+5
| | | | | | | | There needs to be a way to only enable a filter in a specific category, so this setting now fulfills that role. Disabled channels can be used to disable a filter in a specific channel within the category.
* | Convert the infraction choices to uppercaseGravatar mbaruh2022-09-30-2/+2
| | | | | | | | This is done to match the values used on the bot.
* | Use the new models.JSONFieldGravatar mbaruh2022-09-27-1/+1
| |
* | Add voice mute to infraction choicesGravatar mbaruh2022-09-27-2/+2
| |
* | Merge branch 'main' into new-filter-schemaGravatar mbaruh2022-07-15-7/+147
|\|
| * Remove embed validators from old migrationsGravatar Chris Lovering2022-06-30-5/+3
| | | | | | | | Since the util file has been deleted, these migrations were referencing a missing file
| * Remove embed validators for deleted messagesGravatar Chris Lovering2022-06-30-0/+19
| | | | | | | | These caused more harm than they were worth, as every time Discord updated a behaviour of an embed we would get errors and need ot update the validation. Instead we should just accept whatever discord gives us as correct
| * Add support for BIG SOLIDUS unicode characters for off topic namesGravatar mina2022-04-21-0/+19
| | | | | | | | We must add support for all B I G S O L I D U S. This is necessary.
| * Add support for BumpedThreads to be stored in siteGravatar Chris Lovering2022-03-16-0/+22
| | | | | | | | | | | | Following our move to use Redis as just a cache, this PR allows the site to store a list of threads that need to be bumped. The bot will interact with this within the ThreadBumper cog.
| * Patch AoC tables to use the Discord user as PK.Gravatar D0rs4n2022-03-09-9/+7
| |
| * Add reason field to AoC completionist block tableGravatar D0rs4n2022-03-09-0/+1
| |
| * Enhance comments and table structure in AoC related modulesGravatar D0rs4n2022-03-08-2/+2
| | | | | | | | - Set the user reference to be a OneToOne relation, on tables: AocCompletionistBlock and AocAccountLink.