mirror of https://github.com/itflow-org/itflow
Used the DB Update function to write new repo_branch var for docker the new docker to function properly
This commit is contained in:
parent
c0399a2c42
commit
3baea5e757
|
|
@ -424,11 +424,23 @@ if(LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION){
|
|||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.6'");
|
||||
}
|
||||
|
||||
//if(CURRENT_DATABASE_VERSION == '0.2.6'){
|
||||
// Insert queries here required to update to DB version 0.2.7
|
||||
if(CURRENT_DATABASE_VERSION == '0.2.6'){
|
||||
// Insert queries here required to update to DB version 0.2.7
|
||||
mysqli_query($mysqli, "ALTER TABLE `contacts` ADD `contact_token_expire` DATETIME NULL DEFAULT NULL AFTER `contact_password_reset_token`");
|
||||
|
||||
// Update config.php var with new version var for use with docker
|
||||
file_put_contents("config.php", "\$repo_branch = 'master';" . PHP_EOL, FILE_APPEND);
|
||||
|
||||
|
||||
// Then, update the database to the next sequential version
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.7'");
|
||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.7'");
|
||||
}
|
||||
|
||||
//if(CURRENT_DATABASE_VERSION == '0.2.7'){
|
||||
// Insert queries here required to update to DB version 0.2.8
|
||||
|
||||
// Then, update the database to the next sequential version
|
||||
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '0.2.8'");
|
||||
//}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@
|
|||
* It is used in conjunction with database_updates.php
|
||||
*/
|
||||
|
||||
DEFINE("LATEST_DATABASE_VERSION", "0.2.6");
|
||||
DEFINE("LATEST_DATABASE_VERSION", "0.2.7");
|
||||
3
db.sql
3
db.sql
|
|
@ -342,6 +342,7 @@ CREATE TABLE `contacts` (
|
|||
`contact_auth_method` varchar(200) DEFAULT NULL,
|
||||
`contact_password_hash` varchar(200) DEFAULT NULL,
|
||||
`contact_password_reset_token` varchar(200) DEFAULT NULL,
|
||||
`contact_token_expire` datetime DEFAULT NULL,
|
||||
`contact_important` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`contact_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`contact_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||
|
|
@ -1537,4 +1538,4 @@ CREATE TABLE `vendors` (
|
|||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2023-01-13 18:23:52
|
||||
-- Dump completed on 2023-01-13 21:42:57
|
||||
|
|
|
|||
Loading…
Reference in New Issue