give a bonus reward for the first uploads of a user

This commit is contained in:
Spine
2025-10-02 04:59:56 +00:00
parent d8058f7b77
commit 2dee8ef9b8
9 changed files with 105 additions and 27 deletions

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class BonusUploadBoost extends AbstractMigration {
public function up(): void {
$this->table('user_ordinal')
->insert([[
'name' => 'bonus-upload-boost',
'description' => 'How many upload boosts has this user earned',
'default_value' => 0,
]])
->save();
}
public function down(): void {
$this->query("
delete from user_ordinal where name = 'bonus-upload-boost';
");
}
}

View File

@@ -71,6 +71,7 @@ parameters:
- AJAX
- BITCOIN_DONATION_XYZPUB
- BLOCK_TOR
- BONUS_UPLOAD_BOOST_ACTIVE
- DISABLE_IRC
- DISABLE_TRACKER
- DEBUG