Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b2a9cb20
Commit
b2a9cb20
authored
Apr 25, 2007
by
Penny Leach
Browse files
changes to schema to make mahara install on mysql. mostly related to
mysql not wanting to index varying length fields
parent
1a4c340b
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/db/install.xml
View file @
b2a9cb20
...
...
@@ -27,7 +27,7 @@
</TABLE>
<TABLE
NAME=
"artefact_file_file_types"
>
<FIELDS>
<FIELD
NAME=
"description"
TYPE=
"
text
"
LENGTH=
"
small
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"description"
TYPE=
"
char
"
LENGTH=
"
32
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"enabled"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"1"
/>
</FIELDS>
<KEYS>
...
...
@@ -36,8 +36,8 @@
</TABLE>
<TABLE
NAME=
"artefact_file_mime_types"
>
<FIELDS>
<FIELD
NAME=
"mimetype"
TYPE=
"
text
"
LENGTH=
"
small
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"description"
TYPE=
"
text
"
LENGTH=
"
small
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"mimetype"
TYPE=
"
char
"
LENGTH=
"
128
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"description"
TYPE=
"
char
"
LENGTH=
"
32
"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"mimetype"
/>
...
...
htdocs/artefact/internal/db/install.xml
View file @
b2a9cb20
...
...
@@ -20,7 +20,7 @@
<TABLE
NAME=
"artefact_internal_profile_email"
>
<FIELDS>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"email"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"email"
TYPE=
"
char"
LENGTH=
"255
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"verified"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"principal"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
<FIELD
NAME=
"artefact"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
/>
...
...
@@ -36,7 +36,7 @@
<TABLE
NAME=
"artefact_internal_profile_icon"
>
<FIELDS>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"filename"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"filename"
TYPE=
"
char"
LENGTH=
"255
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"primary"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
DEFAULT=
"0"
/>
</FIELDS>
<KEYS>
...
...
htdocs/lib/db/install.xml
View file @
b2a9cb20
...
...
@@ -110,7 +110,8 @@
<FIELD
NAME=
"dayofweek"
TYPE=
"char"
LENGTH=
"25"
NOTNULL=
"true"
DEFAULT=
"*"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"callfunction"
/>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"callfunctionuk"
TYPE=
"unique"
FIELDS=
"callfunction"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"activity_type"
>
...
...
@@ -394,7 +395,7 @@
<TABLE
NAME=
"community"
>
<FIELDS>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"true"
/>
<FIELD
NAME=
"name"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"name"
TYPE=
"
char"
LENGTH=
"128
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"description"
TYPE=
"text"
NOTNULL=
"false"
/>
<FIELD
NAME=
"jointype"
TYPE=
"char"
LENGTH=
"20"
NOTNULL=
"true"
ENUM=
"true"
ENUMVALUES=
"'controlled', 'invite', 'request', 'open'"
DEFAULT=
"open"
/>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
...
...
@@ -488,7 +489,7 @@
<FIELDS>
<FIELD
NAME=
"usr"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"activity"
TYPE=
"char"
LENGTH=
"100"
NOTNULL=
"true"
/>
<FIELD
NAME=
"method"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"method"
TYPE=
"
char"
LENGTH=
"255
"
NOTNULL=
"true"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"usr,activity"
/>
...
...
@@ -564,8 +565,8 @@
</TABLE>
<TABLE
NAME=
"template_category"
>
<FIELDS>
<FIELD
NAME=
"name"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"parent"
TYPE=
"
text
"
NOTNULL=
"false"
/>
<FIELD
NAME=
"name"
TYPE=
"
char"
LENGTh=
"128
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"parent"
TYPE=
"
char"
LENGTH=
"128
"
NOTNULL=
"false"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"name"
/>
...
...
@@ -574,10 +575,10 @@
</TABLE>
<TABLE
NAME=
"template"
>
<FIELDS>
<FIELD
NAME=
"name"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"name"
TYPE=
"
char"
LENGTH=
"128
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"title"
TYPE=
"text"
NOTNULL=
"true"
/>
<FIELD
NAME=
"description"
TYPE=
"text"
NOTNULL=
"false"
/>
<FIELD
NAME=
"category"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"category"
TYPE=
"
char"
LENGTH=
"128
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"ctime"
TYPE=
"datetime"
NOTNULL=
"true"
/>
<FIELD
NAME=
"mtime"
TYPE=
"datetime"
NOTNULL=
"true"
/>
...
...
@@ -598,7 +599,7 @@
<FIELD
NAME=
"description"
TYPE=
"text"
NOTNULL=
"false"
/>
<FIELD
NAME=
"owner"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"ownerformat"
TYPE=
"text"
NOTNULL=
"true"
/>
<FIELD
NAME=
"template"
TYPE=
"
text
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"template"
TYPE=
"
char"
LENGTH=
"128
"
NOTNULL=
"true"
/>
<FIELD
NAME=
"startdate"
TYPE=
"datetime"
/>
<FIELD
NAME=
"stopdate"
TYPE=
"datetime"
/>
<FIELD
NAME=
"ctime"
TYPE=
"datetime"
NOTNULL=
"true"
/>
...
...
@@ -688,7 +689,7 @@
<TABLE
NAME=
"view_access"
>
<FIELDS>
<FIELD
NAME=
"view"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
/>
<FIELD
NAME=
"accesstype"
TYPE=
"char"
LENGTH=
"16"
NOTNULL=
"true"
ENUM=
"true"
ENUMVALUES=
"'public', 'loggedin', 'friends'"
/>
<FIELD
NAME=
"accesstype"
TYPE=
"char"
LENGTH=
"16"
NOTNULL=
"true"
ENUM=
"true"
ENUMVALUES=
"'public', 'loggedin', 'friends'"
DEFAULT=
"public"
/>
<FIELD
NAME=
"startdate"
TYPE=
"datetime"
NOTNULL=
"false"
/>
<FIELD
NAME=
"stopdate"
TYPE=
"datetime"
NOTNULL=
"false"
/>
</FIELDS>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment