Compare commits

..
3 Commits
Author SHA1 Message Date
Dustin Pianalto faf64a8bf9 Add message to end of list with count
CI / build (push) Has been cancelled
2021-02-22 22:03:06 -09:00
Dustin Pianalto 2abe574977 Update database schema to not allow null previous_content
CI / build (push) Has been cancelled
2021-02-22 21:56:18 -09:00
Dustin Pianalto 04c32955c7 Update database schema to not allow null previous_content
CI / build (push) Has been cancelled
2021-02-22 21:29:41 -09:00
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -9,6 +9,7 @@ import (
"github.com/dustinpianalto/disgoman"
"github.com/dustinpianalto/geeksbot"
"github.com/dustinpianalto/geeksbot/internal/discord_utils"
"github.com/dustinpianalto/geeksbot/internal/utils"
"github.com/dustinpianalto/geeksbot/pkg/services"
)
@@ -247,4 +248,6 @@ func listCommandFunc(ctx disgoman.Context, args []string) {
channelName,
))
}
_, _ = ctx.Send(fmt.Sprintf("There are currently %d open %s", len(requests), utils.PluralizeString("request", len(requests))))
}
@@ -2,5 +2,5 @@ BEGIN;
ALTER TABLE messages
ALTER COLUMN previous_content SET NOT NULL;
ALTER TABLE messages
ALTER COLUMN prevous_content SET DEFAULT array[]::varchar[]
ALTER COLUMN previous_content SET DEFAULT array[]::varchar[];
COMMIT;