ALTER TABLE `phpbb2`.`phpbb_vault_exchange` ADD`stock_total` INT(5) DEFAULT '100' NOT NULL
代碼: 選擇全部
INSERT INTO phpbb_config (config_name, config_value) VALUES ('vault_enable', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('vault_name', '金融中心');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('stock_use', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('stock_time', '86400');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('stock_last_change', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('vault_display_profile', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('vault_display_topics', '0');
CREATE TABLE phpbb_vault_blacklist (
user_id int(8) NOT NULL default '0',
user_due int(8) NOT NULL default '0',
PRIMARY KEY (user_id)
) TYPE=MyISAM;
CREATE TABLE phpbb_vault_exchange (
stock_id int(8) NOT NULL default '0',
stock_name varchar(40) NOT NULL default '',
stock_desc varchar(255) NOT NULL default '',
stock_total int(5) default '30',
stock_price int(8) NOT NULL default '0',
stock_previous_price int(8) NOT NULL default '0',
stock_best_price int(8) NOT NULL default '0',
stock_worst_price int(8) NOT NULL default '0',
chairman int(8) default '2',
PRIMARY KEY (stock_id)
) TYPE=MyISAM;
INSERT INTO phpbb_vault_exchange (stock_id, stock_name, stock_desc, stock_total, stock_price, stock_previous_price, stock_best_price, stock_worst_price) VALUES (1, 'Vault_action_name_1', 'Vault_action_desc_1', 30, 100, 100, 100, 100,2 );
INSERT INTO phpbb_vault_exchange (stock_id, stock_name, stock_desc, stock_total, stock_price, stock_previous_price, stock_best_price, stock_worst_price) VALUES (2, 'Vault_action_name_2', 'Vault_action_desc_2', 30, 200, 200, 200, 200,2 );
INSERT INTO phpbb_vault_exchange (stock_id, stock_name, stock_desc, stock_total, stock_price, stock_previous_price, stock_best_price, stock_worst_price) VALUES (3, 'Vault_action_name_3', 'Vault_action_desc_3', 30, 300, 300, 300, 300,2 );
CREATE TABLE phpbb_vault_exchange_users (
stock_id mediumint(8) NOT NULL default '0',
user_id mediumint(8) NOT NULL default '0',
stock_amount mediumint(8) NOT NULL default '0',
stock_price mediumint(8) NOT NULL default '0',
KEY stock_id (stock_id),
KEY user_id (user_id)
) TYPE=MyISAM;
CREATE TABLE phpbb_vault_general (
config_name varchar(255) NOT NULL default '',
config_value int(15) NOT NULL default '0',
PRIMARY KEY (config_name)
) TYPE=MyISAM;
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('vault_loan_enable', 1);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('interests_rate', 4);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('interests_time', 86400);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('loan_interests', 15);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('loan_interests_time', 864000);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('loan_max_sum', 5000);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('loan_requirements', 0);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('stock_max_change', 10);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('stock_min_change', 3);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('base_amount', 10);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('num_items', 30);
INSERT INTO phpbb_vault_general (config_name, config_value) VALUES ('change_fee', 1);
CREATE TABLE phpbb_vault_users (
owner_id int(8) NOT NULL default '0',
account_id int(8) NOT NULL default '0',
account_sum int(8) NOT NULL default '0',
account_time int(11) NOT NULL default '0',
loan_sum int(8) NOT NULL default '0',
loan_time int(11) NOT NULL default '0',
account_protect tinyint(1) NOT NULL default '0',
loan_protect tinyint(1) NOT NULL default '0',
newsletter tinyint(1) NOT NULL default '0',
PRIMARY KEY (owner_id)
) TYPE=MyISAM;