Skip to content

Commit b8abf09

Browse files
author
Philip Mateescu
committed
fixed formatting
1 parent 7c56fa2 commit b8abf09

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
From original source: http://code.google.com/p/discogs-sql-importer/
2+
23
----
4+
35
This is a python program for importing the discogs data dumps found at http://www.discogs.com/data/ into a PostgreSQL database.
46

57
MySQL or other databases are not supported at the moment, but you are welcome to submit a patch.
68

79
Steps to import the datadumps:
810

9-
# Download and extract the data dumps
10-
# Create the empty database: `createdb -U {user-name} discogs`
11-
# Import the database schema: `psql -U {user-name} -d discogs -f discogs.sql`
12-
# The XML data dumps often contain control characters and do not have root tags. To fix this run `fix-xml.py _release_`, where release is the release date of the dump, for example `20100201`.
13-
# Finally import the data with `python discogsparser.py _release_`, where release is the release date of the dump, for example `20100201`
11+
1. Download and extract the data dumps
12+
2. Create the empty database: `createdb -U {user-name} discogs`
13+
3. Import the database schema: `psql -U {user-name} -d discogs -f discogs.sql`
14+
4. The XML data dumps often contain control characters and do not have root tags. To fix this run `fix-xml.py _release_`, where release is the release date of the dump, for example `20100201`.
15+
5. Finally import the data with `python discogsparser.py _release_`, where release is the release date of the dump, for example `20100201`
1416

1517

0 commit comments

Comments
 (0)