Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iena-course-format
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iena
iena-course-format
Commits
718a2b86
Commit
718a2b86
authored
8 months ago
by
DELARUELLE Myriam
Browse files
Options
Downloads
Patches
Plain Diff
force db update
parent
e2444b06
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
db/install.xml
+1
-1
1 addition, 1 deletion
db/install.xml
db/upgrade.php
+18
-14
18 additions, 14 deletions
db/upgrade.php
suivi_edit.php
+1
-1
1 addition, 1 deletion
suivi_edit.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
21 additions
and
17 deletions
db/install.xml
+
1
−
1
View file @
718a2b86
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB
PATH=
"course/format/iena/db"
VERSION=
"202401
31
"
COMMENT=
"XMLDB file for Moodle course/format/iena"
<XMLDB
PATH=
"course/format/iena/db"
VERSION=
"2024
1
01
8
"
COMMENT=
"XMLDB file for Moodle course/format/iena"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"../../../../lib/xmldb/xmldb.xsd"
xsi:noNamespaceSchemaLocation=
"../../../../lib/xmldb/xmldb.xsd"
>
>
...
...
This diff is collapsed.
Click to expand it.
db/upgrade.php
+
18
−
14
View file @
718a2b86
...
@@ -93,28 +93,32 @@ function xmldb_format_iena_upgrade($oldversion) {
...
@@ -93,28 +93,32 @@ function xmldb_format_iena_upgrade($oldversion) {
// Format_iena savepoint reached.
// Format_iena savepoint reached.
upgrade_plugin_savepoint
(
true
,
2021070600
,
'format'
,
'iena'
);
upgrade_plugin_savepoint
(
true
,
2021070600
,
'format'
,
'iena'
);
}
}
if
(
$oldversion
<
202401
2
50
0
)
{
if
(
$oldversion
<
2024
1
0150
5
)
{
error_log
(
"on passe dans l'ancienne version"
);
// Define field id to be added to format_iena.
// Define field id to be added to format_iena.
$table
=
new
xmldb_table
(
'format_iena_options'
);
$table
2
=
new
xmldb_table
(
'format_iena_options'
);
$table
->
add_field
(
'id'
,
XMLDB_TYPE_INTEGER
,
'10'
,
null
,
XMLDB_NOTNULL
,
XMLDB_SEQUENCE
,
null
,
null
);
$table
2
->
add_field
(
'id'
,
XMLDB_TYPE_INTEGER
,
'10'
,
null
,
XMLDB_NOTNULL
,
XMLDB_SEQUENCE
,
null
,
null
);
$table
->
add_field
(
'optionname'
,
XMLDB_TYPE_CHAR
,
'
1
0'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'id'
);
$table
2
->
add_field
(
'optionname'
,
XMLDB_TYPE_CHAR
,
'
2
0'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'id'
);
$table
->
add_field
(
'optionvalue'
,
XMLDB_TYPE_INTEGER
,
'1'
,
null
,
null
,
null
,
null
,
'optionname'
);
$table
2
->
add_field
(
'optionvalue'
,
XMLDB_TYPE_INTEGER
,
'1'
,
null
,
null
,
null
,
null
,
'optionname'
);
$table
->
add_field
(
'courseid'
,
XMLDB_TYPE_INTEGER
,
'8'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'optionvalue'
);
$table
2
->
add_field
(
'courseid'
,
XMLDB_TYPE_INTEGER
,
'8'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'optionvalue'
);
$table
->
add_field
(
'userid'
,
XMLDB_TYPE_INTEGER
,
'8'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'courseid'
);
$table
2
->
add_field
(
'userid'
,
XMLDB_TYPE_INTEGER
,
'8'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'courseid'
);
$table
->
add_field
(
'timecreated'
,
XMLDB_TYPE_INTEGER
,
'16'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'userid'
);
$table
2
->
add_field
(
'timecreated'
,
XMLDB_TYPE_INTEGER
,
'16'
,
null
,
XMLDB_NOTNULL
,
null
,
null
,
'userid'
);
$table
->
add_field
(
'timemodified'
,
XMLDB_TYPE_INTEGER
,
'16'
,
null
,
null
,
null
,
null
,
'timecreated'
);
$table
2
->
add_field
(
'timemodified'
,
XMLDB_TYPE_INTEGER
,
'16'
,
null
,
null
,
null
,
null
,
'timecreated'
);
$table
->
add_key
(
'primary'
,
XMLDB_KEY_PRIMARY
,
[
'id'
]);
$table
2
->
add_key
(
'primary'
,
XMLDB_KEY_PRIMARY
,
[
'id'
]);
// Conditionally launch add field id.
// Conditionally launch add field id.
if
(
!
$dbman
->
table_exists
(
$table
))
{
if
(
!
$dbman
->
table_exists
(
$table2
))
{
$dbman
->
create_table
(
$table
);
error_log
(
"on ajoute la table"
);
$dbman
->
create_table
(
$table2
);
}
else
{
error_log
(
"la table existe"
);
}
}
// Iena savepoint reached.
// Iena savepoint reached.
upgrade_plugin_savepoint
(
true
,
202401
2
50
0
,
'format'
,
'iena'
);
upgrade_plugin_savepoint
(
true
,
2024
1
0150
5
,
'format'
,
'iena'
);
}
}
return
$result
;
return
$result
;
...
...
This diff is collapsed.
Click to expand it.
suivi_edit.php
+
1
−
1
View file @
718a2b86
...
@@ -29,7 +29,7 @@ define('NO_OUTPUT_BUFFERING', true);
...
@@ -29,7 +29,7 @@ define('NO_OUTPUT_BUFFERING', true);
require_once
(
'../../../config.php'
);
require_once
(
'../../../config.php'
);
require_once
(
$CFG
->
dirroot
.
'
\
course
\
format
\
iena
\
classes
\
form
\
edittable_form.php'
);
require_once
(
$CFG
->
dirroot
.
'
/
course
/
format
/
iena
/
classes
/
form
/
edittable_form.php'
);
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
718a2b86
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
defined
(
'MOODLE_INTERNAL'
)
||
die
();
defined
(
'MOODLE_INTERNAL'
)
||
die
();
$plugin
->
version
=
202410150
0
;
$plugin
->
version
=
202410150
4
;
$plugin
->
requires
=
2014111000
;
$plugin
->
requires
=
2014111000
;
$plugin
->
component
=
'format_iena'
;
$plugin
->
component
=
'format_iena'
;
$plugin
->
release
=
"1.0"
;
$plugin
->
release
=
"1.0"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment