Rebased onto main.

This commit is contained in:
Victor Lyuboslavsky 2024-09-05 14:29:01 -05:00
parent 42905d3c97
commit a4a2e402f5
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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
}

View file

@ -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