fleet/server/datastore/mysql/migrations/tables
Juan Fernandez 87717df1da
Bug 7441: Upgrading to 4.19.0 might fail due to migration (#7446)
* Make Change software vendor width mig. more robust

If there are two or more entries in the software table with the same name, version, source, release and arch but different vendors then the migration used for increasing the vendor width will fail.
2022-08-30 11:20:48 -04:00
..
20161118193812_CreateTableAppConfigs.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118211713_CreateTableDistributedQueryCampaignTargets.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212436_CreateTableDistributedQueryCampaigns.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212515_CreateTableDistributedQueryExecutions.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212528_CreateTableHosts.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212538_CreateTableInvites.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212549_CreateTableLabelQueryExecutions.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212557_CreateTableLabels.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
20161118212604_CreateTableOptions.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212613_CreateTableScheduledQueries.go Add global policies (#1750) 2021-08-24 17:24:52 -03:00
20161118212621_CreateTablePackTargets.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212630_CreateTablePacks.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212641_CreateTablePasswordResetRequests.go Remove default timestamp to fix strict error (#1720) 2018-05-04 11:10:17 -06:00
20161118212649_CreateTableUsers.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212656_CreateTableSessions.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161118212758_CreateTableQueries.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161128234849_CreateTableNetworkInterfaces.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20161230162221_AddUniqueIndexToPackTargets.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20170104113816_AddSeenTimeToHosts.go Separate tables from data migrations (#745) 2017-01-05 09:27:56 -08:00
20170105151732_AddNameIndexToQueryTable.go Import Config - /config/import #366 (#764) 2017-01-13 12:35:25 -06:00
20170108191242_CreateDecoratorTable.go Import Config - /config/import #366 (#764) 2017-01-13 12:35:25 -06:00
20170109094020_CreateFIMTables.go Import Config - /config/import #366 (#764) 2017-01-13 12:35:25 -06:00
20170109130438_CreateYARATables.go Import Config - /config/import #366 (#764) 2017-01-13 12:35:25 -06:00
20170110202752_DropSMTPEnabledFromAppConfigs.go SMTP API changes (#883) 2017-01-10 21:41:58 -07:00
20170111133013_AddUniqueIndexToQueries.go Enforce uniqueness on query name (#915) 2017-01-16 15:20:15 -07:00
20170117025759_IncreaseQueryLength.go Changed query columns to TEXT type (#969) 2017-01-17 03:20:11 +08:00
20170118191001_AddEnrollSecretToAppConfig.go move osquery enroll secret to appconfig (#1004) 2017-01-20 14:48:54 -05:00
20170119234632_IncreaseQueryDescriptionLength.go increase query description length (#1055) 2017-01-20 08:56:41 -05:00
20170124230432_CreateTableEmailChanges.go Allow user to change email with confirmation (#1102) 2017-01-27 21:35:58 +08:00
20170127014618_CreateTableLicense.go Licensing (#1123) 2017-02-03 04:30:59 +08:00
20170131232841_CreatePublicKeyTable.go Licensing (#1123) 2017-02-03 04:30:59 +08:00
20170223094154_AddTimestampsToNetworkInterfaces.go Fix flapping host network interfaces (#1283) 2017-02-24 14:37:47 -08:00
20170306075207_UseUTF8MB.go Update MySQL definitions for Unicode support 🔥 (#1360) 2017-03-08 09:29:25 -08:00
20170309100733_AddBuiltInColToDecorators.go Decorator support (#1430) 2017-03-28 16:45:18 -05:00
20170331111922_AddIntervalsToHosts.go Retrieve and store host checkin intervals (#1473) 2017-04-06 11:55:24 -07:00
20170502143928_AddIDPColsToAppConfig.go SSO Login and Configuration Support (#1506) 2017-05-17 10:58:40 -05:00
20170504130602_AddSSOColToInvites.go SSO Login and Configuration Support (#1506) 2017-05-17 10:58:40 -05:00
20170509132100_AddSSOFlagToUser.go SSO Login and Configuration Support (#1506) 2017-05-17 10:58:40 -05:00
20170519105647_AddNameToDecorators.go Continue to update names in backend code and docs (#976) 2021-06-06 16:58:23 -07:00
20170519105648_AddFIMMonitoringIntervalToConfig.go Added FIM support (#1548) 2017-08-18 10:37:33 -05:00
20170831234300_DropLicenses.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
20170831234301_DropPublicKeys.go removing license code (#1551) 2017-09-01 10:42:46 -06:00
20170831234303_AddColumnFimFileAccessToConfig.go Add FileAccesses to FIM Configuration (#1717) 2018-02-26 12:54:13 -08:00
20171116163618_CreateTableOsqueryOptions.go Replace uses of ansi quotes (") in SQL statements (#4726) 2022-04-11 11:47:50 -07:00
20171219164727_UpdateScheduledQueryKey.go Fix error when migrating packs and scheduled query has been deleted. (#1851) 2018-06-26 09:54:45 -07:00
20180620164811_PackAndQueryDeletion.go Fix deletion of queries referenced by foreign key (#1842) 2018-06-20 17:32:43 -07:00
20180620175054_ScheduledQueryNameKeys.go Fix bugs with packs created in UI (#1843) 2018-06-21 17:06:44 -07:00
20180620175055_UpdateScheduledQueryNameConstraint.go Fix bug preventing rename of queries scheduled in packs (#1921) 2018-09-12 11:25:35 -07:00
20191010101639_AddHostExpiryToAppConfig.go.go Add automatic host expiration capability (#2117) 2019-10-16 16:35:17 -07:00
20191010155147_UpdateTableHostsSearchIndex.go Allow host search by UUID (#2116) 2019-10-16 10:12:35 -07:00
20191220130734_AddLiveQueryDisabledToAppConfig.go Add ability to disable live queries (#2167) 2020-01-13 16:53:04 -08:00
20200311140000_AddHostMacAndIp.go Store only primary IP and MAC for hosts 2020-07-21 14:05:46 -07:00
20200405120000_UpdateLabelStorage.go Refactor label membership storage 2020-07-21 14:05:46 -07:00
20200407120000_AddLabelMembershipType.go Implement manual labels 2020-07-21 14:05:46 -07:00
20200420120000_CleanupCampaigns.go Move live query operations from MySQL to Redis 2020-07-21 14:05:46 -07:00
20200504120000_AddAdditionalToHosts.go Add host enrollment cooldown period (#112) 2020-12-10 11:04:58 -08:00
20200512120000_CreateTableEnrollSecrets.go Fix empty enroll secret before setup. (#182) 2021-01-07 14:12:51 -08:00
20200707120000_DropUnusedTables.go Clean up unused DB tables, migrations, and code (#2258) 2020-07-08 13:02:18 -07:00
20201011162341_CleanupSoftDeletedColumns.go Fix race condition in updates test (#4661) 2022-03-18 09:30:45 -07:00
20201021104586_CreateCarveTables.go Add file carving support (#15) 2020-11-04 20:45:16 -08:00
20201102112520_ModifyEnrollSecretNodeKeyCollation.go Format and clean code (#774) 2021-05-17 10:29:50 -07:00
20201208121729_AddLastEnrollmentTimeToHosts.go Add host enrollment cooldown period (#112) 2020-12-10 11:04:58 -08:00
20201215091637_ModifyCarveMetadataForS3.go Add AWS S3 as file carving backend (#126) 2020-12-16 09:16:55 -08:00
20210119174155_AddDenylistToScheduledQueries.go Add support for denylist parameter in scheduled queries (#209) 2021-01-25 16:26:14 -08:00
20210326182902_AddEnableSSOIdPLogin.go Add support for IdP-initiated SSO login (#556) 2021-03-30 12:56:20 -07:00
20210421112652_AddSoftwareInventory.go Improved handling for long values in software inventory (#682) 2021-04-26 14:01:05 -07:00
20210506095025_AddScheduledQueryStats.go Fix foreign key cascade for query stats table (#776) 2021-05-17 10:26:01 -07:00
20210513115729_RefetchHostDetail.go Add refetch host API (#767) 2021-05-13 13:09:22 -07:00
20210526113559_MoveHostAdditionalToSeparateTable.go Split host additional into separate table (#875) 2021-05-26 16:24:12 -07:00
20210601000001_CreateTeamsTables.go Fix migration for MariaDB compatibility (#1280) 2021-07-01 15:59:31 -07:00
20210601000002_AddRolesToInvites.go Reorder migrations for pre-4.0 upgrades (#1114) 2021-06-16 11:58:00 -07:00
20210601000003_MigrateAdmin.go Reorder migrations for pre-4.0 upgrades (#1114) 2021-06-16 11:58:00 -07:00
20210601000004_DeleteUsers.go Reorder migrations for pre-4.0 upgrades (#1114) 2021-06-16 11:58:00 -07:00
20210601000005_TeamsAgentOptions.go Reorder migrations for pre-4.0 upgrades (#1114) 2021-06-16 11:58:00 -07:00
20210601000006_TeamsGlobalAgentOptions.go Add v4 suffix in go.mod (#1224) 2021-06-25 21:46:51 -07:00
20210601000007_TeamsObserverQueries.go Reorder migrations for pre-4.0 upgrades (#1114) 2021-06-16 11:58:00 -07:00
20210601000008_TeamsEnrollSecrets.go Fix migration that isn't compatible with some mysql8 settings (#1992) 2021-09-13 10:20:31 -07:00
20210606151329_MigrateNames.go Continue to update names in backend code and docs (#976) 2021-06-06 16:58:23 -07:00
20210616163757_AddApiOnlyToUser.go Add backend and fleetctl support for API-only user (#1119) 2021-06-16 18:11:28 -07:00
20210617174723_PackTargetForeignKey.go Allow Packs to be targeted to Teams (#1130) 2021-06-18 09:43:16 -07:00
20210622160235_AddAnalyticsToAppConfig.go Backend and fleetctl for usage analytics (#1167) 2021-06-22 18:02:20 -07:00
20210623100031_RemoveUsername.go Remove username from UI (#1168) 2021-06-24 13:42:29 -07:00
20210623133615_ConsistentColumnNames.go Make naming of host columns consistent (#1183) 2021-06-23 17:32:19 -07:00
20210708143152_AddHostUsers.go Add host users (#1334) 2021-07-13 17:15:38 -03:00
20210709124443_CreateActivitiesTable.go Issue 1324 add activity feed (#1343) 2021-07-13 16:54:22 -03:00
20210712155608_CreateLocksTable.go Issue 1278 select leader (#1367) 2021-07-19 15:08:41 -03:00
20210714102108_AddPackTypeColumn.go Issue 1231 add global schedule (#1383) 2021-07-16 10:15:15 -03:00
20210719153709_AddStatisticsTable.go Issue 1321 usage statistics (#1415) 2021-07-20 18:39:50 -03:00
20210721171531_AddCPETable.go Issue 1435 software to cpe (#1488) 2021-07-29 13:10:34 -03:00
20210723135713_AddVulnerabilityDatabasesPath.go Issue 1435 software to cpe (#1488) 2021-07-29 13:10:34 -03:00
20210802135933_AddCVETable.go Process stored CPEs and store found CVEs (#1533) 2021-08-04 18:01:39 -03:00
20210806112844_NotNullTargetID.go Disallow target ids null altogether (#1578) 2021-08-06 13:20:45 -03:00
20210810095603_AddEnableHostUsers.go Issue 1588 allow disabling host users (#1611) 2021-08-11 14:56:11 -03:00
20210811150223_AddEnableSoftwareInventory.go Issue 1632 software inventory config (#1636) 2021-08-11 15:57:53 -03:00
20210818151827_RemoveForeignKeysSchedQStats.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
20210818151828_AddJSONKeyValueTable.go deprecate host_settings in favor of features (#7358) 2022-08-25 13:41:50 -03:00
20210818182258_AddDiskSpaceColumns.go Issue 1601 disk space (#1735) 2021-08-20 14:57:37 -03:00
20210819131107_AddCascadeToHostSoftware.go Make migrations compatible with GTID replication (#2615) 2021-10-21 07:46:02 -03:00
20210819143446_AddPolicies.go Add global policies (#1750) 2021-08-24 17:24:52 -03:00
20210903132338_HostUsersNewPrimary.go Remove id column from host_users to allow for bulk insert (#1931) 2021-09-07 11:02:35 -03:00
20210915144307_AddPoliciesTeamColumn.go Add team policies (#2103) 2021-09-20 11:00:57 -03:00
20210920155130_DropForeignKeysLabelMembership.go Remove fk label membership (#2157) 2021-09-21 11:48:20 -03:00
20210927143115_AddPolicyUpdatedAtColumn.go Optimize policy_updated_at migration (#2362) 2021-10-05 09:24:03 -07:00
20210927143116_AddBundleIdentifierColumn.go fix schema dump (#5562) 2022-05-10 09:03:04 -06:00
20211013133706_AddResolutionColumnToPolicies.go Issue 2456 policies yaml (#2512) 2021-10-15 07:34:11 -03:00
20211013133707_AddAggregatedStats.go Issue 1892 query perf everywhere (#2580) 2021-10-20 18:35:38 -03:00
20211102135149_AddHostSeenTimesTable.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
20211109121546_AddShellToUsers.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
20211110163320_DropAppConfigsTable.go Remove deprecated app_configs table (#2884) 2021-11-15 09:34:51 -05:00
20211116184029_AddPolicyMembershipHistoryIndex.go Add new index to policy_memership_history (#2973) 2021-11-17 11:42:24 -03:00
20211116184030_PolicyWithProprietaryQuery.go Replace uses of ansi quotes (") in SQL statements (#4726) 2022-04-11 11:47:50 -07:00
20211202092042_RemovePolicyHistory.go Fix policy membership migration for MariaDB (#3418) 2021-12-21 14:39:46 -03:00
20211202181033_DropEventHostExpiry.go Issue 3184 drop event host expiry (#3185) 2021-12-03 12:34:58 -03:00
20211207161856_AddIndexForSoftware.go Add index software (#3241) 2021-12-07 16:36:13 -03:00
20211216131203_AddMDMMunkTables.go Add mdm and munki (#3406) 2021-12-21 09:37:58 -03:00
20211221110132_AddHostEmailsTable.go Add support for google chrome profiles (#3423) 2021-12-21 15:36:19 -05:00
20220107155700_RemoveHostIDFK.go Remove cleanups and fk for host ids (#3607) 2022-01-12 14:07:51 -03:00
20220125105650_UpdateAggregatedStats.go Add hosts_count field to "list software" endpoint (#3873) 2022-01-26 09:47:56 -05:00
20220201084510_AddSoftwareCpeIndex.go Trigger webhooks for recently published vulnerabilities (#3941) 2022-02-02 16:34:37 -05:00
20220208144830_AddSoftwareHostCountsTable.go Use a dedicated table to store hosts_count and fix pagination with vulns (#4104) 2022-02-09 10:16:50 -05:00
20220208144831_AddSoftwareReleaseArchVendorColumns.go Add CentOS parsing+post-processing to reduce false positives in vulnerability processing (#4037) 2022-02-14 15:13:44 -03:00
20220208144831_AddSoftwareReleaseArchVendorColumns_test.go Add CentOS parsing+post-processing to reduce false positives in vulnerability processing (#4037) 2022-02-14 15:13:44 -03:00
20220215152203_AddMunkiDeletedAt.go Allow removal of munki versions (#4189) 2022-02-15 16:29:14 -03:00
20220215152203_AddMunkiDeletedAt_test.go Allow removal of munki versions (#4189) 2022-02-15 16:29:14 -03:00
20220223113157_UpdateSoftwareHostCountsTable.go Support listing software hosts count filtered by team (#4388) 2022-02-28 13:55:14 -05:00
20220223113157_UpdateSoftwareHostCountsTable_test.go Support listing software hosts count filtered by team (#4388) 2022-02-28 13:55:14 -05:00
20220307104655_AddHostDeviceAuth.go Add new endpoints to retrieve device information by orbit identifier (#4531) 2022-03-09 16:13:56 -05:00
20220309133956_AddTeamConfig.go Add team failing policies webhook (#4633) 2022-03-21 13:16:47 -06:00
20220309133956_AddTeamConfig_test.go Add team failing policies webhook (#4633) 2022-03-21 13:16:47 -06:00
20220316155700_AddPublicIPHosts.go Add public ip to hosts & derive geolocation when rendering host (#4652) 2022-03-21 12:29:52 -04:00
20220323152301_CleanupHostRelatedTables.go Add migration to cleanup host-related tables (#4778) 2022-03-23 15:22:10 -07:00
20220323152301_CleanupHostRelatedTables_test.go Add migration to cleanup host-related tables (#4778) 2022-03-23 15:22:10 -07:00
20220330100659_AddJobsTable.go Merge jira-integration branch to main (#4949) 2022-04-05 12:56:15 -04:00
20220330100659_AddJobsTable_test.go Merge jira-integration branch to main (#4949) 2022-04-05 12:56:15 -04:00
20220404091216_UpdateAppConfigLogEndpoint.go Introduce API version 2022-04, deprecate use of /global in paths (#4731) 2022-04-05 11:35:53 -04:00
20220404091216_UpdateAppConfigLogEndpoint_test.go Introduce API version 2022-04, deprecate use of /global in paths (#4731) 2022-04-05 11:35:53 -04:00
20220419140750_AddHostSoftwareLastOpenedAt.go Collect last_opened_at for macOS software, and return it in host details payload (#5376) 2022-04-26 14:16:59 -04:00
20220419140750_AddHostSoftwareLastOpenedAt_test.go Collect last_opened_at for macOS software, and return it in host details payload (#5376) 2022-04-26 14:16:59 -04:00
20220428140039_CleanupEmptyHostEmails.go filter out Google Chrome profiles without an associated email before ingesting (#5440) 2022-05-02 09:55:40 -03:00
20220428140039_CleanupEmptyHostEmails_test.go filter out Google Chrome profiles without an associated email before ingesting (#5440) 2022-05-02 09:55:40 -03:00
20220503134048_AddCVEScoresTable.go Include CVE scores when listing software (#5673) 2022-05-20 10:58:40 -06:00
20220503134048_AddCVEScoresTable_test.go Include CVE scores when listing software (#5673) 2022-05-20 10:58:40 -06:00
20220524102918_CleanupOrphanedPolicyMemberships.go ensure previous host membership policies are deleted on enrollment (#5890) 2022-05-30 10:30:15 -03:00
20220524102918_CleanupOrphanedPolicyMemberships_test.go ensure previous host membership policies are deleted on enrollment (#5890) 2022-05-30 10:30:15 -03:00
20220526123327_RenameCVEScoresToCVEMeta.go Sync CVE scores periodically (#5838) 2022-06-01 10:06:57 -06:00
20220526123327_RenameCVEScoresToCVEMeta_test.go Sync CVE scores periodically (#5838) 2022-06-01 10:06:57 -06:00
20220526123328_AddIdxOnHostsPlatform.go Rearrange migrations (#6140) 2022-06-08 16:03:23 -03:00
20220526123329_AddSourceToSoftwareCveTable.go Rearrange migrations (#6140) 2022-06-08 16:03:23 -03:00
20220608113128_AddTransparencyURLToAppConfig.go Add new fleet_desktop property to config object (#6151) 2022-06-10 10:39:02 -05:00
20220608113128_AddTransparencyURLToAppConfig_test.go Add new fleet_desktop property to config object (#6151) 2022-06-10 10:39:02 -05:00
20220627104817_AddHostBatteriesTable.go increase the length of host_batteries.health (#6560) 2022-07-08 21:06:50 +00:00
20220627104817_AddHostBatteriesTable_test.go Add battery info in host details response (#6394) 2022-06-28 14:11:49 -04:00
20220704101843_AddSoftwareIDInSoftwareCVE.go Feature 6487: Deprecate cpe_id from software_cve table (#6562) 2022-08-04 09:24:44 -04:00
20220704101843_AddSoftwareIDInSoftwareCVE_test.go Feature 6454: Add software_id column to software_cve table (#6489) 2022-07-07 10:22:10 -04:00
20220708095046_AddUniqconstraintSoftwareIDOnSoftwareCVE.go Feature 6487: Deprecate cpe_id from software_cve table (#6562) 2022-08-04 09:24:44 -04:00
20220708095046_AddUniqconstraintSoftwareIDOnSoftwareCVE_test.go Feature 6487: Deprecate cpe_id from software_cve table (#6562) 2022-08-04 09:24:44 -04:00
20220711104651_RemoveCpeIDColumnFromSoftwareCve.go Feature 6538: Remove cpe_id from the software_cve table (#6587) 2022-08-24 13:10:58 -04:00
20220713091130_AddOperatingSystemsTable.go Add new database tables and queries for host operating systems (#6920) 2022-08-09 13:34:41 -05:00
20220713091130_AddOperatingSystemsTable_test.go Add new database tables and queries for host operating systems (#6920) 2022-08-09 13:34:41 -05:00
20220802135510_AddMobileDeviceManagementTable.go Update /macadmins endpoints to include MDM name and aggregate count (#7137) 2022-08-10 15:15:01 -04:00
20220802135510_AddMobileDeviceManagementTable_test.go Update /macadmins endpoints to include MDM name and aggregate count (#7137) 2022-08-10 15:15:01 -04:00
20220809091020_AddWindowsUpdatesTable.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00
20220809091020_AddWindowsUpdatesTable_test.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00
20220818101352_ChangeSoftwareVendorWidth.go Bug 7441: Upgrading to 4.19.0 might fail due to migration (#7446) 2022-08-30 11:20:48 -04:00
20220818101352_ChangeSoftwareVendorWidth_test.go Bug 7441: Upgrading to 4.19.0 might fail due to migration (#7446) 2022-08-30 11:20:48 -04:00
20220822161445_CreateMunkiIssuesTable.go Provide Munki issues for MacOS hosts (#7280) 2022-08-29 14:40:16 -04:00
20220822161445_CreateMunkiIssuesTable_test.go Provide Munki issues for MacOS hosts (#7280) 2022-08-29 14:40:16 -04:00
deprecated_types.go Clean up unused DB tables, migrations, and code (#2258) 2020-07-08 13:02:18 -07:00
log.go Feature 6487: Deprecate cpe_id from software_cve table (#6562) 2022-08-04 09:24:44 -04:00
migration.go Add new fleet_desktop property to config object (#6151) 2022-06-10 10:39:02 -05:00
migration_test.go Collect last_opened_at for macOS software, and return it in host details payload (#5376) 2022-04-26 14:16:59 -04:00