mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
Added JS template field for JavaScript if needed
This commit is contained in:
parent
f9e2f481df
commit
8ac4971405
7 changed files with 22 additions and 9 deletions
|
@ -67,6 +67,11 @@ function data_upgrade($oldversion) {
|
|||
if ($oldversion < 2006052400) {
|
||||
table_column('data','','rsstitletemplate','text','','','','not null','rsstemplate');
|
||||
}
|
||||
|
||||
if ($oldversion < 2006081700) {
|
||||
table_column('data', '', 'jstemplate', 'text', '', '', '', 'not null', 'csstemplate');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ CREATE TABLE prefix_data (
|
|||
rsstemplate text NOT NULL default '',
|
||||
rsstitletemplate text NOT NULL default '',
|
||||
csstemplate text NOT NULL default '',
|
||||
jstemplate text NOT NULL default '',
|
||||
approval tinyint(4) unsigned NOT NULL default '0',
|
||||
scale int(10) NOT NULL default '0',
|
||||
assessed int(10) unsigned NOT NULL default '0',
|
||||
|
|
|
@ -151,6 +151,10 @@ function data_upgrade($oldversion) {
|
|||
if ($oldversion < 2006052400) {
|
||||
table_column('data','','rsstitletemplate','text','','','','not null','rsstemplate');
|
||||
}
|
||||
|
||||
if ($oldversion < 2006081700) {
|
||||
table_column('data', '', 'jstemplate', 'text', '', '', '', 'not null', 'csstemplate');
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ CREATE TABLE prefix_data (
|
|||
rsstemplate text NOT NULL default '',
|
||||
rsstitletemplate text NOT NULL default '',
|
||||
csstemplate text NOT NULL default '',
|
||||
jstemplate text NOT NULL default '',
|
||||
approval integer NOT NULL default '0',
|
||||
scale integer NOT NULL default '0',
|
||||
assessed integer NOT NULL default '0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue