/[drupal]/contributions/sandbox/ber/blog/update_blog.php
ViewVC logotype

Contents of /contributions/sandbox/ber/blog/update_blog.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Thu Mar 24 18:51:26 2005 UTC (4 years, 8 months ago) by ber
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
File MIME type: text/x-php
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