Skip to content

Commit

Permalink
NOISSUE - Fix channels connections (#2658)
Browse files Browse the repository at this point in the history
Signed-off-by: Arvindh <[email protected]>
  • Loading branch information
arvindh123 authored Jan 21, 2025
1 parent 53e39a1 commit 104c5b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions channels/postgres/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ func Migration() (*migrate.MemoryMigrationSource, error) {
client_id VARCHAR(36),
type SMALLINT NOT NULL CHECK (type IN (1, 2)),
FOREIGN KEY (channel_id, domain_id) REFERENCES channels (id, domain_id) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (channel_id, domain_id, client_id, type),
UNIQUE (channel_id, client_id)
PRIMARY KEY (channel_id, domain_id, client_id, type)
)`,
},
Down: []string{
Expand Down

0 comments on commit 104c5b3

Please sign in to comment.