diff options
author | Patrick <pmarschik@users.noreply.github.com> | 2018-09-20 03:19:24 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-09-19 18:19:24 -0700 |
commit | 2538eea1776e1d03d33465ad2001512caca93937 (patch) | |
tree | 021c417d5f31606fe50d7945872c4cda6cdc2060 /database | |
parent | 1d335390c2ac7c0feeb94fce89eefdae9a1e7c17 (diff) |
Add the possibility to override default user agent for each feed
Diffstat (limited to 'database')
-rw-r--r-- | database/migration.go | 2 | ||||
-rw-r--r-- | database/sql.go | 2 | ||||
-rw-r--r-- | database/sql/schema_version_21.sql | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/database/migration.go b/database/migration.go index 3179705..39d15b7 100644 --- a/database/migration.go +++ b/database/migration.go @@ -12,7 +12,7 @@ import ( "miniflux.app/logger" ) -const schemaVersion = 20 +const schemaVersion = 21 // Migrate executes database migrations. func Migrate(db *sql.DB) { diff --git a/database/sql.go b/database/sql.go index 34fecd8..be033fb 100644 --- a/database/sql.go +++ b/database/sql.go @@ -144,6 +144,7 @@ create index users_extra_idx on users using gin(extra); "schema_version_20": `alter table entries add column document_vectors tsvector; update entries set document_vectors = to_tsvector(title || ' ' || coalesce(content, '')); create index document_vectors_idx on entries using gin(document_vectors);`, + "schema_version_21": `alter table feeds add column user_agent text default '';`, "schema_version_3": `create table tokens ( id text not null, value text not null, @@ -192,6 +193,7 @@ var SqlMapChecksums = map[string]string{ "schema_version_19": "a83f77b41cc213d282805a5b518f15abbf96331599119f0ef4aca4be037add7b", "schema_version_2": "e8e9ff32478df04fcddad10a34cba2e8bb1e67e7977b5bd6cdc4c31ec94282b4", "schema_version_20": "6c4e9b2c5bccdc3243c239c390fb1caa5e15624e669b2c07e14c126f6d2e2cd6", + "schema_version_21": "77da01ee38918ff4fe33985fbb20ed3276a717a7584c2ca9ebcf4d4ab6cb6910", "schema_version_3": "a54745dbc1c51c000f74d4e5068f1e2f43e83309f023415b1749a47d5c1e0f12", "schema_version_4": "216ea3a7d3e1704e40c797b5dc47456517c27dbb6ca98bf88812f4f63d74b5d9", "schema_version_5": "46397e2f5f2c82116786127e9f6a403e975b14d2ca7b652a48cd1ba843e6a27c", diff --git a/database/sql/schema_version_21.sql b/database/sql/schema_version_21.sql new file mode 100644 index 0000000..2c96d76 --- /dev/null +++ b/database/sql/schema_version_21.sql @@ -0,0 +1 @@ +alter table feeds add column user_agent text default '';
\ No newline at end of file |