From dd83f83e740ec1cce013e8c93305671bf4809476 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 15 Jul 2011 20:20:49 +0000 Subject: [PATCH] Some improvements to SQL tables --- inc/extensions/ext-funcoins.php | 6 +++--- inc/extensions/ext-wernis.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/extensions/ext-funcoins.php b/inc/extensions/ext-funcoins.php index 55870f3576..13f20a0dae 100644 --- a/inc/extensions/ext-funcoins.php +++ b/inc/extensions/ext-funcoins.php @@ -63,8 +63,8 @@ switch (getExtensionMode()) { `funcoins_account` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'FunCoins account', `funcoins_amount` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000 COMMENT 'Transfered amount', `funcoins_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Booking timestamp', -`funcoins_type` ENUM('WITHDRAW','PAYOUT','FAILED') NOT NULL DEFAULT 'FAILED' COMMENT 'Transaction type', -`fucoins_tan` VARCHAR(255) NOT NULL DEFAULT '' COMMENT 'TAN from API', +`funcoins_type` ENUM('WITHDRAW','PAYOUT') NOT NULL DEFAULT 'PAYOUT' COMMENT 'Transaction type', +`fucoins_tan` VARCHAR(255) NULL DEFAULT NULL COMMENT 'TAN from API', `funcoins_api_response` TINYTEXT COMMENT 'Clear text API response (only for debugging)', `funcoins_api_status` INT(4) NULL DEFAULT NULL COMMENT 'Status code from API', PRIMARY KEY (`id`), @@ -76,7 +76,7 @@ INDEX (`userid`)", addConfigAddSql('funcoins_min_payout', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 40000'); addConfigAddSql('funcoins_min_withdraw', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 5000'); addConfigAddSql('funcoins_api_id', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0'); - addConfigAddSql('funcoins_api_password', "VARCHAR(32) NOT NULL DEFAULT ''"); + addConfigAddSql('funcoins_api_password', "VARCHAR(255) NOT NULL DEFAULT ''"); addConfigAddSql('funcoins_payout_active', "ENUM ('Y','N') NOT NULL DEFAULT 'Y'"); addConfigAddSql('funcoins_withdraw_active', "ENUM ('Y','N') NOT NULL DEFAULT 'Y'"); addConfigAddSql('funcoins_payout_factor', 'FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 1.00000'); diff --git a/inc/extensions/ext-wernis.php b/inc/extensions/ext-wernis.php index 0e620617a7..47e8c7d84b 100644 --- a/inc/extensions/ext-wernis.php +++ b/inc/extensions/ext-wernis.php @@ -56,7 +56,7 @@ switch (getExtensionMode()) { `wernis_account` VARCHAR(255) NOT NULL DEFAULT '', `wernis_amount` FLOAT(20,5) UNSIGNED NOT NULL DEFAULT 0.00000, `wernis_timestamp` VARCHAR(10) NOT NULL DEFAULT 0, -`wernis_type` ENUM('IN','OUT','FAILED') NOT NULL DEFAULT 'FAILED', +`wernis_type` ENUM('IN','OUT') NOT NULL DEFAULT 'OUT', `wernis_api_message` TINYTEXT, `wernis_api_status` VARCHAR(255) NULL DEFAULT NULL, PRIMARY KEY (`id`), -- 2.39.2