mirror of https://github.com/itflow-org/itflow
Add Transfer Method to the Database this will in the method to transfer money from 1 account to another
This commit is contained in:
parent
120348df4d
commit
1dfc819660
|
|
@ -1630,10 +1630,16 @@ if (LATEST_DATABASE_VERSION > CURRENT_DATABASE_VERSION) {
|
||||||
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.9'");
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.0.9'");
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (CURRENT_DATABASE_VERSION == '1.0.9') {
|
if (CURRENT_DATABASE_VERSION == '1.0.9') {
|
||||||
// // Insert queries here required to update to DB version 1.1.0
|
mysqli_query($mysqli, "ALTER TABLE `transfers` ADD `transfer_method` VARCHAR(200) DEFAULT NULL AFTER `transfer_id`");
|
||||||
|
|
||||||
|
mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.1.0'");
|
||||||
|
}
|
||||||
|
|
||||||
|
// if (CURRENT_DATABASE_VERSION == '1.1.0') {
|
||||||
|
// // Insert queries here required to update to DB version 1.1.1
|
||||||
// // 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.1.0'");
|
// mysqli_query($mysqli, "UPDATE `settings` SET `config_current_database_version` = '1.1.1'");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
} 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", "1.0.9");
|
DEFINE("LATEST_DATABASE_VERSION", "1.1.0");
|
||||||
|
|
||||||
|
|
|
||||||
3
db.sql
3
db.sql
|
|
@ -1606,6 +1606,7 @@ DROP TABLE IF EXISTS `transfers`;
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `transfers` (
|
CREATE TABLE `transfers` (
|
||||||
`transfer_id` int(11) NOT NULL AUTO_INCREMENT,
|
`transfer_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`transfer_method` varchar(200) DEFAULT NULL,
|
||||||
`transfer_notes` text DEFAULT NULL,
|
`transfer_notes` text DEFAULT NULL,
|
||||||
`transfer_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
`transfer_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||||
`transfer_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
`transfer_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||||
|
|
@ -1768,4 +1769,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-03-03 13:39:52
|
-- Dump completed on 2024-03-05 18:47:45
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue