From 7f94a5fc402cefb09475de03566284dde488f7be Mon Sep 17 00:00:00 2001 From: Roy de Jong Date: Sat, 13 Jan 2024 21:44:19 +0100 Subject: [PATCH] fix: default column values for profile stats table --- ...9_fix_default_values_for_profile_stats.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 migrations/20240113204209_fix_default_values_for_profile_stats.php diff --git a/migrations/20240113204209_fix_default_values_for_profile_stats.php b/migrations/20240113204209_fix_default_values_for_profile_stats.php new file mode 100644 index 0000000..9f6b302 --- /dev/null +++ b/migrations/20240113204209_fix_default_values_for_profile_stats.php @@ -0,0 +1,22 @@ +table('profile_stats') + ->changeColumn('hosts', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->changeColumn('joins', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->changeColumn('plays', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->changeColumn('good_cuts', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->changeColumn('bad_cuts', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->changeColumn('miss_count', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->changeColumn('total_score', 'integer', ['signed' => false, 'null' => false, 'length' => MysqlAdapter::INT_BIG, 'default' => 0]) + ->changeColumn('max_combo', 'integer', ['signed' => false, 'null' => false, 'default' => 0]) + ->update(); + } +}