Skip to content

Commit 73d2b75

Browse files
authored
Update 20190502110035-seed-script-down.sql (#25)
1 parent fc87660 commit 73d2b75

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
/* Replace with your SQL commands */
2-
SET search_path TO lbstarter,public;
2+
SET search_path TO admin,public;
33

4+
alter table user_tenants drop constraint fk_user_tenants_roles;
5+
alter table tenants drop constraint fk_created_by;
6+
alter table tenants drop constraint fk_modified_by;
7+
alter table users drop constraint fk_users_tenants_default_tenant;
8+
alter table user_tenant_permissions drop constraint fk_user_tenant_permissions;
9+
alter table users drop constraint fk_user_user_tenant_created_by;
10+
alter table users drop constraint fk_user_user_tenant_modified_by;
11+
delete from roles;
12+
delete from groups;
413
delete from user_tenants;
5-
delete from users;
14+
delete from user_tenant_permissions;
615
delete from tenants;
7-
delete from roles;
16+
delete from users;

0 commit comments

Comments
 (0)