sample database change, coins hasmasternodes

This commit is contained in:
Tanguy Pruvot 2015-07-16 06:09:49 +02:00
parent 79413164c8
commit 1824eb7d64
9 changed files with 24 additions and 2 deletions

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ stratum/config/
*.log *.log
web/yaamp/runtime/* web/yaamp/runtime/*
cookies/ cookies/
bin/blocknotify

0
README.md Executable file → Normal file
View file

6
bin/blocknotify.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
#
# callback script... replaced by blocknotify binary
#
# blocknotify="blocknotify.sh --host yaamp --port $stratum_port --id $coin->id --block %s --password tu8tu5"

View file

@ -18,7 +18,7 @@ all: $(SOURCES) $(OUTPUT)
install: all install: all
strip -s $(OUTPUT) strip -s $(OUTPUT)
cp $(OUTPUT) /usr/local/bin/ mv $(OUTPUT) ../bin/
clean: clean:
rm -f *.o rm -f *.o

View file

@ -0,0 +1,5 @@
-- Changes since first yaamp release (already in sql.gz)
ALTER TABLE `accounts` ADD `login` varchar(45) DEFAULT NULL AFTER `coinsymbol`;
ALTER TABLE `accounts` ADD `hostaddr` varchar(39) DEFAULT NULL AFTER `login`;

View file

@ -0,0 +1,4 @@
-- Recent additions to add after db init (.gz)
ALTER TABLE `coins` ADD `hasmasternodes` TINYINT(1) NOT NULL DEFAULT '0' AFTER `hassubmitblock`;

4
sql/README.md Normal file
View file

@ -0,0 +1,4 @@
Please do not replace this .gz in git,
the best way would be to separate the structure from the data... (2 different sql files)

View file

@ -2,8 +2,9 @@
ini_set('date.timezone', 'UTC'); ini_set('date.timezone', 'UTC');
define('YAAMP_LOGS', '/var/log/yaamp'); define('YAAMP_LOGS', '/var/log');
define('YAAMP_HTDOCS', '/var/web'); define('YAAMP_HTDOCS', '/var/web');
define('YAAMP_BIN', '/var/bin');
define('YAAMP_DBHOST', 'localhost'); define('YAAMP_DBHOST', 'localhost');
define('YAAMP_DBNAME', 'yaamp'); define('YAAMP_DBNAME', 'yaamp');