Page 1 of 1
Delete all playernotes
Posted:
Tue Aug 09, 2011 12:06 pm
by Olaf72
Is there a way to delete all playernotes from a PT3 Database via a SQL?
Re: Delete all playernotes
Posted:
Tue Aug 09, 2011 3:15 pm
by WhiteRider
I don't think there's a simple query because the notes are linked into other tables in the database, but I'll see if I can find out for you.
Re: Delete all playernotes
Posted:
Sun Aug 14, 2011 8:54 am
by kraada
There is:
TRUNCATE TABLE notes;
Re: Delete all playernotes
Posted:
Mon Aug 29, 2011 8:40 am
by kraada
I realized I forgot a couple of other queries you might want to run. That query blanks out all notes, but there are still flags set for notes on individual hands and players.
To change it to false for all players run:
UPDATE player SET flg_note = FALSE;
To set it to false for all hands run:
UPDATE holdem_hand_summary SET flg_note = FALSE;
(that's for holdem cash hands, for tournament or omaha hands change the table accordingly)