-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notes about problems regenerating the tables
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |