X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FApp-IdiotBox.git;a=blobdiff_plain;f=lib%2FApp%2FIdiotBox%2FStore%2FSQLite.pm;h=be69881edb829bfda714d00136c2c805e57e230a;hp=104472b6bb3400b46604066e3b0013361664e80f;hb=26b4958ec93a29fb6918934f2b4fab0541bad2fd;hpb=8ee9b216399777fbcb5e307b28c8dcfcd3716dd3 diff --git a/lib/App/IdiotBox/Store/SQLite.pm b/lib/App/IdiotBox/Store/SQLite.pm index 104472b..be69881 100644 --- a/lib/App/IdiotBox/Store/SQLite.pm +++ b/lib/App/IdiotBox/Store/SQLite.pm @@ -128,8 +128,13 @@ sub _bind_buckets { (slug, name) VALUES (?, ?) - } - + }, + delete_one => q{ + DELETE FROM buckets WHERE slug = ? + }, + update_one => q{ + UPDATE buckets SET slug = ?, name = ? WHERE slug = ? + }, } ) }