mirror of https://github.com/velour/catbase.git
Remove the beers table
This commit is contained in:
parent
15602defbc
commit
0eaadee120
|
@ -37,15 +37,6 @@ type untappdUser struct {
|
||||||
// NewBeersPlugin creates a new BeersPlugin with the Plugin interface
|
// NewBeersPlugin creates a new BeersPlugin with the Plugin interface
|
||||||
func NewBeersPlugin(bot *bot.Bot) *BeersPlugin {
|
func NewBeersPlugin(bot *bot.Bot) *BeersPlugin {
|
||||||
if bot.DBVersion == 1 {
|
if bot.DBVersion == 1 {
|
||||||
if _, err := bot.DB.Exec(`create table if not exists beers (
|
|
||||||
id integer primary key,
|
|
||||||
nick string,
|
|
||||||
count integer,
|
|
||||||
lastDrunk integer
|
|
||||||
);`); err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if _, err := bot.DB.Exec(`create table if not exists untappd (
|
if _, err := bot.DB.Exec(`create table if not exists untappd (
|
||||||
id integer primary key,
|
id integer primary key,
|
||||||
untappdUser string,
|
untappdUser string,
|
||||||
|
|
Loading…
Reference in New Issue