Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
our_own_cloud_project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
die_coolen_jungs
our_own_cloud_project
Commits
0fa41e91
Commit
0fa41e91
authored
13 years ago
by
Jakob Sack
Browse files
Options
Downloads
Patches
Plain Diff
Update docs, db scheme
parent
3b92ec12
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
db_structure.xml
+52
-123
52 additions, 123 deletions
db_structure.xml
docs/createtranslation.pl
+0
-29
0 additions, 29 deletions
docs/createtranslation.pl
docs/getstrings.pl
+0
-18
0 additions, 18 deletions
docs/getstrings.pl
docs/owncloud.sql
+39
-89
39 additions, 89 deletions
docs/owncloud.sql
with
91 additions
and
259 deletions
db_structure.xml
+
52
−
123
View file @
0fa41e91
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<type>
text
</type>
<type>
text
</type>
<default></default>
<default></default>
<notnull>
true
</notnull>
<notnull>
true
</notnull>
<length>
12
8
</length>
<length>
5
12
</length>
</field>
</field>
<field>
<field>
...
@@ -64,8 +64,7 @@
...
@@ -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>
...
@@ -136,47 +135,17 @@
...
@@ -136,47 +135,17 @@
<declaration>
<declaration>
<field>
<field>
<name>
token
</name>
<name>
id
</name>
<type>
text
</type>
<default></default>
<notnull>
true
</notnull>
<length>
255
</length>
</field>
<field>
<name>
path
</name>
<type>
text
</type>
<default></default>
<notnull>
true
</notnull>
<length>
200
</length>
</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>
<type>
integer
</type>
<default>
0
</default>
<default>
0
</default>
<notnull>
true
</notnull>
<notnull>
true
</notnull>
<autoincrement>
1
</autoincrement>
<unsigned>
true
</unsigned>
<length>
4
</length>
<length>
4
</length>
</field>
</field>
<field>
<field>
<name>
owner
</name>
<name>
userid
</name>
<type>
text
</type>
<type>
text
</type>
<default></default>
<default></default>
<notnull>
false
</notnull>
<notnull>
false
</notnull>
...
@@ -184,82 +153,59 @@
...
@@ -184,82 +153,59 @@
</field>
</field>
<field>
<field>
<name>
recursive
</name>
<name>
owner
</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>
writelock
</name>
<name>
timeout
</name>
<type>
integer
</type>
<type>
integer
</type>
<default>
0
</default>
<default></default>
<notnull>
false
</notnull>
<notnull>
false
</notnull>
<unsigned>
true
</unsigned>
<length>
4
</length>
<length>
4
</length>
</field>
</field>
<field>
<field>
<name>
exclusivelock
</name>
<name>
created
</name>
<type>
integer
</type>
<type>
integer
</type>
<default>
0
</default>
<default></default>
<notnull>
tru
e
</notnull>
<notnull>
fals
e
</notnull>
<length>
4
</length>
<length>
4
</length>
</field>
</field>
<index>
<name>
locks_path
</name>
<field>
<name>
path
</name>
<sorting>
ascending
</sorting>
</field>
</index>
<index>
<name>
locks_path_2
</name>
<field>
<name>
path
</name>
<sorting>
ascending
</sorting>
</field>
</index>
<index>
<name>
locks_path_3
</name>
<field>
<name>
path
</name>
<sorting>
ascending
</sorting>
</field>
<field>
<field>
<name>
token
</name>
<name>
token
</name>
<sorting>
ascending
</sorting>
<type>
text
</type>
<default></default>
<notnull>
false
</notnull>
<length>
100
</length>
</field>
</field>
</index>
<index>
<name>
locks_expires
</name>
<field>
<field>
<name>
expires
</name>
<name>
scope
</name>
<sorting>
ascending
</sorting>
<type>
integer
</type>
<default></default>
<notnull>
false
</notnull>
<length>
1
</length>
</field>
</field>
</index>
<index>
<name>
locks_pKey
</name>
<primary>
true
</primary>
<field>
<field>
<name>
token
</name>
<name>
depth
</name>
<sorting>
ascending
</sorting>
<type>
integer
</type>
<default></default>
<notnull>
false
</notnull>
<length>
1
</length>
</field>
</field>
</index>
<index>
<name>
locks_token
</name>
<unique>
true
</unique>
<field>
<field>
<name>
token
</name>
<name>
uri
</name>
<sorting>
ascending
</sorting>
<type>
clob
</type>
<notnull>
false
</notnull>
</field>
</field>
</index>
</declaration>
</declaration>
...
@@ -371,51 +317,34 @@
...
@@ -371,51 +317,34 @@
<declaration>
<declaration>
<field>
<field>
<name>
path
</name>
<name>
userid
</name>
<type>
text
</type>
<type>
text
</type>
<default></default>
<default></default>
<notnull>
true
</notnull>
<notnull>
true
</notnull>
<length>
2
55
</length>
<length>
2
00
</length>
</field>
</field>
<field>
<field>
<name>
name
</name>
<name>
propertypath
</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>
propertyname
</name>
<type>
text
</type>
<type>
text
</type>
<default>
DAV:
</default>
<default></default>
<notnull>
true
</notnull>
<notnull>
true
</notnull>
<length>
120
</length>
<length>
255
</length>
</field>
</field>
<field>
<field>
<name>
value
</name>
<name>
property
value
</name>
<type>
clob
</type>
<type>
clob
</type>
<notnull>
false
</notnull>
<notnull>
true
</notnull>
</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>
</field>
</index>
</declaration>
</declaration>
...
...
This diff is collapsed.
Click to expand it.
docs/createtranslation.pl
deleted
100644 → 0
+
0
−
29
View file @
3b92ec12
#!/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
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/getstrings.pl
deleted
100644 → 0
+
0
−
18
View file @
3b92ec12
#!/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
`
}
This diff is collapsed.
Click to expand it.
docs/owncloud.sql
+
39
−
89
View file @
0fa41e91
-- phpMyAdmin SQL Dump
-- phpMyAdmin SQL Dump
-- version 3.3.
7
deb
5
-- version 3.
4.
3.
1
deb
1
-- 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
V
ersion: 5.1.
49
-- Server
v
ersion: 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 */
;
--
--
-- Dat
enbank
: `owncloud`
-- Dat
abase
: `owncloud`
--
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `appconfig`
-- Table
stru
c
tur
e
f
o
r
t
able `appconfig`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`appconfig`
(
CREATE
TABLE
IF
NOT
EXISTS
`appconfig`
(
...
@@ -31,15 +26,22 @@ 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
T
ab
el
le `
appconfig
`
--
Table structure
f
o
r
t
able `
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
;
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `groups`
-- Table
stru
c
tur
e
f
o
r
t
able `groups`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`groups`
(
CREATE
TABLE
IF
NOT
EXISTS
`groups`
(
...
@@ -47,17 +49,10 @@ 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'
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `group_user`
-- Table
stru
c
tur
e
f
o
r
t
able `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` (
...
@@ -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`
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `locks`
-- Table
stru
c
tur
e
f
o
r
t
able `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`
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `log`
-- Table
stru
c
tur
e
f
o
r
t
able `log`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`log`
(
CREATE
TABLE
IF
NOT
EXISTS
`log`
(
...
@@ -112,17 +93,12 @@ 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`
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `preferences`
-- Table
stru
c
tur
e
f
o
r
t
able `preferences`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`preferences`
(
CREATE
TABLE
IF
NOT
EXISTS
`preferences`
(
...
@@ -132,35 +108,23 @@ 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`
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `properties`
-- Table
stru
c
tur
e
f
o
r
t
able `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`
--
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
-- Tab
el
le
n
stru
k
tur f
ü
r
T
ab
el
le `users`
-- Table
stru
c
tur
e
f
o
r
t
able `users`
--
--
CREATE
TABLE
IF
NOT
EXISTS
`users`
(
CREATE
TABLE
IF
NOT
EXISTS
`users`
(
...
@@ -168,17 +132,3 @@ 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
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment