From 91d2a57671a97cad473cc87cb9e797e80899cfd0 Mon Sep 17 00:00:00 2001 From: CornierKhan1 Date: Wed, 23 Jan 2019 22:55:19 +1100 Subject: [PATCH] Kawauso 0.2.4 --- README.md | 3 +++ database.sql | 45 +++++++++++++++++++++++++++++++++++++++++++++ main.go | 2 +- 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4674c86..9b3d7c2 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,9 @@ This is the SOAP Server Software. The other repository only has the communicatio # Changelog Versions on this software are based on goals. (e.g 0.2 works towards SQL support. 0.3 works towards NUS support, etc.) ## 0.2.x Kawauso +### 0.2.4 +- Added SQL skeleton. +- Edited config template. ### 0.2.3 - Added TODO Items. - Improved Error Handling. diff --git a/database.sql b/database.sql index 39fd9e3..35b624f 100644 --- a/database.sql +++ b/database.sql @@ -4,4 +4,49 @@ This file automatically adds the default database and tables. WiiSOAP uses MySQL. +This SQL File does not guarantee functionality as WiiSOAP is still in early development statements. +It is suggested that you should hold off from using WiiSOAP unless you are confident that you know what you are doing. +Follow and practice proper security practices before handling user data. + */ + +-- Generation Time: Jan 23, 2019 at 12:40 PM +-- Server version: 10.1.37-MariaDB +-- PHP Version: 7.3.0 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +SET AUTOCOMMIT = 0; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Database: `wiisoap` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `userbase` +-- + +CREATE TABLE `userbase` ( + `DeviceId` int(10) UNSIGNED ZEROFILL NOT NULL, + `DeviceToken` varchar(21) NOT NULL, + `AccountId` int(9) UNSIGNED ZEROFILL NOT NULL, + `Region` varchar(2) DEFAULT NULL, + `Country` varchar(2) DEFAULT NULL, + `Language` varchar(2) DEFAULT NULL, + `SerialNo` varchar(11) DEFAULT NULL, + `DeviceCode` int(16) UNSIGNED ZEROFILL NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file diff --git a/main.go b/main.go index 713fd1e..3528069 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func CheckError(e error) { func main() { // Initial Start. - fmt.Println("WiiSOAP 0.2.3 Kawauso") + fmt.Println("WiiSOAP 0.2.4 Kawauso") fmt.Println("Reading the Config...") // Check the Config.