Ticket #11954: recinput.schema.patch

File recinput.schema.patch, 1.3 KB (added by George Nassas <gnassas@…>, 7 years ago)

schema update

  • mythtv/libs/libmythbase/mythversion.h

    From ee63d0a2eb6e92d276f2fcb28486879a4483424c Mon Sep 17 00:00:00 2001
    From: George Nassas <gnassas@gmail.com>
    Date: Wed, 23 Oct 2013 11:22:44 -0400
    Subject: [PATCH] Add recInput column to recorded.
    
    ---
     mythtv/libs/libmythbase/mythversion.h |  2 +-
     mythtv/libs/libmythtv/dbcheck.cpp     | 10 ++++++++++
     2 files changed, 11 insertions(+), 1 deletion(-)
    
    diff --git a/mythtv/libs/libmythbase/mythversion.h b/mythtv/libs/libmythbase/mythversion.h
    index e767e7d..30a8bf3 100644
    a b  
    6161 *      mythtv/bindings/php/MythBackend.php
    6262#endif
    6363
    64 #define MYTH_DATABASE_VERSION "1320"
     64#define MYTH_DATABASE_VERSION "1321"
    6565
    6666
    6767 MBASE_PUBLIC  const char *GetMythSourceVersion();
  • mythtv/libs/libmythtv/dbcheck.cpp

    diff --git a/mythtv/libs/libmythtv/dbcheck.cpp b/mythtv/libs/libmythtv/dbcheck.cpp
    index 15f2bc8..8887cd7 100644
    a b NULL 
    25532553            return false;
    25542554    }
    25552555
     2556    if (dbver == "1320")
     2557    {
     2558        const char *updates[] = {
     2559            "ALTER TABLE recorded ADD recinput VARCHAR(32) AFTER recpriority;",
     2560            NULL
     2561        };
     2562
     2563        if (!performActualUpdate(&updates[0], "1321", dbver))
     2564            return false;
     2565    }
    25562566
    25572567    return true;
    25582568}