package tables

import (
	"database/sql"

	"github.com/pkg/errors"
)

func init() {
	MigrationClient.AddMigration(Up_20210723135713, Down_20210723135713)
}

func Up_20210723135713(tx *sql.Tx) error {
	if _, err := tx.Exec(`ALTER TABLE app_configs ADD COLUMN vulnerability_databases_path TEXT`); err != nil {
		return errors.Wrap(err, "add column vulnerability_databases_path")
	}
	return nil
}

func Down_20210723135713(tx *sql.Tx) error {
	return nil
}
