Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
)

func init() {
MigrationClient.AddMigration(Up_20251112191443, Down_20251112191443)
MigrationClient.AddMigration(Up_20251117020100, Down_20251117020100)
}

func Up_20251112191443(tx *sql.Tx) error {
func Up_20251117020100(tx *sql.Tx) error {
_, err := tx.Exec(`ALTER TABLE vpp_apps_teams DROP FOREIGN KEY fk_vpp_apps_teams_vpp_token_id`)
if err != nil {
return fmt.Errorf("failed to drop fk from vpp_apps_table: %w", err)
Expand Down Expand Up @@ -76,6 +76,6 @@ func Up_20251112191443(tx *sql.Tx) error {
return nil
}

func Down_20251112191443(tx *sql.Tx) error {
func Down_20251117020100(tx *sql.Tx) error {
return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
)

func TestUp_20251112191443(t *testing.T) {
func TestUp_20251117020100(t *testing.T) {
db := applyUpToPrev(t)

// Apply current migration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
)

func init() {
MigrationClient.AddMigration(Up_20251114102941, Down_20251114102941)
MigrationClient.AddMigration(Up_20251117020200, Down_20251117020200)
}

func Up_20251114102941(tx *sql.Tx) error {
func Up_20251117020200(tx *sql.Tx) error {
var raw json.RawMessage
var id uint
row := tx.QueryRow(`SELECT id, json_value FROM app_config_json LIMIT 1;`)
Expand Down Expand Up @@ -49,6 +49,6 @@ func Up_20251114102941(tx *sql.Tx) error {
return nil
}

func Down_20251114102941(tx *sql.Tx) error {
func Down_20251117020200(tx *sql.Tx) error {
return nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/require"
)

func TestUp_20251114102941(t *testing.T) {
func TestUp_20251117020200(t *testing.T) {
db := applyUpToPrev(t)

// Apply current migration.
Expand Down
Loading
Loading