Add migration fixes
This commit is contained in:
@@ -33,6 +33,10 @@ func DbMainpage(pool *pgxpool.Pool) gin.H {
|
||||
log.Println(err.Error())
|
||||
}
|
||||
|
||||
persons = append(persons, models.Person{
|
||||
Id: -1,
|
||||
Name: "-- Auswählen --",
|
||||
})
|
||||
var person models.Person
|
||||
for wperson.Next() {
|
||||
err = wperson.Scan(&person.Id, &person.Name)
|
||||
|
@@ -0,0 +1,3 @@
|
||||
--
|
||||
-- DROP/Reverse everything here
|
||||
--
|
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE public.washlist DROP COLUMN washed;
|
||||
ALTER TABLE public.washlist
|
||||
ADD COLUMN washed integer;
|
@@ -0,0 +1,3 @@
|
||||
--
|
||||
-- DROP/Reverse everything here
|
||||
--
|
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE public.washlist
|
||||
ALTER COLUMN washed SET DEFAULT -1;
|
Reference in New Issue
Block a user