Skip to main content

Others operations

They are functions that are not in the constructive, destructive, or informative categories.

If you want to reverse a query in a change function you should use the Reversible method.

s.Reversible(schema.Directions{
Up: func() {
s.Exec("INSERT INTO public.mig_schema_versions (id) VALUES ('1')")
},

Down: func() {
s.Exec("DELETE FROM public.mig_schema_versions WHERE id = '1'")
},
})