MY UPDATE STATEMENTS ARE <div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; "><pre style="font-size: 12px; ">UPDATE RANKS SET SNAME = &#39;AMO&#39; WHERE SNAME =&#39;BIL&#39;;
UPDATE PARTS SET SNAME = &#39;AMO&#39; WHERE SNAME =&#39;BIL&#39;;</pre></span><br><div class="gmail_quote">On Wed, May 5, 2010 at 4:49 PM, Karl O. Pinc <span dir="ltr">&lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On 05/05/2010 03:39:44 PM, Niki Learn wrote:<br>
&gt; Yes, you have to be babase_admin to empty members.  I do it every<br>
&gt; update.<br>
&gt; Actually I didn&#39;t even try NOT emptying members - I just assumed it<br>
&gt; would be<br>
&gt; necessary since we were messing with census data.  But then it threw<br>
&gt; errors<br>
&gt; when I tried to change the census entries to manual because the<br>
&gt; latter<br>
&gt; part<br>
&gt; of Amok&#39;s life had not been rebuilt yet in members so it didn&#39;t like<br>
&gt; him<br>
&gt; having ranks and stuff when he wasn&#39;t listed as being in the group.<br>
&gt; Do you<br>
&gt; think we could have skipped the members part.<br>
&gt;<br>
&gt; We can&#39;t delete Billy&#39;s census data until the end, after all his<br>
&gt; ranks<br>
&gt; and<br>
&gt; parts data has been switched over to Amok.  We can&#39;t switch that over<br>
&gt; until<br>
&gt; Amok is in census.  It is a circle.<br>
<br>
There&#39;s no restriction on having Amok and Billy be censused in<br>
the same group.  So I&#39;d expect you&#39;d add Amok&#39;s census entries<br>
first, then move all the data by deleting stuff from Billy<br>
and adding it to Amok, then delete Billy&#39;s census entries<br>
last.<br>
<br>
The basic principle would be to delete in an order that&#39;s<br>
opposite from the order in which you add.<br>
<br>
  I guess if there is a way to do<br>
&gt; all<br>
&gt; three simultaneously then we wouldn&#39;t need as many steps.  But I got<br>
&gt; rid of<br>
&gt; most of the manual census entries anyway so whatever.  This worked so<br>
&gt; we are<br>
&gt; happy.<br>
<br>
Yes.  You don&#39;t care so much about deleting Billy&#39;s members because<br>
you know he&#39;s going away so you don&#39;t care about errors.  It&#39;s<br>
just a little spooky having to be babase_admin.  Sort of like<br>
resorting to a hammer.  Nothing wrong with a hammer though,<br>
it&#39;s a fine tool.  :-)<br>
<div class="im"><br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: Karl O. Pinc [mailto:<a href="mailto:kop@meme.com">kop@meme.com</a>]<br>
&gt; Sent: Wednesday, May 05, 2010 4:26 PM<br>
&gt; To: Niki Learn<br>
&gt; Subject: Re: manual census entries<br>
&gt;<br>
</div><div class="im">&gt; On 05/05/2010 03:20:10 PM, Niki Learn wrote:<br>
&gt; &gt; I guess we should make sure each office has a full list of the<br>
&gt; steps<br>
&gt; &gt; in case<br>
&gt; &gt; we ever have to do this again.  Most of them aren&#39;t in here though.<br>
&gt; &gt; Shall<br>
&gt; &gt; we compile a list of the steps and send that to the list for<br>
&gt; &gt; archiving?<br>
&gt; &gt; Here&#39;s what I have:<br>
&gt; &gt;<br>
&gt; &gt; Empty members<br>
&gt;<br>
</div>&gt; Wouldn&#39;t you have to be babase_admin to do this?<br>
&gt;<br>
&gt; As an alternative why not delete all the<br>
&gt; census rows?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
&gt; Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
&gt;                  -- Robert A. Heinlein<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
                 -- Robert A. Heinlein<br>
<br>
<br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>- -<br>Lacey K. Maryott Roerish<br>Alberts Lab<br>Department of Biology<br>Duke University<br>ph: 919-660-7306<br>fax: 919-660-7293<br><a href="mailto:Lacey.Maryott@duke.edu">Lacey.Maryott@duke.edu</a><br>

</div>