fix tests issues
Tests / PHPUnit (push) Failing after 1m16s

This commit is contained in:
root
2026-07-13 00:24:00 -04:00
parent 439a695727
commit a56aca4342
17 changed files with 349 additions and 40 deletions
@@ -10,13 +10,18 @@ class AddStyleToPreferences extends Migration
{
if ($this->db->tableExists('user_preferences')) {
if (! $this->db->fieldExists('style_color', 'user_preferences')) {
$styleColor = [
'type' => 'VARCHAR',
'constraint' => 32,
'null' => true,
];
if ($this->db->fieldExists('timezone', 'user_preferences')) {
$styleColor['after'] = 'timezone';
}
$this->forge->addColumn('user_preferences', [
'style_color' => [
'type' => 'VARCHAR',
'constraint' => 32,
'null' => true,
'after' => 'timezone',
],
'style_color' => $styleColor,
]);
}
if (! $this->db->fieldExists('menu_color', 'user_preferences')) {