🇫🇷France @mayeulk

Account created on 28 September 2024, 4 months ago
#

Recent comments

🇫🇷France mayeulk

Install TCPDF

🇫🇷France mayeulk

I second the suggestion to include a comparison of these. In particular, is one of them working better with Drupal webforms?

🇫🇷France mayeulk

Hi. Apparently I'm facing this bug with:
$ drush st
Drupal version : 10.3.7
DB driver : pgsql
PHP OS : Linux (Docker container)
PHP version : 8.3.11
Drush version : 13.3.2.0

I had to uninstall markdown module (which was not working anyway), through the admin GUI then with :
composer remove drupal/markdown
composer remove league/commonmark:^1
drush cache:rebuild

Is there a way that I can get both drush and markdown working?

🇫🇷France mayeulk

Hi. I needed a short code to get all submissions, as a text-based backup (to be able to verify that submissions are correctly saved). I do this, with PostgreSQL:

pg_dump --dbname=postgresql://postgres@127.0.0.1:5432/postgres > /home/myself/backup/drupal_pg_backup.sql

cat drupal_pg_backup.sql | grep ^my_second_webform_survey > results.csv

where 'my_second_webform_survey' is the URL name of the survey I need.

If you do not need the full sql backup, this works too:
pg_dump --dbname=postgresql://postgres@127.0.0.1:5432/postgres | grep ^my_second_webform_survey > results.csv

This gives the content of the public.webform_submission_data table (note there are other webform tables)
The headers are:
webform_id;sid;name;property;delta;value
Similarly, you could get some of the other tables; for instance, the public.webform_submission table has these fields:
sid,webform_id,uuid,langcode,serial,"token",uri,created,completed,changed,in_draft,current_page,remote_addr,uid,entity_type,entity_id,"locked",sticky,notes

Production build 0.71.5 2024