rm list from aliases
authorx2000habouzit <x2000habouzit>
Thu, 14 Oct 2004 22:08:48 +0000 (22:08 +0000)
committerx2000habouzit <x2000habouzit>
Thu, 14 Oct 2004 22:08:48 +0000 (22:08 +0000)
scripts/migration/0.0.0_to_0.9.0/new_newsletter.sh

index ad2f24e..983d4ca 100755 (executable)
@@ -4,3 +4,5 @@ mysql x4dat < newsleter.sql
 list_members polytechnique.org-newsletter | \
     sed -e 's!^\(.*\)@polytechnique.org!INSERT INTO newsletter_ins SELECT id FROM aliases WHERE alias="\1";!' | \
     mysql x4dat
+
+echo "DELETE FROM aliases WHERE alias LIKE 'newsletter%';" | mysql x4dat