add utm in answer struct and init new mig files for add column utm to db

This commit is contained in:
Pavel 2024-05-17 20:19:56 +03:00
parent 31f9f421fc
commit c005af4b60
4 changed files with 7 additions and 0 deletions

@ -0,0 +1,2 @@
ALTER TABLE answer
DROP COLUMN utm;

@ -0,0 +1,2 @@
ALTER TABLE answer
ADD COLUMN utm text NOT NULL DEFAULT '';

@ -130,6 +130,7 @@ type Answer struct {
IP string
OS string
Start bool
Utm string // строка с utm метками amocrm
}
type ResultContent struct {

@ -24,6 +24,8 @@ packages:
- "./dal/schema/000009_init.down.sql"
- "./dal/schema/000010_init.up.sql"
- "./dal/schema/000010_init.down.sql"
- "./dal/schema/000011_init.up.sql"
- "./dal/schema/000011_init.down.sql"
engine: "postgresql"
emit_json_tags: true
emit_db_tags: true