Skip to content

Commit

Permalink
Add Version Info to Database (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
LtRipley36706 authored Jun 16, 2019
1 parent 592a487 commit 9c27a84
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Database/2-BaseUpdates/2019-06-16-00-Add_Version_Table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
USE `ace_world`;

--
-- Table structure for table `version`
--

DROP TABLE IF EXISTS `version`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `version` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`base_Version` VARCHAR(45) NULL,
`patch_Version` VARCHAR(45) NULL,
`last_Modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Version Information';
/*!40101 SET character_set_client = @saved_cs_client */;
2 changes: 2 additions & 0 deletions Database/compiled/compile.bat
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,6 @@ echo /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; >> ACE-World-CE16PY.sql
echo /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; >> ACE-World-CE16PY.sql
echo. >> ACE-World-CE16PY.sql

echo REPLACE INTO `version` (`id`, `base_Version`) VALUES (1, 'v%APPVEYOR_BUILD_VERSION%'); >> ACE-World-CE16PY.sql
echo. >> ACE-World-CE16PY.sql
@echo on

0 comments on commit 9c27a84

Please sign in to comment.