-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move team identifier from software to host/software API
- Loading branch information
Showing
10 changed files
with
182 additions
and
216 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
server/datastore/mysql/migrations/tables/20241110152838_AddTeamIdentifierToSoftware.go
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...e/mysql/migrations/tables/20241110152839_AddTeamIdentifierToHostSoftwareInstalledPaths.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package tables | ||
|
||
import ( | ||
"database/sql" | ||
"fmt" | ||
) | ||
|
||
func init() { | ||
MigrationClient.AddMigration(Up_20241110152839, Down_20241110152839) | ||
} | ||
|
||
func Up_20241110152839(tx *sql.Tx) error { | ||
if _, err := tx.Exec(` | ||
ALTER TABLE host_software_installed_paths ADD COLUMN team_identifier VARCHAR(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT ''`, | ||
); err != nil { | ||
return fmt.Errorf("failed to add team_identifier to host_software_installed_paths table: %w", err) | ||
} | ||
return nil | ||
} | ||
|
||
func Down_20241110152839(tx *sql.Tx) error { | ||
return nil | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.