Commit 3d0d3d64 authored by mose's avatar mose

fixed a table def

parent c3eef714
......@@ -5,7 +5,7 @@ revision:
1.3.7
lastmodif:
$Date: 2005-03-11 01:24:40 $
$Date: 2005-03-21 15:41:51 $
files:
features/cc/cc.php cc.php
......@@ -32,7 +32,7 @@ features/cc/img/unregister_c.png img/cc/unregister_c.png
sql-install:
create table if not exists cc_cc ( seq int not null auto_increment, id varchar(255) not null, cc_name varchar(255) not null, cc_description text, owner_id varchar(255), cpun varchar(255) default '' not null,requires_approval char(1) not null, listed char(1) not null default 'n', primary key seq (seq), index ( id(16),cpun(16) ), index ( cc_name(6) ));
create table if not exists cc_ledger ( seq int not null primary key auto_increment, acct_id varchar(255) null, cpun varchar(255) default '' not null, cc_id varchar(255) not null, balance int not null, tr_total int not null, tr_count int not null, last_tr_date int(11), approved char(1), index ( acct_id ), index ( cc_id ), index ( last_tr_date));
create table if not exists cc_ledger ( seq int not null primary key auto_increment, acct_id varchar(255) null, l_cpun varchar(255) default '' not null, cc_id varchar(255) not null, balance int not null, tr_total int not null, tr_count int not null, last_tr_date int(11), approved char(1), index ( acct_id ), index ( cc_id ), index ( last_tr_date));
create table if not exists cc_transaction ( seq int not null primary key auto_increment, tr_date int(11) not null, acct_id varchar(255) not null, cpun varchar(255) not null, cc_id varchar(255) not null, amount int not null, item varchar(255), type varchar(5), balance int not null, index (tr_date), index ( acct_id ));
create table if not exists cc_providers ( cpun varchar(255) not null default '', email varchar(255), url varchar(255), lastupdate int(8), status char(1) not null default 'c', primary key cpun (cpun));
create table if not exists cc_users ( userid int(11), login varchar(255), cpun varchar(255) not null default '', email varchar(255), primary key who (login(40),cpun));
......@@ -63,7 +63,7 @@ ALTER TABLE `cc_cc` ADD `cpun` VARCHAR( 255 ) NOT NULL AFTER `owner_id` ;
ALTER TABLE `cc_cc` DROP `id_2` ;
ALTER TABLE `cc_cc` DROP `id` ;
ALTER TABLE `cc_cc` ADD INDEX ( `id` ( 16 ) , `cpun` ( 16 ) ) ;
ALTER TABLE `cc_ledger` ADD `cpun` VARCHAR( 255 ) DEFAULT '' NOT NULL AFTER `acct_id` ;
ALTER TABLE `cc_ledger` ADD `l_cpun` VARCHAR( 255 ) DEFAULT '' NOT NULL AFTER `acct_id` ;
INSERT IGNORE INTO tiki_menu_options (menuId,type,name,url,position,section,perm,groupname) VALUES (42,'o','Currencies Help','cc.php',1405,'','tiki_p_cc_use','');
INSERT IGNORE INTO tiki_menu_options (menuId,type,name,url,position,section,perm,groupname) VALUES (42,'o','Currencies Config','cc-admin.php',1407,'','tiki_p_cc_admin','');
update tiki_menu_options set url="cc.php?page=currencies&new=1" where name='Create Currency';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment