summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/system/system.install
diff options
context:
space:
mode:
authorcatch <6915-catch@users.noreply.drupalcode.org>2025-04-29 16:16:53 +0100
committercatch <6915-catch@users.noreply.drupalcode.org>2025-04-29 16:16:53 +0100
commitfaeda6e68a20b54159697861dafbc6d6e334c16a (patch)
treeaea28ac29bf46fb90778fba46d082c62ec61fe06 /core/modules/system/system.install
parent3cc2b8950f88685aac6bfa9da93c6a5398705598 (diff)
downloaddrupal-faeda6e68a20b54159697861dafbc6d6e334c16a.tar.gz
drupal-faeda6e68a20b54159697861dafbc6d6e334c16a.zip
Issue #2905007 by mondrake, mile23, alexpott, Mixologic, dww, dawehner: Allow run-tests.sh to report skipped/incomplete PHPUnit tests
Diffstat (limited to 'core/modules/system/system.install')
-rw-r--r--core/modules/system/system.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index f91255f2f1c4..35e682600b89 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -1670,6 +1670,21 @@ function system_update_last_removed(): int {
}
/**
+ * Add a [time] column to the {simpletest} table, if existing.
+ */
+function system_update_11200(): void {
+ $schema = \Drupal::database()->schema();
+ if ($schema->tableExists('simpletest') && !$schema->fieldExists('simpletest', 'time')) {
+ $schema->addField('simpletest', 'time', [
+ 'type' => 'float',
+ 'not null' => TRUE,
+ 'default' => 0,
+ 'description' => 'Time elapsed for the execution of the test.',
+ ]);
+ }
+}
+
+/**
* Display requirements from security advisories.
*
* @param array[] $requirements