@@ -324,5 +324,29 @@ function xmldb_theme_boost_union_upgrade($oldversion) {
324
324
upgrade_plugin_savepoint (true , 2023102027 , 'theme ' , 'boost_union ' );
325
325
}
326
326
327
+ if ($ oldversion < 2024060101 ) {
328
+ // Define table theme_boost_union_snippets to be created.
329
+ $ table = new xmldb_table ('theme_boost_union_snippets ' );
330
+
331
+ // Adding fields to table theme_boost_union_snippets.
332
+ $ table ->add_field ('id ' , XMLDB_TYPE_INTEGER , '10 ' , null , XMLDB_NOTNULL , XMLDB_SEQUENCE , null );
333
+ $ table ->add_field ('sortorder ' , XMLDB_TYPE_INTEGER , '18 ' , null , null , null , null );
334
+ $ table ->add_field ('source ' , XMLDB_TYPE_CHAR , '255 ' , null , null , null , 'theme_boost_union ' );
335
+ $ table ->add_field ('domain ' , XMLDB_TYPE_CHAR , '255 ' , null , null , null , '' );
336
+ $ table ->add_field ('key ' , XMLDB_TYPE_CHAR , '255 ' , null , null , null , null );
337
+ $ table ->add_field ('enabled ' , XMLDB_TYPE_INTEGER , '1 ' , null , XMLDB_NOTNULL , null , '0 ' );
338
+
339
+ // Adding keys to table theme_boost_union_snippets.
340
+ $ table ->add_key ('primary ' , XMLDB_KEY_PRIMARY , ['id ' ]);
341
+
342
+ // Conditionally launch create table for theme_boost_union_snippets.
343
+ if (!$ dbman ->table_exists ($ table )) {
344
+ $ dbman ->create_table ($ table );
345
+ }
346
+
347
+ // Boost_union savepoint reached.
348
+ upgrade_plugin_savepoint (true , 2024060101 , 'theme ' , 'boost_union ' );
349
+ }
350
+
327
351
return true ;
328
352
}
0 commit comments