Parent Directory
|
Revision Log
|
Revision Graph
updating to keep in sync
| 1 | <? |
| 2 | //Chage type story on the last line to any other type. |
| 3 | include_once "includes/bootstrap.inc"; |
| 4 | include_once "includes/common.inc"; |
| 5 | |
| 6 | $result = db_query('select nid from {node} where type = \'blog\''); |
| 7 | while ($row = db_fetch_object($result)) { |
| 8 | $row->nid ? db_queryd('INSERT INTO {blog} (nid) VALUES(%d)', $row->nid) : NULL; |
| 9 | } |
| 10 | db_queryd('UPDATE {node} SET type=\'blog\' WHERE type=\'story\''); |
| 11 | ?> |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |