From dc435060380a2473e3c777d02e7549d7bd6808f2 Mon Sep 17 00:00:00 2001 From: moyamo Date: Wed, 2 Dec 2015 23:12:52 +0200 Subject: [PATCH] Remove MySQL installation instructions --- README.md | 9 +-------- conf/schema.sql | 31 ------------------------------- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 conf/schema.sql diff --git a/README.md b/README.md index 033591c..188ac5e 100644 --- a/README.md +++ b/README.md @@ -78,22 +78,15 @@ Checkout the latest version of transWhat from GitHub: Install required dependencies: - $ pip install --pre e4u protobuf mysql python-dateutil + $ pip install --pre e4u protobuf python-dateutil - **e4u**: is a simple emoji4unicode python bindings - [**yowsup**](https://github.com/tgalal/yowsup): is a python library that enables you build application which use WhatsApp service. ##### Configuration -First create a new mySQL database named `transwhat` and fill it with the [schema](https://raw.githubusercontent.com/stv0g/transwhat/yowsup-2/conf/schema.sql) provided in the repo. - Then create a new file called `constants.py` in the newly checked out transWhat Git repository: - DB_HOST = "localhost" - DB_USER = "**fillin**" - DB_PASS = "**fillin**" - DB_TABLE = "transwhat" - BASE_PATH = "/location/to/transwhat" TOKEN_FILE = BASE_PATH + "/logs/tokens" diff --git a/conf/schema.sql b/conf/schema.sql deleted file mode 100644 index f6fb0e7..0000000 --- a/conf/schema.sql +++ /dev/null @@ -1,31 +0,0 @@ -SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -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 utf8 */; - - -CREATE TABLE IF NOT EXISTS `buddies` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `owner_id` int(11) NOT NULL, - `buddy_id` int(11) NOT NULL, - `nick` varchar(255) NOT NULL, - `groups` varchar(255) NOT NULL, - `image_hash` varchar(40), - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -CREATE TABLE IF NOT EXISTS `numbers` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `number` varchar(32) NOT NULL, - `picture` blob NOT NULL, - `state` int(11) NOT NULL, - PRIMARY KEY (`id`), - UNIQUE KEY `number` (`number`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; - -/*!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 */;