1 DROP TABLE IF EXISTS #PFX#bin5_table_orders;
2 CREATE TABLE #PFX#bin5_table_orders (
3 mcode integer REFERENCES #PFX#bin5_matches (code) ON DELETE cascade ON UPDATE cascade,
5 ucode integer REFERENCES #PFX#users (code) ON DELETE cascade ON UPDATE cascade
8 ALTER TABLE #PFX#bin5_matches DROP COLUMN mult_next;
9 ALTER TABLE #PFX#bin5_matches ADD COLUMN mult_next integer DEFAULT -1; -- next multiplier
11 ALTER TABLE #PFX#bin5_matches DROP COLUMN mazzo_next;
12 ALTER TABLE #PFX#bin5_matches ADD COLUMN mazzo_next integer DEFAULT -1; -- next card shaker
15 ALTER TABLE #PFX#bin5_games DROP COLUMN asta_pnt;
16 ALTER TABLE #PFX#bin5_games ADD COLUMN asta_pnt integer DEFAULT -1; -- curr bet points
18 ALTER TABLE #PFX#bin5_games DROP COLUMN pnt;
19 ALTER TABLE #PFX#bin5_games ADD COLUMN pnt integer DEFAULT -1; -- curr points made
21 ALTER TABLE #PFX#bin5_games DROP COLUMN asta_win;
22 ALTER TABLE #PFX#bin5_games ADD COLUMN asta_win integer DEFAULT -1; -- curr caller id
24 ALTER TABLE #PFX#bin5_games DROP COLUMN friend;
25 ALTER TABLE #PFX#bin5_games ADD COLUMN friend integer DEFAULT -1; -- curr callee id
27 ALTER TABLE #PFX#bin5_games DROP COLUMN mazzo;
28 ALTER TABLE #PFX#bin5_games ADD COLUMN mazzo integer DEFAULT -1; -- curr card shaker
30 ALTER TABLE #PFX#bin5_games DROP COLUMN mult;
31 ALTER TABLE #PFX#bin5_games ADD COLUMN mult integer DEFAULT -1; -- curr multiplier