Skip to content
  • Robert Lyon's avatar
    Bug 1827445: Check if a table exists in a quicker way · 6a26a0c7
    Robert Lyon authored
    
    
    Without needing to include the lib/ddl.php file, and create
    the xmldb table objects
    
    We do this by trying to query the table to return one value
    and capture the SQLException if it doesn't exist
    
    The places changed are where we don't manipulate the table - so have
    left upgrade places the same as we will need to do things the ddl.php
    way anyway
    
    behatnotneeded
    
    Change-Id: Ic38cee95a221a22e644370b308356cf687a1e831
    Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
    6a26a0c7