mirror of
https://github.com/itflow-org/itflow
synced 2026-03-10 15:54:51 +00:00
update db
update db to store phone mask option
This commit is contained in:
@@ -1880,10 +1880,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.8'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.8'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (CURRENT_DATABASE_VERSION == '1.2.8') {
|
if (CURRENT_DATABASE_VERSION == '1.2.8') {
|
||||||
// // Insert queries here required to update to DB version 1.2.9
|
|
||||||
|
mysqli_query($mysqli, "ALTER TABLE `settings` ADD `config_phone_mask` TINYINT(1) NOT NULL DEFAULT 1 AFTER `config_destructive_deletes_enable`");
|
||||||
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.9'");
|
||||||
|
}
|
||||||
|
|
||||||
|
// if (CURRENT_DATABASE_VERSION == '1.2.9') {
|
||||||
|
// // Insert queries here required to update to DB version 1.2.10
|
||||||
// // 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` = '1.2.9");
|
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.2.10");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
* It is used in conjunction with database_updates.php
|
* It is used in conjunction with database_updates.php
|
||||||
*/
|
*/
|
||||||
|
|
||||||
DEFINE("LATEST_DATABASE_VERSION", "1.2.8");
|
DEFINE("LATEST_DATABASE_VERSION", "1.2.9");
|
||||||
|
|||||||
1
db.sql
1
db.sql
@@ -1375,6 +1375,7 @@ CREATE TABLE `settings` (
|
|||||||
`config_telemetry` tinyint(1) DEFAULT 0,
|
`config_telemetry` tinyint(1) DEFAULT 0,
|
||||||
`config_timezone` varchar(200) NOT NULL DEFAULT 'America/New_York',
|
`config_timezone` varchar(200) NOT NULL DEFAULT 'America/New_York',
|
||||||
`config_destructive_deletes_enable` tinyint(1) NOT NULL DEFAULT 0,
|
`config_destructive_deletes_enable` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
|
`config_phone_number` tinyint(1) NOT NULL DEFAULT 1,
|
||||||
PRIMARY KEY (`company_id`)
|
PRIMARY KEY (`company_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|||||||
Reference in New Issue
Block a user