Files
roll-room/doc/清理数据.md
2026-04-23 16:58:11 +08:00

57 lines
1.1 KiB
Markdown

"game_sugar_record",
"game_sugar_user",
"game_wheel_round_bet",
"game_wheel_user",
"tt_announcement_read",
"tt_attendance_record",
"tt_bonus_receive_record",
"tt_box_records",
"tt_commission_record",
"tt_delivery_record",
"tt_exponent_user",
"tt_exponent_user_box",
"tt_fight",
"tt_fight_user",
"tt_notice",
"tt_order",
"tt_promotion_record",
"tt_recharge_record",
"tt_red_packet",
"tt_red_packet_record",
"tt_roll",
"tt_roll_user",
"tt_task_center_user",
"tt_time_roll_user",
"tt_upgrade_record",
"tt_user_blend_ercash",
"tt_welfare_record",
"tt_recharge_record",
"game_sugar_win",
"game_wheel_round",
"tt_recharge_card",
```python
tables = [
"tt_box",
"tt_box_open_chance",
"tt_box_ornaments",
"tt_box_records",
"tt_ornament",
"tt_upgrade_fail_ornaments",
"tt_upgrade_ornaments",
"tt_upgrade_record",
"tt_roll",
"tt_roll_jackpot",
"tt_roll_jackpot_ornaments",
"tt_roll_user_prize"
]
for table in tables:
print(f"""CREATE TABLE {table}_new LIKE {table};
RENAME TABLE {table} TO {table}_old, {table}_new TO {table};""")
```