Skip to content

Commit cd57823

Browse files
committed
Fix migration
1 parent 2ab640b commit cd57823

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

install/migrations/update_10.0.x_to_11.0.0/itilfollowuptemplates.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
*/
3434

3535
use Glpi\DBAL\QuerySubQuery;
36+
use Glpi\DBAL\QueryExpression;
3637

3738
/**
3839
* @var \DBmysql $DB
@@ -63,6 +64,7 @@
6364

6465
$DB->insert('glpi_entities_itilfollowuptemplates', new QuerySubQuery([
6566
'SELECT' => [
67+
new QueryExpression('null AS `id`'),
6668
'id as itilfollowuptemplates_id',
6769
'entities_id',
6870
'is_recursive',

install/migrations/update_10.0.x_to_11.0.0/solutiontemplates.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
*/
3434

3535
use Glpi\DBAL\QuerySubQuery;
36+
use Glpi\DBAL\QueryExpression;
3637

3738
/**
3839
* @var \DBmysql $DB
@@ -59,6 +60,7 @@
5960

6061
$DB->insert('glpi_entities_solutiontemplates', new QuerySubQuery([
6162
'SELECT' => [
63+
new QueryExpression('null AS `id`'),
6264
'id as solutiontemplates_id',
6365
'entities_id',
6466
'is_recursive',

install/migrations/update_10.0.x_to_11.0.0/tasktemplates.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
*/
3434

3535
use Glpi\DBAL\QuerySubQuery;
36+
use Glpi\DBAL\QueryExpression;
3637

3738
/**
3839
* @var \DBmysql $DB
@@ -69,6 +70,7 @@
6970

7071
$DB->insert('glpi_entities_tasktemplates', new QuerySubQuery([
7172
'SELECT' => [
73+
new QueryExpression('null AS `id`'),
7274
'id as tasktemplates_id',
7375
'entities_id',
7476
'is_recursive',

0 commit comments

Comments
 (0)