Timeline for How can I use "drush updb" to pass a value to the hook_update_N() implementation done from a module?
Current License: CC BY-SA 4.0
23 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 21, 2022 at 12:28 | history | reopened |
mradcliffe avpaderno♦ |
||
Jul 16, 2022 at 20:05 | vote | accept | Mykola | ||
S Jul 15, 2022 at 10:44 | review | Reopen votes | |||
Jul 21, 2022 at 12:28 | |||||
S Jul 15, 2022 at 10:44 | history | edited | avpaderno♦ | CC BY-SA 4.0 |
used a more correct terminology
Added to review
|
Jun 25, 2022 at 1:22 | comment | added | leymannx | But with an env var, maybe... 🤔 | |
Jun 25, 2022 at 1:21 | history | closed |
Kevin Hudri leymannx |
Needs details or clarity | |
Jun 25, 2022 at 1:02 | comment | added | leymannx | Updb is the wrong direction. Create your own custom Drush command. | |
Jun 24, 2022 at 18:21 | answer | added | avpaderno♦ | timeline score: 1 | |
Jun 24, 2022 at 17:58 | comment | added | avpaderno♦ |
It's also not possible because drush updb doesn't accept such parameter; it only accepts four options.
|
|
Jun 24, 2022 at 17:31 | comment | added | mona lisa | Agreed. As written, this is impossible. | |
Jun 24, 2022 at 17:12 | review | Close votes | |||
Jun 24, 2022 at 18:36 | |||||
Jun 24, 2022 at 16:55 | history | edited | Mykola | CC BY-SA 4.0 |
added 13 characters in body
|
Jun 24, 2022 at 16:53 | comment | added | Kevin | Update hooks take $sandbox argument which contains information about the running batch. api.drupal.org/api/drupal/… - i.e. not a callable function you can invoke whenever, and will only run once. updb is not for this type of data manipulation. You need to write an actual Drush command that accepts arguments to build this out. | |
Jun 24, 2022 at 16:52 | history | edited | Mykola | CC BY-SA 4.0 |
edited title
|
Jun 24, 2022 at 16:51 | history | edited | Mykola | CC BY-SA 4.0 |
added 21 characters in body
|
Jun 24, 2022 at 16:50 | history | edited | Mykola | CC BY-SA 4.0 |
deleted 2 characters in body
|
Jun 24, 2022 at 16:48 | history | edited | Mykola | CC BY-SA 4.0 |
edited title
|
Jun 24, 2022 at 16:46 | history | edited | Mykola | CC BY-SA 4.0 |
added 15 characters in body
|
Jun 24, 2022 at 16:45 | history | edited | Mykola | CC BY-SA 4.0 |
added 75 characters in body; edited title
|
Jun 24, 2022 at 16:35 | comment | added | Jaypan | Not really clear what you're trying to do/want to do. | |
Jun 24, 2022 at 16:29 | history | edited | Mykola | CC BY-SA 4.0 |
edited body
|
S Jun 24, 2022 at 16:29 | review | First questions | |||
Jun 25, 2022 at 1:25 | |||||
S Jun 24, 2022 at 16:29 | history | asked | Mykola | CC BY-SA 4.0 |