Update docs, db scheme

This commit is contained in:
Jakob Sack 2011-07-22 22:47:44 +02:00
parent 3b92ec12c2
commit 0fa41e9171
4 changed files with 104 additions and 272 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1" ?> <?xml version="1.0" encoding="ISO-8859-1" ?>
<database> <database>
<name>*dbname*</name> <name>*dbname*</name>
<create>true</create> <create>true</create>
<overwrite>false</overwrite> <overwrite>false</overwrite>
@ -9,7 +9,7 @@
<table> <table>
<name>*dbprefix*appconfig</name> <name>*dbprefix*appconfig</name>
<declaration> <declaration>
@ -43,7 +43,7 @@
<table> <table>
<name>*dbprefix*foldersize</name> <name>*dbprefix*foldersize</name>
<declaration> <declaration>
@ -52,7 +52,7 @@
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>true</notnull>
<length>128</length> <length>512</length>
</field> </field>
<field> <field>
@ -64,8 +64,7 @@
</field> </field>
<index> <index>
<name>foldersize_pKey</name> <name>path_index</name>
<primary>true</primary>
<field> <field>
<name>path</name> <name>path</name>
<sorting>ascending</sorting> <sorting>ascending</sorting>
@ -78,7 +77,7 @@
<table> <table>
<name>*dbprefix*group_user</name> <name>*dbprefix*group_user</name>
<declaration> <declaration>
@ -104,7 +103,7 @@
<table> <table>
<name>*dbprefix*groups</name> <name>*dbprefix*groups</name>
<declaration> <declaration>
@ -131,135 +130,82 @@
<table> <table>
<name>*dbprefix*locks</name> <name>*dbprefix*locks</name>
<declaration> <declaration>
<field> <field>
<name>token</name> <name>id</name>
<type>text</type> <type>integer</type>
<default></default> <default>0</default>
<notnull>true</notnull> <notnull>true</notnull>
<length>255</length> <autoincrement>1</autoincrement>
<unsigned>true</unsigned>
<length>4</length>
</field> </field>
<field> <field>
<name>path</name> <name>userid</name>
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>false</notnull>
<length>200</length> <length>200</length>
</field> </field>
<field>
<name>created</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
<name>modified</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
<name>expires</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field> <field>
<name>owner</name> <name>owner</name>
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>false</notnull> <notnull>false</notnull>
<length>200</length> <length>100</length>
</field> </field>
<field> <field>
<name>recursive</name> <name>timeout</name>
<type>integer</type> <type>integer</type>
<default>0</default> <default></default>
<notnull>false</notnull>
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
<name>created</name>
<type>integer</type>
<default></default>
<notnull>false</notnull> <notnull>false</notnull>
<length>4</length> <length>4</length>
</field> </field>
<field> <field>
<name>writelock</name> <name>token</name>
<type>integer</type> <type>text</type>
<default>0</default> <default></default>
<notnull>false</notnull> <notnull>false</notnull>
<length>4</length> <length>100</length>
</field> </field>
<field> <field>
<name>exclusivelock</name> <name>scope</name>
<type>integer</type> <type>integer</type>
<default>0</default> <default></default>
<notnull>true</notnull> <notnull>false</notnull>
<length>4</length> <length>1</length>
</field> </field>
<index> <field>
<name>locks_path</name> <name>depth</name>
<field> <type>integer</type>
<name>path</name> <default></default>
<sorting>ascending</sorting> <notnull>false</notnull>
</field> <length>1</length>
</index> </field>
<index> <field>
<name>locks_path_2</name> <name>uri</name>
<field> <type>clob</type>
<name>path</name> <notnull>false</notnull>
<sorting>ascending</sorting> </field>
</field>
</index>
<index>
<name>locks_path_3</name>
<field>
<name>path</name>
<sorting>ascending</sorting>
</field>
<field>
<name>token</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>locks_expires</name>
<field>
<name>expires</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>locks_pKey</name>
<primary>true</primary>
<field>
<name>token</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>locks_token</name>
<unique>true</unique>
<field>
<name>token</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration> </declaration>
@ -267,7 +213,7 @@
<table> <table>
<name>*dbprefix*log</name> <name>*dbprefix*log</name>
<declaration> <declaration>
@ -324,7 +270,7 @@
<table> <table>
<name>*dbprefix*preferences</name> <name>*dbprefix*preferences</name>
<declaration> <declaration>
@ -366,12 +312,20 @@
<table> <table>
<name>*dbprefix*properties</name> <name>*dbprefix*properties</name>
<declaration> <declaration>
<field> <field>
<name>path</name> <name>userid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>200</length>
</field>
<field>
<name>propertypath</name>
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>true</notnull>
@ -379,51 +333,26 @@
</field> </field>
<field> <field>
<name>name</name> <name>propertyname</name>
<type>text</type> <type>text</type>
<default></default> <default></default>
<notnull>true</notnull> <notnull>true</notnull>
<length>120</length> <length>255</length>
</field> </field>
<field> <field>
<name>ns</name> <name>propertyvalue</name>
<type>text</type>
<default>DAV:</default>
<notnull>true</notnull>
<length>120</length>
</field>
<field>
<name>value</name>
<type>clob</type> <type>clob</type>
<notnull>false</notnull> <notnull>true</notnull>
</field> </field>
<index>
<name>properties_pKey</name>
<primary>true</primary>
<field>
<name>path</name>
<sorting>ascending</sorting>
</field>
<field>
<name>name</name>
<sorting>ascending</sorting>
</field>
<field>
<name>ns</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration> </declaration>
</table> </table>
<table> <table>
<name>*dbprefix*users</name> <name>*dbprefix*users</name>
<declaration> <declaration>

View File

@ -1,29 +0,0 @@
#!/usr/bin/perl
use strict;
use Locale::PO;
use Data::Dumper;
opendir( DIR, '.' );
my @files = readdir( DIR );
closedir( DIR );
foreach my $i ( @files ){
next unless $i =~ m/^(.*)\.po$/;
my $lang = $1;
my $hash = Locale::PO->load_file_ashash( $i );
# Create array
my @strings = ();
foreach my $key ( keys( %{$hash} )){
next if $key eq '""';
next if $hash->{$key}->msgstr() eq '""';
push( @strings, $hash->{$key}->msgid()." => ".$hash->{$key}->msgstr());
}
# Write PHP file
open( OUT, ">$lang.php" );
print OUT "<?php \$TRANSLATIONS = array(\n";
print OUT join( ",\n", @strings );
print OUT "\n);\n";
close( OUT );
}

View File

@ -1,18 +0,0 @@
#!/usr/bin/perl
use strict;
if( -e 'messages.pot' ){
`xgettext --files-from=xgettextfiles --join-existing --output=messages.pot --keyword=t`
}
else{
`xgettext --files-from=xgettextfiles --output=messages.pot --keyword=t`
}
opendir( DIR, '.' );
my @files = readdir( DIR );
closedir( DIR );
foreach my $i ( @files ){
next unless $i =~ m/^(.*)\.po$/;
`xgettext --files-from=xgettextfiles --join-existing --output=$i --keyword=t`
}

View File

@ -1,28 +1,23 @@
-- phpMyAdmin SQL Dump -- phpMyAdmin SQL Dump
-- version 3.3.7deb5 -- version 3.4.3.1deb1
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: localhost -- Host: localhost
-- Erstellungszeit: 16. April 2011 um 10:40 -- Generation Time: Jul 22, 2011 at 10:38 PM
-- Server Version: 5.1.49 -- Server version: 5.1.58
-- PHP-Version: 5.3.3-7+squeeze1 -- PHP Version: 5.3.6-13
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- --
-- Datenbank: `owncloud` -- Database: `owncloud`
-- --
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `appconfig` -- Table structure for table `appconfig`
-- --
CREATE TABLE IF NOT EXISTS `appconfig` ( CREATE TABLE IF NOT EXISTS `appconfig` (
@ -31,15 +26,22 @@ CREATE TABLE IF NOT EXISTS `appconfig` (
`configvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL `configvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
-- --
-- Daten für Tabelle `appconfig` -- Table structure for table `foldersize`
-- --
CREATE TABLE IF NOT EXISTS `foldersize` (
`path` varchar(512) COLLATE utf8_unicode_ci NOT NULL,
`size` int(11) NOT NULL,
KEY `PATH_INDEX` (`path`(333))
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `groups` -- Table structure for table `groups`
-- --
CREATE TABLE IF NOT EXISTS `groups` ( CREATE TABLE IF NOT EXISTS `groups` (
@ -47,17 +49,10 @@ CREATE TABLE IF NOT EXISTS `groups` (
PRIMARY KEY (`gid`) PRIMARY KEY (`gid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Daten für Tabelle `groups`
--
INSERT INTO `groups` (`gid`) VALUES
('admin');
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `group_user` -- Table structure for table `group_user`
-- --
CREATE TABLE IF NOT EXISTS `group_user` ( CREATE TABLE IF NOT EXISTS `group_user` (
@ -65,43 +60,29 @@ CREATE TABLE IF NOT EXISTS `group_user` (
`uid` varchar(64) COLLATE utf8_unicode_ci NOT NULL `uid` varchar(64) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Daten für Tabelle `group_user`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `locks` -- Table structure for table `locks`
-- --
CREATE TABLE IF NOT EXISTS `locks` ( CREATE TABLE IF NOT EXISTS `locks` (
`token` varchar(255) NOT NULL DEFAULT '', `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`path` varchar(200) NOT NULL DEFAULT '', `userid` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`created` int(11) NOT NULL DEFAULT '0', `owner` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`modified` int(11) NOT NULL DEFAULT '0', `timeout` int(10) unsigned DEFAULT NULL,
`expires` int(11) NOT NULL DEFAULT '0', `created` int(11) DEFAULT NULL,
`owner` varchar(200) DEFAULT NULL, `token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`recursive` int(11) DEFAULT '0', `scope` tinyint(4) DEFAULT NULL,
`writelock` int(11) DEFAULT '0', `depth` tinyint(4) DEFAULT NULL,
`exclusivelock` int(11) NOT NULL DEFAULT '0', `uri` text COLLATE utf8_unicode_ci,
PRIMARY KEY (`token`), PRIMARY KEY (`id`)
UNIQUE KEY `token` (`token`), ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
KEY `path` (`path`),
KEY `path_2` (`path`),
KEY `path_3` (`path`,`token`),
KEY `expires` (`expires`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Daten für Tabelle `locks`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `log` -- Table structure for table `log`
-- --
CREATE TABLE IF NOT EXISTS `log` ( CREATE TABLE IF NOT EXISTS `log` (
@ -112,17 +93,12 @@ CREATE TABLE IF NOT EXISTS `log` (
`action` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `action` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`info` text COLLATE utf8_unicode_ci NOT NULL, `info` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3437 ;
--
-- Daten für Tabelle `log`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `preferences` -- Table structure for table `preferences`
-- --
CREATE TABLE IF NOT EXISTS `preferences` ( CREATE TABLE IF NOT EXISTS `preferences` (
@ -132,35 +108,23 @@ CREATE TABLE IF NOT EXISTS `preferences` (
`configvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL `configvalue` varchar(255) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Daten für Tabelle `preferences`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `properties` -- Table structure for table `properties`
-- --
CREATE TABLE IF NOT EXISTS `properties` ( CREATE TABLE IF NOT EXISTS `properties` (
`path` varchar(255) NOT NULL DEFAULT '', `userid` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`name` varchar(120) NOT NULL DEFAULT '', `propertypath` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`ns` varchar(120) NOT NULL DEFAULT 'DAV:', `propertyname` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value` text, `propertyvalue` text COLLATE utf8_unicode_ci NOT NULL
PRIMARY KEY (`path`,`name`,`ns`), ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
KEY `path` (`path`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Daten für Tabelle `properties`
--
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Tabellenstruktur für Tabelle `users` -- Table structure for table `users`
-- --
CREATE TABLE IF NOT EXISTS `users` ( CREATE TABLE IF NOT EXISTS `users` (
@ -168,17 +132,3 @@ CREATE TABLE IF NOT EXISTS `users` (
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`uid`) PRIMARY KEY (`uid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Daten für Tabelle `users`
--
--
-- Table structure for table `foldersize`
--
CREATE TABLE IF NOT EXISTS `foldersize` (
`path` varchar(512) NOT NULL,
`size` int(11) NOT NULL,
PRIMARY KEY (`path`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;