Skip to content

Commit f303464

Browse files
committed
Fix error importing a pg dump of a vanilla, cmopletely empty alembic-created DB dump
1 parent f8bc96c commit f303464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/postgres-database/src/simcore_postgres_database/migration/versions/64614dc0fada_add_groups_table.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Create Date: 2020-04-22 13:42:06.572011+00:00
66
77
"""
8+
89
import sqlalchemy as sa
910
from alembic import op
1011

@@ -21,7 +22,7 @@ def upgrade():
2122
"""
2223
CREATE OR REPLACE FUNCTION check_group_uniqueness(name text, type text) RETURNS INT AS $$
2324
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
2526
RETURN 127;
2627
END IF;
2728
RETURN 0;

0 commit comments

Comments
 (0)