Skip to content

Commit 33d2611

Browse files
committed
Keeping date_popup as obsolete dependency
1 parent 2a7d025 commit 33d2611

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"prefer-stable": true,
77
"license": "EUPL-1.2",
88
"require": {
9+
"drupal/date_popup": "^1.1",
910
"drupal/monolog": "^1.3"
1011
}
1112
}

os2web_logging.install

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* Increase requiest_uri field length.
5+
*/
6+
function os2web_logging_update_8801() {
7+
$field_spec = [
8+
'type' => 'varchar',
9+
'length' => '500',
10+
];
11+
\Drupal::database()->schema()->changeField('os2web_logging_access_log','request_uri', 'request_uri', $field_spec);
12+
}
13+
14+
/**
15+
* Disable date_popup module.
16+
*/
17+
function os2web_logging_update_8802() {
18+
\Drupal::service('module_installer')->uninstall(['date_popup']);
19+
}

os2web_logging.module

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,3 @@ function _os2web_logging_send_status_failed_email(array $errors) {
214214
\Drupal::logger('os2web_logging')->warning(t('There was a problem sending email to %email', ['%email' => $siteMail]));
215215
}
216216
}
217-
218-
/**
219-
* Increase requiest_uri field lenght().
220-
*/
221-
function os2web_logging_update_8801() {
222-
$field_spec = [
223-
'type' => 'varchar',
224-
'length' => '500',
225-
];
226-
\Drupal::database()->schema()->changeField('os2web_logging_access_log','request_uri', 'request_uri', $field_spec);
227-
;
228-
}

0 commit comments

Comments
 (0)