diff --git a/migrations/common/fixtures/1_imprint_content.sql b/migrations/common/fixtures/1_imprint_content.sql index d300c3e..906e056 100644 --- a/migrations/common/fixtures/1_imprint_content.sql +++ b/migrations/common/fixtures/1_imprint_content.sql @@ -1,7 +1,8 @@ -- +migrate Up -- SQL in section 'Up' is executed when this migration is applied -insert into key_string_values (`key`, `value`) values ('imprint', 'no content here'); +insert into key_string_values ("key", "value") values ('imprint', 'no content here'); -- +migrate Down -- SQL section 'Down' is executed when this migration is rolled back -delete from key_string_values where `key` = 'imprint'; \ No newline at end of file +SET SQL_MODE=ANSI_QUOTES; +delete from key_string_values where key = 'imprint'; \ No newline at end of file diff --git a/utils/common.go b/utils/common.go index 738fbd2..39c658e 100644 --- a/utils/common.go +++ b/utils/common.go @@ -44,7 +44,7 @@ func MakeConnectionString(config *models.Config) string { func mySqlConnectionString(config *models.Config) string { //location, _ := time.LoadLocation("Local") - return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8&parseTime=true&loc=%s", + return fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8&parseTime=true&loc=%s&sql_mode=ANSI_QUOTES", config.DbUser, config.DbPassword, config.DbHost, diff --git a/version.txt b/version.txt index 169f19b..b0f61c5 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.11.0 \ No newline at end of file +1.11.1 \ No newline at end of file diff --git a/views/imprint.tpl.html b/views/imprint.tpl.html index 226e5f0..81e116e 100644 --- a/views/imprint.tpl.html +++ b/views/imprint.tpl.html @@ -5,7 +5,7 @@