Rebase onto main

This commit is contained in:
Victor Lyuboslavsky 2024-09-06 09:55:34 -05:00
parent 7d47cd95d8
commit 6f3dc3e599
No known key found for this signature in database
3 changed files with 19 additions and 11 deletions

View file

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

View file

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