mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Rebase onto main
This commit is contained in:
parent
7d47cd95d8
commit
6f3dc3e599
3 changed files with 19 additions and 11 deletions
|
|
@ -9,10 +9,10 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
MigrationClient.AddMigration(Up_20240905120000, Down_20240905120000)
|
||||
MigrationClient.AddMigration(Up_20240905200000, Down_20240905200000)
|
||||
}
|
||||
|
||||
func Up_20240905120000(tx *sql.Tx) error {
|
||||
func Up_20240905200000(tx *sql.Tx) error {
|
||||
if _, err := tx.Exec(`
|
||||
ALTER TABLE software_installers
|
||||
ADD COLUMN package_ids TEXT COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
|
|
@ -136,6 +136,6 @@ func getOrInsertScript(txx sqlx.Tx, script string) (int64, error) {
|
|||
return scriptID, nil
|
||||
}
|
||||
|
||||
func Down_20240905120000(_ *sql.Tx) error {
|
||||
func Down_20240905200000(_ *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ package tables
|
|||
|
||||
import "testing"
|
||||
|
||||
func TestUp_20240905120000(t *testing.T) {
|
||||
func TestUp_20240905200000(t *testing.T) {
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
// TODO: Create test
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue