Something really strange is happening. When I am i...
# exposed
b
Something really strange is happening. When I am issuing create command with this table, I am getting this error. 2018-03-11 220452.705 [main] INFO Exposed - Transaction attempt #0 failed: ERROR: column "phone" appears twice in primary key constraint Position: 189. Statement: HikariProxyPreparedStatement@34757331 wrapping CREATE TABLE IF NOT EXISTS users (department TEXT NOT NULL, designation TEXT NOT NULL, location TEXT NOT NULL, name TEXT NOT NULL, assignable BOOLEAN NOT NULL, phone BIGINT, phone BIGINT, CONSTRAINT pk_Users PRIMARY KEY (phone, phone)) org.postgresql.util.PSQLException: ERROR: column "phone" appears twice in primary key constraint