From f2db6c50b817b517567967c393c5af8e97d158f6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 20 Mar 2024 13:21:34 -0500 Subject: [PATCH] pubkey_domains `domain` cannot be null --- src/db/migrations/015_add_pubkey_domains.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/migrations/015_add_pubkey_domains.ts b/src/db/migrations/015_add_pubkey_domains.ts index 33bcc6cd..0b5fe293 100644 --- a/src/db/migrations/015_add_pubkey_domains.ts +++ b/src/db/migrations/015_add_pubkey_domains.ts @@ -5,7 +5,7 @@ export async function up(db: Kysely): Promise { .createTable('pubkey_domains') .ifNotExists() .addColumn('pubkey', 'text', (col) => col.primaryKey()) - .addColumn('domain', 'text') + .addColumn('domain', 'text', (col) => col.notNull()) .execute(); await db.schema