add utm in answer struct and init new mig files for add column utm to db
This commit is contained in:
parent
31f9f421fc
commit
c005af4b60
2
dal/schema/000011_init.down.sql
Normal file
2
dal/schema/000011_init.down.sql
Normal file
@ -0,0 +1,2 @@
|
||||
ALTER TABLE answer
|
||||
DROP COLUMN utm;
|
2
dal/schema/000011_init.up.sql
Normal file
2
dal/schema/000011_init.up.sql
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user