diff --git a/client_asset_interface_add_modal.php b/client_asset_interface_add_modal.php new file mode 100644 index 00000000..54d0430b --- /dev/null +++ b/client_asset_interface_add_modal.php @@ -0,0 +1,125 @@ + diff --git a/client_assets.php b/client_assets.php index 3891e1d8..07afa2db 100644 --- a/client_assets.php +++ b/client_assets.php @@ -326,6 +326,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()")); + 0 ){ ?> + +
+ + +
+
+
Important Contacts
+
+
+ + + + + + + + +
+ +
+ +
+ +
+
+
+
+
+
+ + +
diff --git a/database_updates.php b/database_updates.php index 69e2c311..aa1ef477 100644 --- a/database_updates.php +++ b/database_updates.php @@ -413,11 +413,17 @@ if(LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION){ } - //if(CURRENT_DATABASE_VERSION == '0.2.4'){ - // Insert queries here required to update to DB version 0.2.5 + if(CURRENT_DATABASE_VERSION == '0.2.4'){ + mysqli_query($mysqli, "CREATE TABLE `contact_assets` (`contact_id` int(11) NOT NULL,`asset_id` int(11) NOT NULL, PRIMARY KEY (`contact_id`,`asset_id`))"); + + mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.5'"); + } + + //if(CURRENT_DATABASE_VERSION == '0.2.5'){ + // Insert queries here required to update to DB version 0.2.6 // Then, update the database to the next sequential version - // mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.5'"); + // mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.6'"); //} diff --git a/database_version.php b/database_version.php index dfbdf1e6..725e0f8a 100644 --- a/database_version.php +++ b/database_version.php @@ -5,4 +5,4 @@ * It is used in conjunction with database_updates.php */ -DEFINE("LATEST_DATABASE_VERSION", "0.2.4"); \ No newline at end of file +DEFINE("LATEST_DATABASE_VERSION", "0.2.5"); \ No newline at end of file