Commit 5f808ffb authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Added the password_change field, and some statements to insert a config

option and a default root user.
parent d18c6d5c
......@@ -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"/>
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for usr"/>
......@@ -70,4 +71,16 @@
<STATEMENT NAME="insert config" TYPE="insert" TABLE="config" COMMENT="Initial insert of records on table config" NEXT="insert root user">
<SENTENCE TEXT="(field, value) VALUES ('session_timeout', 1800)" />
<STATEMENT NAME="insert root user" TYPE="insert" TABLE="usr" COMMENT="Inserting the root user" PREVIOUS="insert config">
<SENTENCE TEXT="(username, password, password_change) VALUES ('root', 'mahara', 1)"/>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment