mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Rebased onto main.
This commit is contained in:
parent
42905d3c97
commit
a4a2e402f5
2 changed files with 4 additions and 4 deletions
|
|
@ -9,10 +9,10 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
MigrationClient.AddMigration(Up_20240903155740, Down_20240903155740)
|
||||
MigrationClient.AddMigration(Up_20240905120000, Down_20240905120000)
|
||||
}
|
||||
|
||||
func Up_20240903155740(tx *sql.Tx) error {
|
||||
func Up_20240905120000(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_20240903155740(_ *sql.Tx) error {
|
||||
func Down_20240905120000(_ *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ package tables
|
|||
|
||||
import "testing"
|
||||
|
||||
func TestUp_20240903155740(t *testing.T) {
|
||||
func TestUp_20240905120000(t *testing.T) {
|
||||
db := applyUpToPrev(t)
|
||||
|
||||
// TODO: Create test
|
||||
Loading…
Reference in a new issue