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
5f808ffb
Commit
5f808ffb
authored
Oct 19, 2006
by
Nigel McNie
Committed by
Nigel McNie
Oct 19, 2006
Browse files
Added the password_change field, and some statements to insert a config
option and a default root user.
parent
d18c6d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/db/install.xml
View file @
5f808ffb
...
...
@@ -60,7 +60,8 @@
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
UNSIGNED=
"false"
SEQUENCE=
"true"
ENUM=
"false"
NEXT=
"username"
/>
<FIELD
NAME=
"username"
TYPE=
"char"
LENGTH=
"100"
NOTNULL=
"true"
SEQUENCE=
"false"
ENUM=
"false"
PREVIOUS=
"id"
NEXT=
"password"
/>
<FIELD
NAME=
"password"
TYPE=
"char"
LENGTH=
"40"
NOTNULL=
"true"
SEQUENCE=
"false"
ENUM=
"false"
PREVIOUS=
"username"
NEXT=
"salt"
/>
<FIELD
NAME=
"salt"
TYPE=
"char"
LENGTH=
"8"
NOTNULL=
"true"
SEQUENCE=
"false"
ENUM=
"false"
PREVIOUS=
"password"
/>
<FIELD
NAME=
"salt"
TYPE=
"char"
LENGTH=
"8"
NOTNULL=
"true"
SEQUENCE=
"false"
ENUM=
"false"
PREVIOUS=
"password"
NEXT=
"password_change"
/>
<FIELD
NAME=
"password_change"
TYPE=
"int"
LENGTH=
"1"
NOTNULL=
"true"
UNSIGNED=
"false"
DEFAULT=
"0"
SEQUENCE=
"true"
ENUM=
"false"
PREVIOUS=
"salt"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
COMMENT=
"Primary key for usr"
/>
...
...
@@ -70,4 +71,16 @@
</INDEXES>
</TABLE>
</TABLES>
<STATEMENTS>
<STATEMENT
NAME=
"insert config"
TYPE=
"insert"
TABLE=
"config"
COMMENT=
"Initial insert of records on table config"
NEXT=
"insert root user"
>
<SENTENCES>
<SENTENCE
TEXT=
"(field, value) VALUES ('session_timeout', 1800)"
/>
</SENTENCES>
</STATEMENT>
<STATEMENT
NAME=
"insert root user"
TYPE=
"insert"
TABLE=
"usr"
COMMENT=
"Inserting the root user"
PREVIOUS=
"insert config"
>
<SENTENCES>
<SENTENCE
TEXT=
"(username, password, password_change) VALUES ('root', 'mahara', 1)"
/>
</SENTENCES>
</STATEMENT>
</STATEMENTS>
</XMLDB>
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