Merge branch 'MDL-82627-main-phpunit' of https://github.com/HuongNV13/moodle
This commit is contained in:
+5
-5
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<XMLDB PATH="lib/db" VERSION="20240911" COMMENT="XMLDB file for core Moodle tables"
|
||||
<XMLDB PATH="lib/db" VERSION="20240912" COMMENT="XMLDB file for core Moodle tables"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="../../lib/xmldb/xmldb.xsd"
|
||||
>
|
||||
@@ -4874,12 +4874,12 @@
|
||||
<TABLE NAME="ai_action_generate_image" COMMENT="Stores specific data about generate image actions">
|
||||
<FIELDS>
|
||||
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
||||
<FIELD NAME="prompt" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="The text from the user that was used to generate the image"/>
|
||||
<FIELD NAME="prompt" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The text from the user that was used to generate the image"/>
|
||||
<FIELD NAME="numberimages" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="The number of images requested to be generated"/>
|
||||
<FIELD NAME="quality" TYPE="char" LENGTH="21" NOTNULL="true" SEQUENCE="false" COMMENT="The quality of the image, e.g. hd."/>
|
||||
<FIELD NAME="aspectratio" TYPE="char" LENGTH="20" NOTNULL="false" SEQUENCE="false" COMMENT="The aspect ratio of the generate image, e.g landscape"/>
|
||||
<FIELD NAME="style" TYPE="char" LENGTH="20" NOTNULL="false" SEQUENCE="false" COMMENT="The style of the image, e.g. vivid"/>
|
||||
<FIELD NAME="sourceurl" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="URL of the generated response."/>
|
||||
<FIELD NAME="sourceurl" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="URL of the generated response."/>
|
||||
<FIELD NAME="revisedprompt" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The actual prompt the AI used to generate the image"/>
|
||||
</FIELDS>
|
||||
<KEYS>
|
||||
@@ -4912,7 +4912,7 @@
|
||||
<TABLE NAME="ai_action_generate_text" COMMENT="Stores specific data about generate text actions.">
|
||||
<FIELDS>
|
||||
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
||||
<FIELD NAME="prompt" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="The text from the user that was used to generate the text response"/>
|
||||
<FIELD NAME="prompt" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The text from the user that was used to generate the text response"/>
|
||||
<FIELD NAME="responseid" TYPE="char" LENGTH="128" NOTNULL="false" SEQUENCE="false" COMMENT="A unique identifier for the chat completion, returned by the AI."/>
|
||||
<FIELD NAME="fingerprint" TYPE="char" LENGTH="128" NOTNULL="false" SEQUENCE="false" COMMENT="This fingerprint represents the backend configuration that the model runs with."/>
|
||||
<FIELD NAME="generatedcontent" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The contents of the generated message."/>
|
||||
@@ -4927,7 +4927,7 @@
|
||||
<TABLE NAME="ai_action_summarise_text" COMMENT="Stores specific data about summarise text actions.">
|
||||
<FIELDS>
|
||||
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
||||
<FIELD NAME="prompt" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="The text from the user that was used to generate the text response"/>
|
||||
<FIELD NAME="prompt" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The text from the user that was used to generate the text response"/>
|
||||
<FIELD NAME="responseid" TYPE="char" LENGTH="128" NOTNULL="false" SEQUENCE="false" COMMENT="A unique identifier for the chat completion, returned by the AI."/>
|
||||
<FIELD NAME="fingerprint" TYPE="char" LENGTH="128" NOTNULL="false" SEQUENCE="false" COMMENT="This fingerprint represents the backend configuration that the model runs with."/>
|
||||
<FIELD NAME="generatedcontent" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The contents of the generated message."/>
|
||||
|
||||
+4
-4
@@ -1274,12 +1274,12 @@ function xmldb_main_upgrade($oldversion) {
|
||||
|
||||
// Adding fields to table ai_action_generate_image.
|
||||
$table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
|
||||
$table->add_field('prompt', XMLDB_TYPE_TEXT, null, null, XMLDB_NOTNULL, null, null);
|
||||
$table->add_field('prompt', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
$table->add_field('numberimages', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, null);
|
||||
$table->add_field('quality', XMLDB_TYPE_CHAR, '21', null, XMLDB_NOTNULL, null, null);
|
||||
$table->add_field('aspectratio', XMLDB_TYPE_CHAR, '20', null, null, null, null);
|
||||
$table->add_field('style', XMLDB_TYPE_CHAR, '20', null, null, null, null);
|
||||
$table->add_field('sourceurl', XMLDB_TYPE_TEXT, null, null, XMLDB_NOTNULL, null, null);
|
||||
$table->add_field('sourceurl', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
$table->add_field('revisedprompt', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
|
||||
// Adding keys to table ai_action_generate_image.
|
||||
@@ -1324,7 +1324,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
|
||||
// Adding fields to table ai_action_generate_text.
|
||||
$table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
|
||||
$table->add_field('prompt', XMLDB_TYPE_TEXT, null, null, XMLDB_NOTNULL, null, null);
|
||||
$table->add_field('prompt', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
$table->add_field('responseid', XMLDB_TYPE_CHAR, '128', null, null, null, null);
|
||||
$table->add_field('fingerprint', XMLDB_TYPE_CHAR, '128', null, null, null, null);
|
||||
$table->add_field('generatedcontent', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
@@ -1345,7 +1345,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
|
||||
// Adding fields to table ai_action_summarise_text.
|
||||
$table->add_field('id', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, XMLDB_SEQUENCE, null);
|
||||
$table->add_field('prompt', XMLDB_TYPE_TEXT, null, null, XMLDB_NOTNULL, null, null);
|
||||
$table->add_field('prompt', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
$table->add_field('responseid', XMLDB_TYPE_CHAR, '128', null, null, null, null);
|
||||
$table->add_field('fingerprint', XMLDB_TYPE_CHAR, '128', null, null, null, null);
|
||||
$table->add_field('generatedcontent', XMLDB_TYPE_TEXT, null, null, null, null, null);
|
||||
|
||||
Reference in New Issue
Block a user