mlb 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/db/cleanup.sql +4 -25
  3. data/db/mlb.sqlite3 +0 -0
  4. data/mlb.gemspec +1 -1
  5. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/db/cleanup.sql CHANGED
@@ -1,19 +1,14 @@
1
1
  DROP TABLE "drafts";
2
2
 
3
3
  BEGIN TRANSACTION;
4
- CREATE TABLE "leagues_new" (
5
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
6
- "name" VARCHAR(50) NOT NULL);
4
+ CREATE TABLE "leagues_new" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" VARCHAR(50) NOT NULL);
7
5
  INSERT INTO "leagues_new" SELECT "id", "name" FROM "leagues";
8
6
  DROP TABLE "leagues";
9
7
  ALTER TABLE "leagues_new" RENAME TO "leagues";
10
8
  COMMIT;
11
9
 
12
10
  BEGIN TRANSACTION;
13
- CREATE TABLE "divisions_new" (
14
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
15
- "league_id" INTEGER NOT NULL,
16
- "name" VARCHAR(50) NOT NULL);
11
+ CREATE TABLE "divisions_new" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "league_id" INTEGER NOT NULL, "name" VARCHAR(50) NOT NULL);
17
12
  INSERT INTO "divisions_new" SELECT "id", "league_id", "name" FROM "divisions";
18
13
  DROP TABLE "divisions";
19
14
  ALTER TABLE "divisions_new" RENAME TO "divisions";
@@ -21,12 +16,7 @@ CREATE INDEX "index_divisions_league_id" ON "divisions" ("league_id");
21
16
  COMMIT;
22
17
 
23
18
  BEGIN TRANSACTION;
24
- CREATE TABLE "players_new" (
25
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
26
- "team_id" INTEGER,
27
- "name" VARCHAR(100) NOT NULL,
28
- "position" VARCHAR(50),
29
- "number" INTEGER NOT NULL);
19
+ CREATE TABLE "players_new" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "team_id" INTEGER, "name" VARCHAR(100) NOT NULL, "position" VARCHAR(50), "number" INTEGER NOT NULL);
30
20
  INSERT INTO "players_new" SELECT "id", "team_id", "name", "position", "number" FROM "players";
31
21
  DROP TABLE "players";
32
22
  ALTER TABLE "players_new" RENAME TO "players";
@@ -34,18 +24,7 @@ CREATE INDEX "index_players_team_id" ON "players" ("team_id");
34
24
  COMMIT;
35
25
 
36
26
  BEGIN TRANSACTION;
37
- CREATE TABLE "teams_new" (
38
- "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
39
- "league_id" INTEGER NOT NULL,
40
- "division_id" INTEGER NOT NULL,
41
- "name" VARCHAR(50),
42
- "logo_url" VARCHAR(255),
43
- "manager" VARCHAR(100) NOT NULL,
44
- "ballpark" VARCHAR(100),
45
- "mascot" VARCHAR(100),
46
- "founded" INTEGER NOT NULL,
47
- "wins" INTEGER NOT NULL,
48
- "losses" INTEGER NOT NULL);
27
+ CREATE TABLE "teams_new" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "league_id" INTEGER NOT NULL, "division_id" INTEGER NOT NULL, "name" VARCHAR(50), "logo_url" VARCHAR(255), "manager" VARCHAR(100) NOT NULL, "ballpark" VARCHAR(100), "mascot" VARCHAR(100), "founded" INTEGER NOT NULL, "wins" INTEGER NOT NULL, "losses" INTEGER NOT NULL);
49
28
  INSERT INTO "teams_new" SELECT "id", "league_id", "division_id", "name", "logo_url", "manager", "ballpark", "mascot", "founded", "wins", "losses" FROM "teams";
50
29
  DROP TABLE "teams";
51
30
  ALTER TABLE "teams_new" RENAME TO "teams";
data/db/mlb.sqlite3 CHANGED
Binary file
data/mlb.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mlb}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Erik Michaels-Ober"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Michaels-Ober