Skip to content

Commit

Permalink
Add notes about problems regenerating the tables
Browse files Browse the repository at this point in the history
  • Loading branch information
nbkhope committed Jun 27, 2024
1 parent f62a171 commit 6eb621d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions sql/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SQL

The SQL files were generated using pgAdmin on Windows.

## Problems

If you are using a macOS to regenerate the database, be aware:

For create-full-stack-db.sql, remove the following lines if you get a complaint about them:

```
LC_COLLATE = 'English_United States.1252'
LC_CTYPE = 'English_United States.1252'
```

For create-users.sql, it will complain about the sequence. Replace the definition of id with:

```
id SERIAL NOT NULL,
```

There is no need to run the create-users-seq.sql file.

Similarly, do the same for create-message.sql.

0 comments on commit 6eb621d

Please sign in to comment.