From 01e3736b1f7d0dd3008b2bb86e21ba28d6892bcc Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Mon, 16 Sep 2024 17:47:00 -0400 Subject: [PATCH] fix: update migration test with columns added recently (#22137) > No issue, fixes broken test # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Added/updated tests --- .../tables/20240909145426_AddFleetLibraryAppsTable_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/datastore/mysql/migrations/tables/20240909145426_AddFleetLibraryAppsTable_test.go b/server/datastore/mysql/migrations/tables/20240909145426_AddFleetLibraryAppsTable_test.go index 66a80a4ddf..8dc3ed51c4 100644 --- a/server/datastore/mysql/migrations/tables/20240909145426_AddFleetLibraryAppsTable_test.go +++ b/server/datastore/mysql/migrations/tables/20240909145426_AddFleetLibraryAppsTable_test.go @@ -13,9 +13,9 @@ func TestUp_20240909145426(t *testing.T) { execNoErr(t, db, `INSERT INTO script_contents (id, md5_checksum, contents) VALUES (1, 'checksum', 'script content')`) swiID := execNoErrLastID(t, db, ` INSERT INTO software_installers - (filename, version, platform, install_script_content_id, storage_id) + (filename, version, platform, install_script_content_id, storage_id, package_ids, uninstall_script_content_id) VALUES - (?,?,?,?,?)`, "sw1-installer.pkg", "1.2", "darwin", 1, "storage-id1") + (?,?,?,?,?,?,?)`, "sw1-installer.pkg", "1.2", "darwin", 1, "storage-id1", "", 1) // Apply current migration. applyNext(t, db)