Skip to content

Commit

Permalink
Rebased onto main.
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor committed Sep 5, 2024
1 parent 1f4ad17 commit a7054d0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit a7054d0

Please sign in to comment.