Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit 9e09d45

Browse files
committed
Merge pull request #2252 from angaither/null-out-fake-birthdays
Added script to null out default birthday
2 parents 74bc1c9 + 208d526 commit 9e09d45

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

scripts/null-fake-birthdays.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
/*
3+
* Script to null out birthdays that are set to 1969-12-31 00:00:00.
4+
*
5+
* drush --script-path=../scripts php-script null-fake-birthdays.php
6+
*
7+
*/
8+
9+
echo "Updating filler birthdays \n";
10+
11+
db_update('field_data_field_birthdate')
12+
->fields(array(
13+
'field_birthdate_value' => NULL
14+
))
15+
->condition('field_birthdate_value', '1969-12-31 00:00:00')
16+
->execute();
17+
18+
echo "Finished \n";

0 commit comments

Comments
 (0)