|
Lines 8-18
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 |
|
10 |
|
| 11 |
say $dbh->do(q{ |
11 |
say $dbh->do( |
|
|
12 |
q{ |
| 12 |
UPDATE columns_settings |
13 |
UPDATE columns_settings |
| 13 |
SET columnname = REGEXP_REPLACE(columnname, '.*holdings_', '') |
14 |
SET columnname = REGEXP_REPLACE(columnname, '.*holdings_', '') |
| 14 |
WHERE module="catalogue" AND page="detail" AND ( tablename="holdings_table" OR tablename="otherholdings_table") |
15 |
WHERE module="catalogue" AND page="detail" AND ( tablename="holdings_table" OR tablename="otherholdings_table") |
| 15 |
}); |
16 |
} |
|
|
17 |
); |
| 16 |
say_success( $out, "Column names renamed" ); |
18 |
say_success( $out, "Column names renamed" ); |
| 17 |
}, |
19 |
}, |
| 18 |
}; |
20 |
}; |
| 19 |
- |
|
|