Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
-$VERSION = "21.12.00.004";
+$VERSION = "21.12.00.005";
sub version {
return $VERSION;
+++ /dev/null
-use Modern::Perl;
-
-return {
- bug_number => "29778",
- description => "Delete orphan additional contents",
- up => sub {
- my ($args) = @_;
- my ($dbh, $out) = @$args{qw(dbh out)};
- $dbh->do(q{
- DELETE FROM additional_contents
- WHERE code NOT IN (
- SELECT code FROM (
- SELECT code
- FROM additional_contents
- WHERE lang = "default"
- ) as tmp
- );
- });
- },
-}
--- /dev/null
+use Modern::Perl;
+
+return {
+ bug_number => "29778",
+ description => "Delete orphan additional contents",
+ up => sub {
+ my ($args) = @_;
+ my ($dbh, $out) = @$args{qw(dbh out)};
+ $dbh->do(q{
+ DELETE FROM additional_contents
+ WHERE code NOT IN (
+ SELECT code FROM (
+ SELECT code
+ FROM additional_contents
+ WHERE lang = "default"
+ ) as tmp
+ );
+ });
+ },
+}