Lines 22725-22730
if( CheckVersion( $DBversion ) ) {
Link Here
|
22725 |
NewVersion( $DBversion, 19889, "Add exclude_from_local_holds_priority column to items, deleteditems and categories tables"); |
22725 |
NewVersion( $DBversion, 19889, "Add exclude_from_local_holds_priority column to items, deleteditems and categories tables"); |
22726 |
} |
22726 |
} |
22727 |
|
22727 |
|
|
|
22728 |
$DBversion = '20.06.00.033'; |
22729 |
if( CheckVersion( $DBversion ) ) { |
22730 |
if( column_exists( 'opac_news', 'timestamp' ) ) { |
22731 |
$dbh->do(q| |
22732 |
ALTER TABLE opac_news |
22733 |
CHANGE COLUMN timestamp publicationdate date DEFAULT NULL |
22734 |
|); |
22735 |
} |
22736 |
if( !column_exists( 'opac_news', 'updated_on' ) ) { |
22737 |
$dbh->do(q| |
22738 |
ALTER TABLE opac_news |
22739 |
ADD COLUMN updated_on timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTER publicationdate |
22740 |
|); |
22741 |
} |
22742 |
|
22743 |
$dbh->do(q| |
22744 |
UPDATE letter |
22745 |
SET content = REPLACE(content,?,?) |
22746 |
WHERE content LIKE ? |
22747 |
|, undef, 'opac_news.timestamp', 'opac_news.publicationdate', '%opac_news.timestamp%' ); |
22748 |
|
22749 |
NewVersion( $DBversion, 21066, ["Update table opac_news", "Replace timestamp references in letters table"] ); |
22750 |
} |
22751 |
|
22728 |
# SEE bug 13068 |
22752 |
# SEE bug 13068 |
22729 |
# if there is anything in the atomicupdate, read and execute it. |
22753 |
# if there is anything in the atomicupdate, read and execute it. |
22730 |
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; |
22754 |
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; |
22731 |
- |
|
|