Skip to content

Commit e404918

Browse files
committed
Dont limit length of variable values, closes pterodactyl#1264
1 parent 5bd3f59 commit e404918

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Fixed
88
* Scheduled tasks triggered manually no longer improperly change the `next_run_at` time and do not run twice in a row anymore.
99

10+
### Changed
11+
* Egg and server variable values are no longer limited to 191 characters. Turns out some games require a large number of characters in these fields.
12+
1013
## v0.7.9 (Derelict Dermodactylus)
1114
### Fixed
1215
* Fixes a two-factor authentication bypass present in the password reset process for an account.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class AllowEggVariablesToHaveLongerValues extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('egg_variables', function (Blueprint $table) {
17+
$table->text('default_value')->change();
18+
});
19+
}
20+
21+
/**
22+
* Reverse the migrations.
23+
*
24+
* @return void
25+
*/
26+
public function down()
27+
{
28+
Schema::table('egg_variables', function (Blueprint $table) {
29+
$table->string('default_value')->change();
30+
});
31+
}
32+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
use Illuminate\Support\Facades\Schema;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Database\Migrations\Migration;
6+
7+
class AllowServerVariablesToHaveLongerValues extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('server_variables', function (Blueprint $table) {
17+
$table->text('variable_value')->change();
18+
});
19+
}
20+
21+
/**
22+
* Reverse the migrations.
23+
*
24+
* @return void
25+
*/
26+
public function down()
27+
{
28+
Schema::table('server_variables', function (Blueprint $table) {
29+
$table->string('variable_value')->change();
30+
});
31+
}
32+
}

0 commit comments

Comments
 (0)