diff --git a/dal/schema/000021_init.down.sql b/dal/schema/000021_init.down.sql new file mode 100644 index 0000000..24bee9c --- /dev/null +++ b/dal/schema/000021_init.down.sql @@ -0,0 +1 @@ +ALTER TABLE answer DROP COLUMN IF EXISTS version; \ No newline at end of file diff --git a/dal/schema/000021_init.up.sql b/dal/schema/000021_init.up.sql new file mode 100644 index 0000000..aa9cfa1 --- /dev/null +++ b/dal/schema/000021_init.up.sql @@ -0,0 +1 @@ +ALTER TABLE answer ADD COLUMN version integer NOT NULL default 0; \ No newline at end of file diff --git a/model/model.go b/model/model.go index 5db3a91..0bfff36 100644 --- a/model/model.go +++ b/model/model.go @@ -131,6 +131,7 @@ type Answer struct { OS string Start bool Utm UTMSavingMap + Version int } type ResultContent struct {