Demo application for me to test new backend/frontend technologies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
285 B

package migrations
import (
func init() {
func AddAdminFlagToUsers(tx *sql.Tx, up bool) error {
var err error
err = Table("users").
Column("admin", Bool).
Change(tx, up)
if err != nil {
return err
return nil