chinook_database 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 420ea1d79fda8bb20be6b0d9694d868617faf815
4
- data.tar.gz: f742dcfd7893b41a1d74b0c3f0fb0e4af2cf9b19
3
+ metadata.gz: 7f3d21ea44e86e608db4c38a6ef23277b22e8e82
4
+ data.tar.gz: 278bf4c277aa319821d45fd8f55593207c9d7da8
5
5
  SHA512:
6
- metadata.gz: cfaf4f2182a721e4a3ff303efe0ff53a428fd78338817e4eda55e362d2b3f9e6875d5296e758527ab1f69ef0e2a937b0fb0bdaae5fcc30ec5d99bef3ba449d4e
7
- data.tar.gz: 904a9a6a15e0080dfe80c7c3531fe7aa4c4bbd3fd214a73f76b6d006478fd5d646ea8a941b681dd6b5749de65325771e92d7cac61bebb8f28b5f64295efd35d5
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
- # Playlists and tracks they contain
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
- # Employees and reporting structure
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
- # Customers and invoices
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
 
@@ -1,3 +1,3 @@
1
1
  module ChinookDatabase
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
Binary file
@@ -135,7 +135,7 @@ CREATE TABLE [playlists_tracks]
135
135
 
136
136
  CREATE TABLE [tracks]
137
137
  (
138
- [track_id] INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chinook_database
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amit Aharoni