Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zach morgan
committed
Jun 3, 2009
1 parent
61b8ba4
commit 231280b
Showing
4 changed files
with
35 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use warnings; | ||
use 5.10.0; | ||
use FindBin '$Bin'; | ||
use lib "$Bin/../lib"; | ||
use basilisk::Schema; | ||
use basilisk::Util; | ||
use JSON; | ||
my $dbfile = "$Bin/../basilisk.db"; | ||
my ($dsn, $user, $pass) = ("dbi:SQLite:$dbfile"); | ||
|
||
my $schema = basilisk::Schema->connect($dsn, $user, $pass) or | ||
die "Failed to connect to database"; | ||
|
||
|
||
my $rulesets = $schema->resultset('Ruleset'); | ||
|
||
#dangerous--will erase other_rules unless extra_rules still exist for them | ||
for my $ruleset ($rulesets->all){ | ||
#say $ruleset->id; | ||
#say $ruleset->rules_description; | ||
#say $ruleset->generate_rules_description. "\n"; | ||
$ruleset->set_column (rules_description => $ruleset->generate_rules_description); | ||
$ruleset->update; | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.