Nil
Creating a table within a schema using a column from a table in another schema
I'm using two schemas and I want to create a table in one of them with a column referencing a column that comes from another schema, how would I do this in migrations
i'm using Postgresql
`
3 replies
how to insert an array of strings
hey guys,
I wanted to know how to store an array of strings with kysely, I created my table using migrations:
I ran it this way and it created the table, but the problem now is inserting the data:
I'm using postgresql, could you help me please
6 replies
I am getting an error when entering an id with a uuid value
const uuid = uuidv4()
await db
.withSchema("schema_name")
.insertInto("table_name")
.values({
id: uuid
})
.execute();
Error: ERROR: column "id" is of type uuid but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
7 replies