summaryrefslogtreecommitdiff
path: root/bucky2/bin/move-comment
blob: 77234477212ad0732f4a90b89cca67e2b725bd9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use strict;
use lib "../lib";
use Bucky;

if (scalar(@ARGV) < 2) {
  print "usage: move-comment thread-id comment-id\n";
  exit(1);
}

my $bucky = new Bucky;
$bucky->db->update_by_id('comment', {
  "id" => $ARGV[1],
  "record" => {
    "thread" => $ARGV[0]
  }
});