From fc2b7b5982ee14335639b7335cfb827af1da6c71 Mon Sep 17 00:00:00 2001 From: Belldandu Date: Sun, 23 Apr 2017 16:29:54 -0400 Subject: [PATCH] Update 2017_04_20_171943_AddScriptsToServiceOptions.php (#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. --- .../2017_04_20_171943_AddScriptsToServiceOptions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2017_04_20_171943_AddScriptsToServiceOptions.php b/database/migrations/2017_04_20_171943_AddScriptsToServiceOptions.php index fb6d2da81..610f18e5f 100644 --- a/database/migrations/2017_04_20_171943_AddScriptsToServiceOptions.php +++ b/database/migrations/2017_04_20_171943_AddScriptsToServiceOptions.php @@ -16,8 +16,8 @@ class AddScriptsToServiceOptions extends Migration Schema::table('service_options', function (Blueprint $table) { $table->text('script_install')->after('startup')->nullable(); $table->boolean('script_is_privileged')->default(true)->after('startup'); - $table->text('script_entry')->default('ash')->after('startup'); - $table->text('script_container')->default('alpine:3.4')->after('startup'); + $table->string('script_entry')->default('ash')->after('startup'); + $table->string('script_container')->default('alpine:3.4')->after('startup'); }); }