diff options
author | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-04-18 20:33:56 +0200 |
---|---|---|
committer | AndreaChirulescu <andrea.chirulescu@gmail.com> | 2021-04-18 20:33:56 +0200 |
commit | 144693a488a94979005710943b60316e924bf305 (patch) | |
tree | 588083ef963cae33e2d8e5f872dc35ef311dbedb /includes | |
parent | 106ca5e5247d542b62efa9034ad2d0427cb6fc5c (diff) | |
download | gigologadmin-144693a488a94979005710943b60316e924bf305.tar.gz gigologadmin-144693a488a94979005710943b60316e924bf305.tar.bz2 gigologadmin-144693a488a94979005710943b60316e924bf305.zip |
Added NN country for defaulting bands to an unknown country
Diffstat (limited to 'includes')
-rw-r--r-- | includes/admin/register_db_tables.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/includes/admin/register_db_tables.php b/includes/admin/register_db_tables.php index 1121253..3e26a15 100644 --- a/includes/admin/register_db_tables.php +++ b/includes/admin/register_db_tables.php @@ -419,7 +419,12 @@ if ( !function_exists( "giglog_register_db_tables") ) `wpgcl_createddate` date NOT NULL DEFAULT current_timestamp();"); } - update_option("giglogadmin_db_version", 3); + if ($db_version == NULL || $db_version < 4) + { + $wpdb->query( + "INSERT INTO `wpg_countries` (`id`, `wpgc_fullname`, `wpgcountry_name`, `wpgc_iso3`, `wpgc_numcode`) VALUES ('NN', 'UNKNOWN', 'Unknown', 'NNN', '666');"); + } + update_option("giglogadmin_db_version", 4); } giglog_register_db_tables(); |