You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/postgres-database/src/simcore_postgres_database/migration/versions/64614dc0fada_add_groups_table.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
Create Date: 2020-04-22 13:42:06.572011+00:00
6
6
7
7
"""
8
+
8
9
importsqlalchemyassa
9
10
fromalembicimportop
10
11
@@ -21,7 +22,7 @@ def upgrade():
21
22
"""
22
23
CREATE OR REPLACE FUNCTION check_group_uniqueness(name text, type text) RETURNS INT AS $$
23
24
BEGIN
24
-
IF type = 'EVERYONE' AND (SELECT COUNT(*) FROM groups WHERE groups.type = 'EVERYONE') = 1 THEN
25
+
IF type = 'EVERYONE' AND (SELECT COUNT(*) FROM public.groups WHERE groups.type = 'EVERYONE') = 1 THEN
0 commit comments