mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
convertion to unicode data_content -> content(1 to 4)
This commit is contained in:
parent
0bcf4732fa
commit
25dbd2ff64
@ -27,6 +27,78 @@
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_COURSE>
|
||||
</FIELD>
|
||||
<FIELD name="content1" method="PLAIN_SQL_UPDATE" type="longtext" length="0">
|
||||
<SQL_DETECT_USER>
|
||||
SELECT dr.userid
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_USER>
|
||||
<SQL_DETECT_COURSE>
|
||||
SELECT d.course
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data d,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE d.id = dr.dataid
|
||||
AND dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_COURSE>
|
||||
</FIELD>
|
||||
<FIELD name="content2" method="PLAIN_SQL_UPDATE" type="longtext" length="0">
|
||||
<SQL_DETECT_USER>
|
||||
SELECT dr.userid
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_USER>
|
||||
<SQL_DETECT_COURSE>
|
||||
SELECT d.course
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data d,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE d.id = dr.dataid
|
||||
AND dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_COURSE>
|
||||
</FIELD>
|
||||
<FIELD name="content3" method="PLAIN_SQL_UPDATE" type="longtext" length="0">
|
||||
<SQL_DETECT_USER>
|
||||
SELECT dr.userid
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_USER>
|
||||
<SQL_DETECT_COURSE>
|
||||
SELECT d.course
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data d,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE d.id = dr.dataid
|
||||
AND dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_COURSE>
|
||||
</FIELD>
|
||||
<FIELD name="content4" method="PLAIN_SQL_UPDATE" type="longtext" length="0">
|
||||
<SQL_DETECT_USER>
|
||||
SELECT dr.userid
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_USER>
|
||||
<SQL_DETECT_COURSE>
|
||||
SELECT d.course
|
||||
FROM {$CFG->prefix}data_records dr,
|
||||
{$CFG->prefix}data d,
|
||||
{$CFG->prefix}data_content dc
|
||||
WHERE d.id = dr.dataid
|
||||
AND dr.id = dc.recordid
|
||||
AND dc.id = RECORDID
|
||||
</SQL_DETECT_COURSE>
|
||||
</FIELD>
|
||||
</FIELDS>
|
||||
</TABLE>
|
||||
<TABLE name="data_fields">
|
||||
|
Loading…
x
Reference in New Issue
Block a user