Commit Graph

646 Commits

Author SHA1 Message Date
HDVinnie
2f4b57753a update: 2024_07_28_231553_update_cat_type_res_table.php
- These need to be nullable for external tracker atm. It’s still covered at an application level to not be null but just need it for announce temp.
2024-08-04 21:39:11 -04:00
HDVinnie
004a719375 Merge pull request #4011 from Roardom/fix-some-user-group-permissions
(Fix) Some user group permissions
2024-08-04 19:46:03 -04:00
HDVinnie
6af484a257 Merge pull request #4014 from HDInnovations/Trump-System
(Add) Request #4006
2024-08-04 19:44:33 -04:00
HDVinnie
5c6e36c84a fix: migration
- smallIncrements is needed
2024-07-28 21:34:23 -04:00
HDVinnie
31174b5a51 PHP Style Change (Laravel Pint CI) 2024-07-29 01:28:03 +00:00
HDVinnie
849cdebec0 update: 2024_07_28_231553_update_cat_type_res_table.php 2024-07-28 21:27:03 -04:00
HDVinnie
b7f63ac6ff update: migration
- drop old foreign key
2024-07-28 21:21:31 -04:00
HDVinnie
7469a11ea1 add: #4006
- closes #4006
2024-07-28 21:18:09 -04:00
HDVinnie
e812d8fc34 refactor: table primary keys
- Change primary keys of category_id, resolution_id, type_id to unsigned smallint
- Checking if any torrents/requests exist with non-existent categories/resolutions/types
if so, create a new category/type/resolution called "Other"
- Update the related id to the Other relation
- Adds constraints with on delete restrict for these relations to the torrents and requests tables
2024-07-28 20:49:30 -04:00
Roardom
2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
HDVinnie
b0ed0263fb Merge pull request #4009 from Obi-Wana/add-poll-expiry-date 2024-07-24 13:28:10 -04:00
Jay
2ef73fa0ef Remove down() migration 2024-07-24 17:18:32 +00:00
Jay Sizzla
6894cca148 Allow polls to expire after a certain date 2024-07-24 16:23:06 +02:00
Roardom
e9fe52ac6d update: use composite primary key for history 2024-07-23 06:24:57 +00:00
HDVinnie
c83590ed88 Merge pull request #3993 from Roardom/topic-priorities
(Update) Sort pinned topics by priority
2024-07-20 18:14:31 -04:00
Roardom
c8ef6af383 fix: migration to change peers ip to varbinary
fixup of 8c11521. It was unintentionally changed from varbinary to binary. The ip column must not be fixed length, since mysql will right pad the other 12 bytes of 4-byte ipv4 addresses with NUL (`\0`) bytes, which breaks `INET6_NTOA()`. The full 16 bytes are needed for ipv6 addresses however. Note that the commit this fixes isn't yet in stable, so anyone running the development branch in prod will have to update their schema manually.
2024-07-20 18:35:24 +00:00
Roardom
340122755c update: sort pinned topics by priority
resolves #3989
2024-07-19 16:56:54 +00:00
Roardom
10fc1b2368 update: use composite primary key for peers
The same as was done in #2446 and reverted in ace8dcb but this time using workarounds for Eloquent when it tries to use the non-existing `id` column.
2024-07-16 09:45:03 +00:00
Jay
2ac770746a (Add) Active and inactive uploader staff view (#3824)
Co-authored-by: HDVinnie <hdinnovations@protonmail.com>
2024-07-03 11:38:11 -04:00
HDVinnie
132f945468 update: mysql-schema.sql
- new dump
2024-06-25 15:49:54 -04:00
Roardom
14cb175a4e update: save prewarned timestamp
Allows users to more easily see when they were prewarned in case they no longer have their notification.

It was decided to discard previous prewarn values and have the system prewarn users again if applicable.

It was decided that keeping the history of prewarn values wasn't valuable for this migration.
2024-06-23 23:52:22 +00:00
HDVinnie
9182121ce7 Merge pull request #3937 from HDInnovations/PHPStan-Errors
(Fix) PHPStan Errors
2024-06-23 13:25:06 -04:00
HDVinnie
1a934c2912 fix: phpstan errors 2024-06-21 11:39:48 -04:00
Roardom
8c11521491 fix: laravel 11 migration syntax
In laravel 11, they changed the syntax for changing columns so that all constraints are removed and reapplied, compared to only adding constraints that weren't added before. I generated the sql code of each migration on laravel 10, and the same on laravel 11, and compared the sql code between the two versions and changed the migrations so that the sql matched between the two versions.
2024-06-21 09:26:28 +00:00
HDVinnie
eddad86406 fix: phpstan errors
- this commit tackles more phpstan errors from the baseline.
- the 2024_06_19_210338_update_colum_types.php migration will have more added to it. This PR is draft until more baaseline errors are closed.
2024-06-19 21:19:02 -04:00
HDVinnie
24ab927d36 remove: dead model + factory
- left over from 326adb5c08
2024-06-17 11:57:43 -04:00
HDVinnie
bad416e133 PHP Style Change (Laravel Pint CI) 2024-06-14 00:59:23 +00:00
HDVinnie
2378a9f977 add: soft deletes to torrents
- this adds laravel's soft deletes functionality to torrents.
2024-06-13 20:58:19 -04:00
Roardom
2a4d822a7c remove: unused bot columns 2024-06-09 05:32:05 +00:00
HDVinnie
157b0133dd Merge pull request #3914 from Roardom/application-form-refactor 2024-06-07 20:56:35 -04:00
Roardom
0cb58d4211 refactor: use form request for storing application 2024-06-08 00:48:32 +00:00
Roardom
cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom
02adfdc8b5 add: user setting to disable torrent search autofocus 2024-06-04 12:08:37 +00:00
Roardom
d66f84dc4a update: allow saving default torrent sort column
After 10+ hours of debugging and searching through livewire issues, it turns out that the query string doesn't update if you have `history: true` in the `#[Url()]` attribute.
2024-06-01 11:37:15 +00:00
Roardom
b027fb1e69 fix: various wishlist issues
- Add stricter validation
- Fix `tv_id` field
- Add index to `tv_id` column
- Cast input to integer
2024-05-27 08:47:47 +00:00
HDVinnie
60b20974a3 Merge pull request #3872 from Roardom/normalize-user-settings
(Update) Normalize user settings
2024-05-26 15:24:38 -04:00
HDVinnie
18e4e5133d Merge pull request #3871 from Roardom/remove-peer-hidden-stat-hidden
(Remove) Unused columns on users table
2024-05-26 15:18:03 -04:00
HDVinnie
e8883c132a PHP Style Change (Laravel Pint CI) 2024-05-26 19:17:19 +00:00
HDVinnie
1f702a2d37 Merge pull request #3863 from Roardom/title-subscribe
(Refactor) Wishlist and add movie/tv subscriptions
2024-05-26 15:13:22 -04:00
Roardom
d00475778b update: normalize user settings
Use a 1-1 relation. Cache it indefinitely to reduce queries for every http request. This will make it much easier to add additional user settings for various site features without sacrificing clean code or performance.
2024-05-26 10:42:00 +00:00
Roardom
683ba9077a remove: unused columns on users table 2024-05-26 04:40:57 +00:00
Roardom
0df196f077 refactor: wishlist and add movie/tv subscriptions
closes #3826
2024-05-24 11:38:06 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
0d6618e87c fix: use query builder instead of eloquent 2024-05-19 03:45:34 +00:00
HDVinnie
08abf6d8ca add: request #3692
- closes #3692
2024-05-07 20:21:27 -04:00
Roardom
d32ae88e86 remove: casino/trivia/bet bots
These bots don't currently do anything. Exception: the casino bot accepts donations through a nerdbot command but doesn't currently do anything else with it. If any trivia/casino/bet features need to be brought back, it would be easy enough to view the old code through the git history, but there's probably a bunch that can be improved with its interface as well.
2024-04-30 07:41:27 +00:00
HDVinnie
b3b04f63ec update: mysql-schema.sql 2024-04-23 17:10:12 -04:00
HDVinnie
1420eb454c remove: deprecated methods and dbal 2024-04-23 16:35:06 -04:00
HDVinnie
b9e0094458 chore: pint 2024-03-25 22:42:08 -04:00
Jay Sizzla
160bb26c8b Add perks to the groups requirements view 2024-03-21 16:27:41 +01:00