chinook_database 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -9
- data/lib/chinook_database/version.rb +1 -1
- data/lib/db/Chinook.sqlite +0 -0
- data/lib/db/Chinook_Sqlite_AutoIncrementPKs.sql +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f3d21ea44e86e608db4c38a6ef23277b22e8e82
|
|
4
|
+
data.tar.gz: 278bf4c277aa319821d45fd8f55593207c9d7da8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a1c864d2f27bd04d781f261eb0451cd87b8c2614b0d51c7c691916e149d8126ae19a9442e501440ee5118a57ca8c8cd6feda36c7eec907f533f1bbd924ad298
|
|
7
|
+
data.tar.gz: ee43d048c581e06f4fd6b4d354cf2be61e80d40ad0fb1052bfecc1bd1fae1a18edc89b3aba7afaddb34c3a6320087855af211118469e448ba7f89b54305f1265
|
data/README.md
CHANGED
|
@@ -41,9 +41,8 @@ Artist.count
|
|
|
41
41
|
|
|
42
42
|
## The Schema
|
|
43
43
|
|
|
44
|
+
### Artists, albums and tracks
|
|
44
45
|
```
|
|
45
|
-
# Artists, albums and tracks
|
|
46
|
-
|
|
47
46
|
genres
|
|
48
47
|
id
|
|
49
48
|
name
|
|
@@ -71,9 +70,10 @@ tracks
|
|
|
71
70
|
milliseconds
|
|
72
71
|
bytes
|
|
73
72
|
unit_price
|
|
73
|
+
```
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
### Playlists and tracks they contain
|
|
76
|
+
```
|
|
77
77
|
playlists
|
|
78
78
|
id
|
|
79
79
|
name
|
|
@@ -81,9 +81,10 @@ playlists
|
|
|
81
81
|
playlists_tracks
|
|
82
82
|
playlist_id
|
|
83
83
|
track_id
|
|
84
|
+
```
|
|
84
85
|
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
### Employees and reporting structure
|
|
87
|
+
```
|
|
87
88
|
employees
|
|
88
89
|
id
|
|
89
90
|
last_name
|
|
@@ -100,9 +101,10 @@ employees
|
|
|
100
101
|
phone
|
|
101
102
|
fax
|
|
102
103
|
email
|
|
104
|
+
```
|
|
103
105
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
### Customers and invoices
|
|
107
|
+
```
|
|
106
108
|
customers
|
|
107
109
|
id
|
|
108
110
|
first_name
|
|
@@ -143,7 +145,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
143
145
|
|
|
144
146
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
145
147
|
|
|
146
|
-
To build the sqlite db from the sql file run: `cat lib/db/Chinook_Sqlite_AutoIncrementPKs.sql | sqlite3 lib/db/Chinook.sqlite`
|
|
148
|
+
To build the sqlite db from the sql file run: `rm lib/db/Chinook.sqlite && cat lib/db/Chinook_Sqlite_AutoIncrementPKs.sql | sqlite3 lib/db/Chinook.sqlite`
|
|
147
149
|
|
|
148
150
|
## Contributing
|
|
149
151
|
|
data/lib/db/Chinook.sqlite
CHANGED
|
Binary file
|
|
@@ -135,7 +135,7 @@ CREATE TABLE [playlists_tracks]
|
|
|
135
135
|
|
|
136
136
|
CREATE TABLE [tracks]
|
|
137
137
|
(
|
|
138
|
-
[
|
|
138
|
+
[id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
139
139
|
[name] NVARCHAR(200) NOT NULL,
|
|
140
140
|
[album_id] INTEGER,
|
|
141
141
|
[media_type_id] INTEGER NOT NULL,
|