mirror of
https://github.com/moodle/moodle.git
synced 2025-02-26 04:52:33 +01:00
Added default values to migrate2utf8.xml, for any varchar and text field types, if the default values for these fields were not defined as '' in the MySQL table creation script. Committed by vyshane
60 lines
1.9 KiB
SQL
Executable File
60 lines
1.9 KiB
SQL
Executable File
# phpMyAdmin MySQL-Dump
|
|
# version 2.2.1
|
|
# http://phpwizard.net/phpMyAdmin/
|
|
# http://phpmyadmin.sourceforge.net/ (download page)
|
|
#
|
|
# Host: localhost
|
|
# Generation Time: Nov 14, 2001 at 04:44 PM
|
|
# Server version: 3.23.36
|
|
# PHP Version: 4.0.6
|
|
# Database : `moodle`
|
|
# --------------------------------------------------------
|
|
|
|
#
|
|
# Table structure for table `journal`
|
|
#
|
|
|
|
CREATE TABLE prefix_journal (
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
course int(10) unsigned NOT NULL default '0',
|
|
name varchar(255) default NULL,
|
|
intro text default '',
|
|
introformat tinyint(2) NOT NULL default '0',
|
|
days smallint(5) unsigned NOT NULL default '7',
|
|
assessed int(10) NOT NULL default '0',
|
|
timemodified int(10) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (id),
|
|
KEY course (course)
|
|
) TYPE=MyISAM;
|
|
# --------------------------------------------------------
|
|
|
|
#
|
|
# Table structure for table `journal_entries`
|
|
#
|
|
|
|
CREATE TABLE prefix_journal_entries (
|
|
id int(10) unsigned NOT NULL auto_increment,
|
|
journal int(10) unsigned NOT NULL default '0',
|
|
userid int(10) unsigned NOT NULL default '0',
|
|
modified int(10) unsigned NOT NULL default '0',
|
|
text text NOT NULL default '',
|
|
format tinyint(2) NOT NULL default '0',
|
|
rating int(10) default '0',
|
|
comment text default '',
|
|
teacher int(10) unsigned NOT NULL default '0',
|
|
timemarked int(10) unsigned NOT NULL default '0',
|
|
mailed int(1) unsigned NOT NULL default '0',
|
|
PRIMARY KEY (id),
|
|
KEY journal (journal),
|
|
KEY userid (userid)
|
|
) TYPE=MyISAM COMMENT='All the journal entries of all people';
|
|
|
|
#
|
|
# Dumping data for table `log_display`
|
|
#
|
|
|
|
INSERT INTO prefix_log_display VALUES ('journal', 'view', 'journal', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('journal', 'add entry', 'journal', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('journal', 'update entry', 'journal', 'name');
|
|
INSERT INTO prefix_log_display VALUES ('journal', 'view responses', 'journal', 'name');
|