-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete_bd.sql
25 lines (22 loc) · 971 Bytes
/
delete_bd.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
alter table stories drop constraint fk_users_stories;
alter table paragraphs drop constraint fk_users_paragraphs;
alter table paragraphs drop constraint fk_stories_paragraphs;
alter table choices drop constraint fk_stories_choices;
alter table choices drop constraint fk_source_choices;
alter table choices drop constraint fk_destination_choices;
alter table invites drop constraint fk_stories_invites;
alter table invites drop constraint fk_users_invites;
alter table conditions drop constraint fk_stories_conditions;
alter table conditions drop constraint fk_subject_conditions;
alter table conditions drop constraint fk_object_conditions;
alter table history drop constraint fk_users_history;
alter table history drop constraint fk_users_history;
drop table invites;
drop table choices;
drop table conditions;
drop table history;
drop table paragraphs;
drop table stories;
drop table users;
drop sequence users_seq;
drop sequence story_seq;