Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

First pass. Deleting some default comments. MDL-11385

(plus minor change in NOT NULL default, must not be explicit)
  • Loading branch information...
commit dfb3876a0991ea72a3ba6c7801564a3f066ed644 1 parent 7bf645e
Eloy Lafuente authored
Showing with 7 additions and 7 deletions.
  1. +5 −5 db/install.xml
  2. +2 −2 db/upgrade.php
View
10 db/install.xml
@@ -6,7 +6,7 @@
<TABLES>
<TABLE NAME="book" COMMENT="Defines book" NEXT="book_chapters">
<FIELDS>
- <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" COMMENT="id of the table, please edit me" NEXT="course"/>
+ <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true" ENUM="false" NEXT="course"/>
<FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="id" NEXT="name"/>
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="course" NEXT="summary"/>
<FIELD NAME="summary" TYPE="text" LENGTH="medium" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="name" NEXT="numbering"/>
@@ -22,7 +22,7 @@
</TABLE>
<TABLE NAME="book_chapters" COMMENT="Defines book_chapters" PREVIOUS="book">
<FIELDS>
- <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" SEQUENCE="true" ENUM="false" COMMENT="id of the table, please edit me" NEXT="bookid"/>
+ <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" SEQUENCE="true" ENUM="false" NEXT="bookid"/>
<FIELD NAME="bookid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="id" NEXT="pagenum"/>
<FIELD NAME="pagenum" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="bookid" NEXT="subchapter"/>
<FIELD NAME="subchapter" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="pagenum" NEXT="title"/>
@@ -31,10 +31,10 @@
<FIELD NAME="hidden" TYPE="int" LENGTH="2" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="content" NEXT="timecreated"/>
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="hidden" NEXT="timemodified"/>
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" ENUM="false" PREVIOUS="timecreated" NEXT="importsrc"/>
- <FIELD NAME="importsrc" TYPE="char" LENGTH="255" NOTNULL="true" DEFAULT="" SEQUENCE="false" ENUM="false" PREVIOUS="timemodified"/>
+ <FIELD NAME="importsrc" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="timemodified"/>
</FIELDS>
<KEYS>
- <KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="primary key of the table, please edit me"/>
+ <KEY NAME="primary" TYPE="primary" FIELDS="id" />
</KEYS>
</TABLE>
</TABLES>
@@ -48,4 +48,4 @@
</SENTENCES>
</STATEMENT>
</STATEMENTS>
-</XMLDB>
+</XMLDB>
View
4 db/upgrade.php
@@ -1,4 +1,4 @@
-<?php //$Id: upgrade.php,v 1.3 2007/09/24 08:47:34 skodak Exp $
+<?php //$Id: upgrade.php,v 1.4 2007/09/24 19:15:39 stronk7 Exp $
// This file keeps track of upgrades to
// the assignment module
@@ -33,7 +33,7 @@ function xmldb_book_upgrade($oldversion=0) {
/// Changing type of field importsrc on table book_chapters to char
$table = new XMLDBTable('book_chapters');
$field = new XMLDBField('importsrc');
- $field->setAttributes(XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, null, '', 'timemodified');
+ $field->setAttributes(XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, null, null, 'timemodified');
/// Launch change of type for field importsrc
$result = $result && change_field_type($table, $field);
Please sign in to comment.
Something went wrong with that request. Please try again.