summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2006-01-31 20:19:40 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2006-01-31 20:19:40 +0000
commita370cf691031bf4232285363f0b279836f091831 (patch)
tree624e76b501a64d343615433c08df96f99adb343c /admin
parentcbec52632d16507a7f772a5c379599a1a10793bd (diff)
downloadquota-a370cf691031bf4232285363f0b279836f091831.tar.gz
quota-a370cf691031bf4232285363f0b279836f091831.tar.bz2
quota-a370cf691031bf4232285363f0b279836f091831.zip
massive table de-tikification. changed all tiki_ table prefixes with teh package_ name. have changed everything except liberty except kernel
Diffstat (limited to 'admin')
-rw-r--r--admin/schema_inc.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 0f1fc80..da7990d 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -7,7 +7,7 @@ $tables = array(
units I4 NOTNULL
",
-'tiki_quotas' => "
+'quotas' => "
quota_id I4 PRIMARY,
disk_usage I8,
monthly_transfer I8,
@@ -15,11 +15,11 @@ $tables = array(
description X
",
-'tiki_quotas_group_map' => "
+'quotas_group_map' => "
quota_id I4 PRIMARY,
group_id I4 PRIMARY
- CONSTRAINTS ', CONSTRAINT `tiki_quotas_group_ref` FOREIGN KEY (`group_id`) REFERENCES `".BIT_DB_PREFIX."users_groups`( `group_id` )
- , CONSTRAINT `tiki_quotas_map_ref` FOREIGN KEY (`quota_id`) REFERENCES `".BIT_DB_PREFIX."tiki_quotas`( `quota_id` )'
+ CONSTRAINTS ', CONSTRAINT `quotas_group_ref` FOREIGN KEY (`group_id`) REFERENCES `".BIT_DB_PREFIX."users_groups`( `group_id` )
+ , CONSTRAINT `quotas_map_ref` FOREIGN KEY (`quota_id`) REFERENCES `".BIT_DB_PREFIX."quotas`( `quota_id` )'
",
);
@@ -42,13 +42,13 @@ $gBitInstaller->registerPackageInfo( QUOTA_PKG_NAME, array(
// ### Indexes
$indices = array (
- 'tiki_quotas_group_idx' => array( 'table' => 'tiki_quotas_group_map', 'cols' => 'group_id', 'opts' => array( 'UNIQUE' ) ),
+ 'quotas_group_idx' => array( 'table' => 'quotas_group_map', 'cols' => 'group_id', 'opts' => array( 'UNIQUE' ) ),
);
$gBitInstaller->registerSchemaIndexes( QUOTA_PKG_NAME, $indices );
// ### Sequences
$sequences = array (
- 'tiki_quota_id_seq' => array( 'start' => 3 )
+ 'quota_id_seq' => array( 'start' => 3 )
);
$gBitInstaller->registerSchemaSequences( QUOTA_PKG_NAME, $sequences );
@@ -67,10 +67,10 @@ $gBitInstaller->registerPreferences( QUOTA_PKG_NAME, array(
) );
$gBitInstaller->registerSchemaDefault( QUOTA_PKG_NAME, array(
- "INSERT INTO `".BIT_DB_PREFIX."tiki_quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('1', 2000000, 20000000, 'Free Trial', 'A little space to try out site features' )",
- "INSERT INTO `".BIT_DB_PREFIX."tiki_quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('2', 10000000, 100000000, 'Site Supporters', 'Extra space for site supporters.' )",
+ "INSERT INTO `".BIT_DB_PREFIX."quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('1', 2000000, 20000000, 'Free Trial', 'A little space to try out site features' )",
+ "INSERT INTO `".BIT_DB_PREFIX."quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('2', 10000000, 100000000, 'Site Supporters', 'Extra space for site supporters.' )",
- "INSERT INTO `".BIT_DB_PREFIX."tiki_quotas_group_map` ( `quota_id`, `group_id` ) VALUES ( 1, 3 )",
- "INSERT INTO `".BIT_DB_PREFIX."tiki_quotas_group_map` ( `quota_id`, `group_id` ) VALUES ( 2, 2 )",
+ "INSERT INTO `".BIT_DB_PREFIX."quotas_group_map` ( `quota_id`, `group_id` ) VALUES ( 1, 3 )",
+ "INSERT INTO `".BIT_DB_PREFIX."quotas_group_map` ( `quota_id`, `group_id` ) VALUES ( 2, 2 )",
) );
?>