forked from EasyinnovaSL/Nirvana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clear.sql
51 lines (50 loc) · 1.34 KB
/
clear.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
truncate `cfiles_folder`;
truncate `comment`;
DELETE FROM `group_user` WHERE `user_id` > 1;
truncate `like`;
truncate `message`;
truncate `message_entry`;
truncate `nda_agreement`;
truncate `nda_model_chose`;
truncate `post`;
truncate `user_http_session`;
truncate `user_message`;
truncate `user_module`;
DELETE FROM `user_password` WHERE `user_id` > 1;
DELETE FROM `wall` WHERE `id` > 12;
DELETE FROM `wall_entry` WHERE `id` > 12;
truncate `space_user_role`;
truncate `extra_data_user`;
truncate `user_auth`;
truncate `user_card`;
truncate `user_follow`;
truncate `user_http_session`;
truncate `user_invite_group`;
DELETE FROM `user_invite` WHERE 1;
DELETE FROM `user` WHERE `id` > 1;
truncate `task_user`;
truncate `task`;
DELETE FROM `space_type` WHERE `id` = 11;
truncate `space_module`;
truncate `space_membership`;
DELETE FROM `profile` WHERE `user_id` > 1;
truncate `poll_answer_user`;
truncate `poll_answer`;
truncate `poll`;
truncate `notification`;
truncate `nir_related`;
truncate `log`;
truncate `linklist_link`;
truncate `linklist_category`;
truncate `file`;
truncate`content`;
DELETE FROM `contentcontainer` WHERE 1;
truncate `company_space`;
truncate `company`;
truncate `cfiles_file`;
truncate `card_content`;
DELETE FROM `card` WHERE 1;
DELETE FROM `space` WHERE 1;
truncate `calendar_entry_participant`;
truncate `calendar_entry`;
truncate `activity`;