diff options
| author | Felix Hanley <felix@userspace.com.au> | 2020-03-16 03:08:21 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2020-03-16 03:08:21 +0000 |
| commit | c16f2a68eeb6550743354245f95605a141c1d020 (patch) | |
| tree | 3d7254689ce9a020a72986e013d30c32834bc3db | |
| parent | e8f2a99b59cf62e4da9453bed7ef810ecd95e5bd (diff) | |
| download | sws-c16f2a68eeb6550743354245f95605a141c1d020.tar.gz sws-c16f2a68eeb6550743354245f95605a141c1d020.tar.bz2 | |
Another fix for ignore ips
| -rw-r--r-- | site.go | 4 | ||||
| -rw-r--r-- | sql/sqlite3/05_site_restrictions.sql | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -10,9 +10,9 @@ type Site struct { ID *int `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` - AcceptSubdomains bool `json:"subdomains"` + AcceptSubdomains bool `json:"subdomains" db:"subdomains"` Aliases string `json:"aliases,omitempty"` - IgnoreIPs string `json:"ignore_ips"` + IgnoreIPs string `json:"ignore_ips" db:"ignore_ips"` Enabled bool `json:"enabled"` CreatedAt *time.Time `json:"created_at,omitempty" db:"created_at"` UpdatedAt *time.Time `json:"updated_at,omitempty" db:"updated_at"` diff --git a/sql/sqlite3/05_site_restrictions.sql b/sql/sqlite3/05_site_restrictions.sql index d383df1..b04ee35 100644 --- a/sql/sqlite3/05_site_restrictions.sql +++ b/sql/sqlite3/05_site_restrictions.sql @@ -1,2 +1,2 @@ alter table sites add column subdomains integer not null default 0; -alter table sites add column ignore_ips varchar null; +alter table sites add column ignore_ips varchar not null; |
