Archived
1
0

try supporting ubuntu trusty's postgres version

This commit is contained in:
Jeff Becker 2018-06-24 08:18:16 -04:00
parent e78e52debb
commit 03e577d04d
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -621,7 +621,7 @@ func (self *PostgresDatabase) upgrade7to8() {
func (self *PostgresDatabase) upgrade8to9() { func (self *PostgresDatabase) upgrade8to9() {
cmds := []string { cmds := []string {
"ALTER TABLE ArticlePosts ADD COLUMN IF NOT EXISTS frontendpubkey TEXT DEFAULT ''", "ALTER TABLE ArticlePosts ADD COLUMN IF NOT EXISTS frontendpubkey TEXT",
"CREATE TABLE IF NOT EXISTS nntpchan_pubkeys(status VARCHAR(16) NOT NULL, pubkey VARCHAR(64) PRIMARY KEY)", "CREATE TABLE IF NOT EXISTS nntpchan_pubkeys(status VARCHAR(16) NOT NULL, pubkey VARCHAR(64) PRIMARY KEY)",
} }
for _, cmd := range cmds { for _, cmd := range cmds {