mirror of https://github.com/itflow-org/itflow
DB Structure Update for additonal feature of custom links include nav location, order and open in new tab option
This commit is contained in:
parent
4dd24531cb
commit
0a1ab84140
|
|
@ -2222,10 +2222,19 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.1'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.1'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (CURRENT_DATABASE_VERSION == '1.5.1') {
|
if (CURRENT_DATABASE_VERSION == '1.5.1') {
|
||||||
// // Insert queries here required to update to DB version 1.5.2
|
|
||||||
|
mysqli_query($mysqli, "ALTER TABLE `custom_links` ADD `custom_link_location` INT(11) NOT NULL DEFAULT 1 AFTER `custom_link_icon`");
|
||||||
|
mysqli_query($mysqli, "ALTER TABLE `custom_links` ADD `custom_link_new_tab` TINYINT(1) NOT NULL DEFAULT 0 AFTER `custom_link_uri`");
|
||||||
|
mysqli_query($mysqli, "ALTER TABLE `custom_links` ADD `custom_link_order` INT(11) NOT NULL DEFAULT 0 AFTER `custom_link_location`");
|
||||||
|
|
||||||
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.2'");
|
||||||
|
}
|
||||||
|
|
||||||
|
// if (CURRENT_DATABASE_VERSION == '1.5.2') {
|
||||||
|
// // Insert queries here required to update to DB version 1.5.3
|
||||||
// // 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.5.2'");
|
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.5.3'");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} 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.5.1");
|
DEFINE("LATEST_DATABASE_VERSION", "1.5.2");
|
||||||
|
|
|
||||||
5
db.sql
5
db.sql
|
|
@ -456,7 +456,10 @@ CREATE TABLE `custom_links` (
|
||||||
`custom_link_name` varchar(200) NOT NULL,
|
`custom_link_name` varchar(200) NOT NULL,
|
||||||
`custom_link_description` text DEFAULT NULL,
|
`custom_link_description` text DEFAULT NULL,
|
||||||
`custom_link_uri` varchar(500) NOT NULL,
|
`custom_link_uri` varchar(500) NOT NULL,
|
||||||
|
`custom_link_new_tab` tinyint(1) NOT NULL DEFAULT 0,
|
||||||
`custom_link_icon` varchar(200) DEFAULT NULL,
|
`custom_link_icon` varchar(200) DEFAULT NULL,
|
||||||
|
`custom_link_location` int(11) NOT NULL DEFAULT 1,
|
||||||
|
`custom_link_order` int(11) NOT NULL DEFAULT 0,
|
||||||
`custom_link_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
`custom_link_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
`custom_link_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
`custom_link_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||||
`custom_link_archived_at` datetime DEFAULT NULL,
|
`custom_link_archived_at` datetime DEFAULT NULL,
|
||||||
|
|
@ -2106,4 +2109,4 @@ CREATE TABLE `vendors` (
|
||||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||||
|
|
||||||
-- Dump completed on 2024-09-18 16:29:56
|
-- Dump completed on 2024-09-18 18:21:54
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue