try supporting ubuntu trusty's postgres version
This commit is contained in:
parent
e78e52debb
commit
03e577d04d
@ -621,7 +621,7 @@ func (self *PostgresDatabase) upgrade7to8() {
|
||||
|
||||
func (self *PostgresDatabase) upgrade8to9() {
|
||||
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)",
|
||||
}
|
||||
for _, cmd := range cmds {
|
||||
|
Reference in New Issue
Block a user