Skip to content

Commit

Permalink
Fix SQL statements (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Jun 21, 2023
1 parent abcccb7 commit dc25093
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ You can add additional columns to store user attributes.

```sql
CREATE TABLE user (
id VARCHAR(31) NOT NULL PRIMARY KEY,
id VARCHAR(31) NOT NULL PRIMARY KEY
);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ You can add additional columns to store user attributes.

```sql
CREATE TABLE user (
id VARCHAR(31) NOT NULL PRIMARY KEY,
id VARCHAR(31) NOT NULL PRIMARY KEY
);
```

Expand Down
2 changes: 1 addition & 1 deletion documentation-v2/content/main/database-adapters/mysql2.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ You can add additional columns to store user attributes.

```sql
CREATE TABLE auth_user (
id VARCHAR(31) NOT NULL PRIMARY KEY,
id VARCHAR(31) NOT NULL PRIMARY KEY
);
```

Expand Down
6 changes: 3 additions & 3 deletions documentation-v2/content/main/database-adapters/pg.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ You can add additional columns to store user attributes.

```sql
CREATE TABLE auth_user (
id TEXT NOT NULL PRIMARY KEY,
id TEXT NOT NULL PRIMARY KEY
);
```

Expand All @@ -84,7 +84,7 @@ Make sure to update the foreign key statement if you change the user table name.
CREATE TABLE user_key (
id TEXT NOT NULL PRIMARY KEY,
user_id TEXT NOT NULL REFERENCES auth_user(id),
hashed_password TEXT,
hashed_password TEXT
);
```

Expand All @@ -97,6 +97,6 @@ CREATE TABLE user_session (
id TEXT NOT NULL PRIMARY KEY,
user_id TEXT NOT NULL REFERENCES auth_user(id),
active_expires BIGINT NOT NULL,
idle_expires BIGINT NOT NULL,
idle_expires BIGINT NOT NULL
);
```
1 change: 0 additions & 1 deletion documentation-v2/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

1 comment on commit dc25093

@vercel
Copy link

@vercel vercel bot commented on dc25093 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.