summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authorAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-18 20:33:56 +0200
committerAndreaChirulescu <andrea.chirulescu@gmail.com>2021-04-18 20:33:56 +0200
commit144693a488a94979005710943b60316e924bf305 (patch)
tree588083ef963cae33e2d8e5f872dc35ef311dbedb /includes
parent106ca5e5247d542b62efa9034ad2d0427cb6fc5c (diff)
downloadgigologadmin-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.php7
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();