Skip to content

Commit fc2b7b5

Browse files
belldanduDaneEveritt
authored andcommitted
Update 2017_04_20_171943_AddScriptsToServiceOptions.php (pterodactyl#404)
Currently mysql does not support defaults for text and blobs without disabling strict mode in 5.7. https://dev.mysql.com/doc/refman/5.7/en/blob.html Mariadb (a drop in replacement for mysql my by the same team of devs as mysql) also doesnt support defaults text and blobs until 10.2.1 (there is no stable release, 10.2.5 is a release candidate) which isnt available on non-bleeding edge distro's. No one is going to install an unstable release of mariadb on production servers. https://mariadb.com/kb/en/mariadb/text/ Latest release for ubuntu xenial is 10.0.29-MariaDB So for now we change text to string for values that have defaults until defaults are more widely supported for TEXT and BLOB mysql values.
1 parent d76bcf4 commit fc2b7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/migrations/2017_04_20_171943_AddScriptsToServiceOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public function up()
1616
Schema::table('service_options', function (Blueprint $table) {
1717
$table->text('script_install')->after('startup')->nullable();
1818
$table->boolean('script_is_privileged')->default(true)->after('startup');
19-
$table->text('script_entry')->default('ash')->after('startup');
20-
$table->text('script_container')->default('alpine:3.4')->after('startup');
19+
$table->string('script_entry')->default('ash')->after('startup');
20+
$table->string('script_container')->default('alpine:3.4')->after('startup');
2121
});
2222
}
2323

0 commit comments

Comments
 (0)