pubkey_domains domain cannot be null

This commit is contained in:
Alex Gleason
2024-03-20 13:21:34 -05:00
parent a8b5888e6d
commit f2db6c50b8

View File

@@ -5,7 +5,7 @@ export async function up(db: Kysely<any>): Promise<void> {
.createTable('pubkey_domains')
.ifNotExists()
.addColumn('pubkey', 'text', (col) => col.primaryKey())
.addColumn('domain', 'text')
.addColumn('domain', 'text', (col) => col.notNull())
.execute();
await db.schema