pool/sql/2018-02-coins_getinfo.sql
Tanguy Pruvot 0bf982da95 sql: add hasgetinfo and no_explorer fields to coins table
wallets without getinfo will be handled in a later commit...

ps: remember to restart memcached service after the db change..
2018-02-02 06:03:07 +01:00

13 lines
578 B
SQL

-- Recent additions to add after db init (.gz)
-- mysql yaamp -p < file.sql
-- filled by the stratum instance, to allow to handle/watch multiple instances
ALTER TABLE `coins` ADD `hasgetinfo` tinyint(1) UNSIGNED NOT NULL DEFAULT '1' AFTER `account`;
UPDATE coins SET hassubmitblock=0 WHERE hassubmitblock IS NULL;
UPDATE coins SET hassubmitblock=1 WHERE hassubmitblock > 0;
ALTER TABLE `coins` CHANGE `hassubmitblock` `hassubmitblock` tinyint(1) UNSIGNED NOT NULL DEFAULT '1';
ALTER TABLE `coins` ADD `no_explorer` tinyint(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `visible`;