File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -589,11 +589,11 @@ const keys = createKeys({
589589``` sql
590590CREATE TABLE api_keys (
591591 id TEXT PRIMARY KEY ,
592- key_hash TEXT UNIQUE NOT NULL ,
592+ " keyHash " TEXT UNIQUE NOT NULL ,
593593 metadata JSONB NOT NULL
594594);
595595
596- CREATE INDEX api_keys_key_hash_idx ON api_keys(key_hash );
596+ CREATE INDEX api_keys_key_hash_idx ON api_keys(" keyHash " );
597597```
598598
599599### Custom Storage
Original file line number Diff line number Diff line change @@ -49,17 +49,17 @@ describe("KyselyStore", () => {
4949 await sql `
5050 CREATE TABLE IF NOT EXISTS apikey (
5151 id TEXT PRIMARY KEY NOT NULL,
52- key_hash TEXT NOT NULL,
52+ "keyHash" TEXT NOT NULL,
5353 metadata JSONB NOT NULL
5454 )
5555 ` . execute ( db ) ;
5656
5757 await sql `
58- CREATE INDEX IF NOT EXISTS apikey_key_hash_idx ON apikey(key_hash )
58+ CREATE INDEX IF NOT EXISTS apikey_key_hash_idx ON apikey("keyHash" )
5959 ` . execute ( db ) ;
6060
6161 await sql `
62- CREATE UNIQUE INDEX IF NOT EXISTS apikey_key_hash_unique ON apikey(key_hash )
62+ CREATE UNIQUE INDEX IF NOT EXISTS apikey_key_hash_unique ON apikey("keyHash" )
6363 ` . execute ( db ) ;
6464
6565 store = new KyselyStore ( { db, table : "apikey" } ) ;
You can’t perform that action at this time.
0 commit comments