mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
give a bonus reward for the first uploads of a user
This commit is contained in:
23
misc/my-migrations/20251002073716_bonus_upload_boost.php
Normal file
23
misc/my-migrations/20251002073716_bonus_upload_boost.php
Normal 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';
|
||||
");
|
||||
}
|
||||
}
|
||||
@@ -71,6 +71,7 @@ parameters:
|
||||
- AJAX
|
||||
- BITCOIN_DONATION_XYZPUB
|
||||
- BLOCK_TOR
|
||||
- BONUS_UPLOAD_BOOST_ACTIVE
|
||||
- DISABLE_IRC
|
||||
- DISABLE_TRACKER
|
||||
- DEBUG
|
||||
|
||||
Reference in New Issue
Block a user