mirror of https://github.com/itflow-org/itflow
FEATURE: Credential Tags Initial DB Structure Commit
This commit is contained in:
parent
926a796602
commit
c08ac330be
|
|
@ -2329,11 +2329,18 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
|||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.1'");
|
||||
}
|
||||
|
||||
if (CURRENT_DATABASE_VERSION == '1.6.1') {
|
||||
|
||||
mysqli_query($mysqli, "CREATE TABLE `login_tags` (`login_id` int(11) NOT NULL,`tag_id` int(11) NOT NULL, PRIMARY KEY (`login_id`,`tag_id`))");
|
||||
|
||||
// if (CURRENT_DATABASE_VERSION == '1.6.1') {
|
||||
// // Insert queries here required to update to DB version 1.6.2
|
||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.2'");
|
||||
}
|
||||
|
||||
|
||||
// if (CURRENT_DATABASE_VERSION == '1.6.2') {
|
||||
// // Insert queries here required to update to DB version 1.6.3
|
||||
// // Then, update the database to the next sequential version
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.2'");
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.6.3'");
|
||||
// }
|
||||
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@
|
|||
* It is used in conjunction with database_updates.php
|
||||
*/
|
||||
|
||||
DEFINE("LATEST_DATABASE_VERSION", "1.6.1");
|
||||
DEFINE("LATEST_DATABASE_VERSION", "1.6.2");
|
||||
|
|
|
|||
16
db.sql
16
db.sql
|
|
@ -833,6 +833,20 @@ CREATE TABLE `locations` (
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `login_tags`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `login_tags`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `login_tags` (
|
||||
`login_id` int(11) NOT NULL,
|
||||
`tag_id` int(11) NOT NULL,
|
||||
PRIMARY KEY (`login_id`,`tag_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `logins`
|
||||
--
|
||||
|
|
@ -2132,4 +2146,4 @@ CREATE TABLE `vendors` (
|
|||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2024-10-29 18:15:37
|
||||
-- Dump completed on 2024-10-29 18:32:49
|
||||
|
|
|
|||
Loading…
Reference in New Issue