Missing 'pm' column when adding web site from examples/

Discussion in 'Developers' Forum' started by Richard Foley, Sep 23, 2019.

  1. Richard Foley

    Richard Foley Member

    am working on getting a website installed via the remote API. Using the examples in
    Code:
    sites_web_domain_add.php
    I came across the following error:
    Code:
    Data truncated for column 'pm' at row 1 INSERT INTO `web_domain` (...
    Now the value was
    Code:
    ''
    This confused me until I realised the column wasn't even sent. The defaults were taken from the examples/ directory, so the missing column was being generated from the database defaults, which did of course not exist, and it's an ENUM. Just FYI, maybe something to fix?
     

Share This Page