Skip to content

Commit

Permalink
Create a blank Berkeley DB (and ensure we've got it installed!)
Browse files Browse the repository at this point in the history
  • Loading branch information
yumi-xx committed Jul 15, 2019
1 parent d769f01 commit 120325c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
`LearnedAsSpam` bit(1) DEFAULT NULL,
`IsSpam` bit(1) NOT NULL DEFAULT b'0',
`Visible` bit(1) GENERATED ALWAYS AS
(`IsSpam` = 0 and `Deleted` = 0) VIRTUAL
(`IsSpam` = 0 and `Deleted` = 0) VIRTUAL,
PRIMARY KEY (`Continuity`,`Year`,`Topic`,`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
SQL;
Expand Down Expand Up @@ -148,6 +148,8 @@
CMD;
system($cmd);
}
dba_close(dba_open(CONFIG_SPAM_DB, "c"));

print <<<FIN
Finished!
Expand Down

0 comments on commit 120325c

Please sign in to comment.