mirror of
https://github.com/itflow-org/itflow
synced 2026-03-26 15:25:38 +00:00
Add domain_notes database field
This commit is contained in:
@@ -1418,7 +1418,7 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
//
|
//
|
||||||
// Then, update the database to the next sequential version
|
// Then, update the database to the next sequential version
|
||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.8.9'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.8.9'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (CURRENT_DATABASE_VERSION == '0.8.9') {
|
if (CURRENT_DATABASE_VERSION == '0.8.9') {
|
||||||
@@ -1524,14 +1524,22 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.8'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.8'");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CURRENT_DATABASE_VERSION == '0.9.8') {
|
||||||
|
//Insert queries here required to update to DB version 0.9.9
|
||||||
|
mysqli_query($mysqli, "ALTER TABLE `domains` ADD `domain_notes` TEXT NULL DEFAULT NULL AFTER `domain_raw_whois`");
|
||||||
|
|
||||||
|
//Then, update the database to the next sequential version
|
||||||
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.9'");
|
||||||
|
}
|
||||||
|
|
||||||
// Be sure to change database_version.php to reflect the version you are updating to here
|
// Be sure to change database_version.php to reflect the version you are updating to here
|
||||||
// Please add this same comment block to the bottom of this file, and update the version number.
|
// Please add this same comment block to the bottom of this file, and update the version number.
|
||||||
// Uncomment Below Lines, to add additional database updates
|
// Uncomment Below Lines, to add additional database updates
|
||||||
//
|
//
|
||||||
// if (CURRENT_DATABASE_VERSION == '0.9.8') {
|
// if (CURRENT_DATABASE_VERSION == '0.9.9') {
|
||||||
// // Insert queries here required to update to DB version 0.9.9
|
// // Insert queries here required to update to DB version 0.10.0
|
||||||
// // Then, update the database to the next sequential version
|
// // Then, update the database to the next sequential version
|
||||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.9.9'");
|
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.10.0'");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -5,5 +5,5 @@
|
|||||||
* It is used in conjunction with database_updates.php
|
* It is used in conjunction with database_updates.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEFINE("LATEST_DATABASE_VERSION", "0.9.8");
|
DEFINE("LATEST_DATABASE_VERSION", "0.9.9");
|
||||||
|
|
||||||
|
|||||||
1
db.sql
1
db.sql
@@ -505,6 +505,7 @@ CREATE TABLE `domains` (
|
|||||||
`domain_mail_servers` varchar(255) DEFAULT NULL,
|
`domain_mail_servers` varchar(255) DEFAULT NULL,
|
||||||
`domain_txt` text DEFAULT NULL,
|
`domain_txt` text DEFAULT NULL,
|
||||||
`domain_raw_whois` text DEFAULT NULL,
|
`domain_raw_whois` text DEFAULT NULL,
|
||||||
|
`domain_notes` text DEFAULT NULL,
|
||||||
`domain_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
`domain_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
`domain_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
`domain_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||||
`domain_archived_at` datetime DEFAULT NULL,
|
`domain_archived_at` datetime DEFAULT NULL,
|
||||||
|
|||||||
Reference in New Issue
Block a user