Lines 8-17
return {
Link Here
|
8 |
my ($args) = @_; |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
try { |
10 |
try { |
11 |
$dbh->do(q{INSERT IGNORE INTO restriction_types (code, display_text, is_system, is_default) VALUES ('NOTICE_FAILURE_SUSPENSION', 'Notice failure suspension', 1, 0)}); |
11 |
$dbh->do( |
|
|
12 |
q{INSERT IGNORE INTO restriction_types (code, display_text, is_system, is_default) VALUES ('NOTICE_FAILURE_SUSPENSION', 'Notice failure suspension', 1, 0)} |
13 |
); |
12 |
say_success( $out, "Added a new system restriction_types 'NOTICE_FAILURE_SUSPENSION'" ); |
14 |
say_success( $out, "Added a new system restriction_types 'NOTICE_FAILURE_SUSPENSION'" ); |
13 |
} |
15 |
} catch { |
14 |
catch { |
|
|
15 |
say_failure( $out, "Database modification failed with errors: $_" ); |
16 |
say_failure( $out, "Database modification failed with errors: $_" ); |
16 |
}; |
17 |
}; |
17 |
}, |
18 |
}, |
18 |
- |
|
|