From 577a6b44a4c281769c76e99a3cbdb10188355b45 Mon Sep 17 00:00:00 2001 From: Zhorken Date: Mon, 7 Jun 2010 15:35:22 -0400 Subject: [PATCH] =?UTF-8?q?Give=20Pok=C3=A9mon=20internal=20IDs=20their=20?= =?UTF-8?q?own=20table=20and=20add=20all=20gens'=20IDs.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Gen I has them all mixed around. - Gen II has no surprises, but I figured it's good to be thorough. - Gen III has the first 251 in order, then a big break, then the third-gen Pokémon mixed around, though families are usually together. - Gen IV has the 493 in order and then alternate forms after Arceus, which will be useful to have once Gen V comes and we have to bump the alt forms in the pokemon table forward. --- pokedex/data/csv/pokedex_version_groups.csv | 2 - pokedex/data/csv/pokedexes.csv | 1 - pokedex/data/csv/pokemon_dex_numbers.csv | 151 --- pokedex/data/csv/pokemon_internal_ids.csv | 1294 +++++++++++++++++++ pokedex/db/tables.py | 6 + 5 files changed, 1300 insertions(+), 154 deletions(-) create mode 100644 pokedex/data/csv/pokemon_internal_ids.csv diff --git a/pokedex/data/csv/pokedex_version_groups.csv b/pokedex/data/csv/pokedex_version_groups.csv index 87a911c..7b6a646 100644 --- a/pokedex/data/csv/pokedex_version_groups.csv +++ b/pokedex/data/csv/pokedex_version_groups.csv @@ -9,5 +9,3 @@ pokedex_id,version_group_id 5,8 6,9 7,10 -8,1 -8,2 diff --git a/pokedex/data/csv/pokedexes.csv b/pokedex/data/csv/pokedexes.csv index dc47c97..05544e5 100644 --- a/pokedex/data/csv/pokedexes.csv +++ b/pokedex/data/csv/pokedexes.csv @@ -6,4 +6,3 @@ id,region_id,name,description 5,4,Original Sinnoh,Diamond/Pearl Sinnoh dex 6,4,Extended Sinnoh,Platinum Sinnoh dex—an extended version of Diamond and Pearl's 7,2,Updated Johto,"HeartGold/SoulSilver Johto dex—Gold/Silver/Crystal's, extended to add move-based Generation IV evolutions" -8,1,Internal ID,IDs used internally in Generation I diff --git a/pokedex/data/csv/pokemon_dex_numbers.csv b/pokedex/data/csv/pokemon_dex_numbers.csv index 1e918b5..ed4f718 100644 --- a/pokedex/data/csv/pokemon_dex_numbers.csv +++ b/pokedex/data/csv/pokemon_dex_numbers.csv @@ -3,122 +3,98 @@ pokemon_id,pokedex_id,pokedex_number 1,2,1 1,3,226 1,7,231 -1,8,153 2,1,2 2,2,2 2,3,227 2,7,232 -2,8,9 3,1,3 3,2,3 3,3,228 3,7,233 -3,8,154 4,1,4 4,2,4 4,3,229 4,7,234 -4,8,176 5,1,5 5,2,5 5,3,230 5,7,235 -5,8,178 6,1,6 6,2,6 6,3,231 6,7,236 -6,8,180 7,1,7 7,2,7 7,3,232 7,7,237 -7,8,177 8,1,8 8,2,8 8,3,233 8,7,238 -8,8,179 9,1,9 9,2,9 9,3,234 9,7,239 -9,8,28 10,1,10 10,2,10 10,3,24 10,7,24 -10,8,123 11,1,11 11,2,11 11,3,25 11,7,25 -11,8,124 12,1,12 12,2,12 12,3,26 12,7,26 -12,8,125 13,1,13 13,2,13 13,3,27 13,7,27 -13,8,112 14,1,14 14,2,14 14,3,28 14,7,28 -14,8,113 15,1,15 15,2,15 15,3,29 15,7,29 -15,8,114 16,1,16 16,2,16 16,3,10 16,7,10 -16,8,36 17,1,17 17,2,17 17,3,11 17,7,11 -17,8,150 18,1,18 18,2,18 18,3,12 18,7,12 -18,8,151 19,1,19 19,2,19 19,3,17 19,7,17 -19,8,165 20,1,20 20,2,20 20,3,18 20,7,18 -20,8,166 21,1,21 21,2,21 21,3,13 21,7,13 -21,8,5 22,1,22 22,2,22 22,3,14 22,7,14 -22,8,35 23,1,23 23,2,23 23,3,50 23,7,50 -23,8,108 24,1,24 24,2,24 24,3,51 24,7,51 -24,8,45 25,1,25 25,2,25 25,3,22 @@ -126,7 +102,6 @@ pokemon_id,pokedex_id,pokedex_number 25,5,104 25,6,104 25,7,22 -25,8,84 26,1,26 26,2,26 26,3,23 @@ -134,87 +109,72 @@ pokemon_id,pokedex_id,pokedex_number 26,5,105 26,6,105 26,7,23 -26,8,85 27,1,27 27,2,27 27,3,48 27,4,112 27,7,48 -27,8,96 28,1,28 28,2,28 28,3,49 28,4,113 28,7,49 -28,8,97 29,1,29 29,2,29 29,3,95 29,7,95 -29,8,15 30,1,30 30,2,30 30,3,96 30,7,96 -30,8,168 31,1,31 31,2,31 31,3,97 31,7,97 -31,8,16 32,1,32 32,2,32 32,3,98 32,7,98 -32,8,3 33,1,33 33,2,33 33,3,99 33,7,99 -33,8,167 34,1,34 34,2,34 34,3,100 34,7,100 -34,8,7 35,1,35 35,2,35 35,3,41 35,5,100 35,6,100 35,7,41 -35,8,4 36,1,36 36,2,36 36,3,42 36,5,101 36,6,101 36,7,42 -36,8,142 37,1,37 37,2,37 37,3,125 37,4,153 37,7,127 -37,8,82 38,1,38 38,2,38 38,3,126 38,4,154 38,7,128 -38,8,83 39,1,39 39,2,39 39,3,44 39,4,138 39,7,44 -39,8,100 40,1,40 40,2,40 40,3,45 40,4,139 40,7,45 -40,8,101 41,1,41 41,2,41 41,3,37 @@ -222,7 +182,6 @@ pokemon_id,pokedex_id,pokedex_number 41,5,28 41,6,28 41,7,37 -41,8,107 42,1,42 42,2,42 42,3,38 @@ -230,65 +189,53 @@ pokemon_id,pokedex_id,pokedex_number 42,5,29 42,6,29 42,7,38 -42,8,130 43,1,43 43,2,43 43,3,83 43,4,88 43,7,83 -43,8,185 44,1,44 44,2,44 44,3,84 44,4,89 44,7,84 -44,8,186 45,1,45 45,2,45 45,3,85 45,4,90 45,7,85 -45,8,187 46,1,46 46,2,46 46,3,70 46,7,70 -46,8,109 47,1,47 47,2,47 47,3,71 47,7,71 -47,8,46 48,1,48 48,2,48 48,3,108 48,7,109 -48,8,65 49,1,49 49,2,49 49,3,109 49,7,110 -49,8,119 50,1,50 50,2,50 50,3,132 50,7,134 -50,8,59 51,1,51 51,2,51 51,3,133 51,7,135 -51,8,118 52,1,52 52,2,52 52,3,136 52,7,138 -52,8,77 53,1,53 53,2,53 53,3,137 53,7,139 -53,8,144 54,1,54 54,2,54 54,3,138 @@ -296,7 +243,6 @@ pokemon_id,pokedex_id,pokedex_number 54,5,43 54,6,43 54,7,140 -54,8,47 55,1,55 55,2,55 55,3,139 @@ -304,42 +250,34 @@ pokemon_id,pokedex_id,pokedex_number 55,5,44 55,6,44 55,7,141 -55,8,128 56,1,56 56,2,56 56,3,134 56,7,136 -56,8,57 57,1,57 57,2,57 57,3,135 57,7,137 -57,8,117 58,1,58 58,2,58 58,3,127 58,7,129 -58,8,33 59,1,59 59,2,59 59,3,128 59,7,130 -59,8,20 60,1,60 60,2,60 60,3,72 60,7,72 -60,8,71 61,1,61 61,2,61 61,3,73 61,7,73 -61,8,110 62,1,62 62,2,62 62,3,74 62,7,74 -62,8,111 63,1,63 63,2,63 63,3,89 @@ -347,7 +285,6 @@ pokemon_id,pokedex_id,pokedex_number 63,5,20 63,6,20 63,7,89 -63,8,148 64,1,64 64,2,64 64,3,90 @@ -355,7 +292,6 @@ pokemon_id,pokedex_id,pokedex_number 64,5,21 64,6,21 64,7,90 -64,8,38 65,1,65 65,2,65 65,3,91 @@ -363,7 +299,6 @@ pokemon_id,pokedex_id,pokedex_number 65,5,22 65,6,22 65,7,91 -65,8,149 66,1,66 66,2,66 66,3,140 @@ -371,7 +306,6 @@ pokemon_id,pokedex_id,pokedex_number 66,5,40 66,6,40 66,7,142 -66,8,106 67,1,67 67,2,67 67,3,141 @@ -379,7 +313,6 @@ pokemon_id,pokedex_id,pokedex_number 67,5,41 67,6,41 67,7,143 -67,8,41 68,1,68 68,2,68 68,3,142 @@ -387,22 +320,18 @@ pokemon_id,pokedex_id,pokedex_number 68,5,42 68,6,42 68,7,144 -68,8,126 69,1,69 69,2,69 69,3,64 69,7,64 -69,8,188 70,1,70 70,2,70 70,3,65 70,7,65 -70,8,189 71,1,71 71,2,71 71,3,66 71,7,66 -71,8,190 72,1,72 72,2,72 72,3,162 @@ -410,7 +339,6 @@ pokemon_id,pokedex_id,pokedex_number 72,5,136 72,6,136 72,7,164 -72,8,24 73,1,73 73,2,73 73,3,163 @@ -418,7 +346,6 @@ pokemon_id,pokedex_id,pokedex_number 73,5,137 73,6,137 73,7,165 -73,8,155 74,1,74 74,2,74 74,3,34 @@ -426,7 +353,6 @@ pokemon_id,pokedex_id,pokedex_number 74,5,31 74,6,31 74,7,34 -74,8,169 75,1,75 75,2,75 75,3,35 @@ -434,7 +360,6 @@ pokemon_id,pokedex_id,pokedex_number 75,5,32 75,6,32 75,7,35 -75,8,39 76,1,76 76,2,76 76,3,36 @@ -442,246 +367,204 @@ pokemon_id,pokedex_id,pokedex_number 76,5,33 76,6,33 76,7,36 -76,8,49 77,1,77 77,2,77 77,3,201 77,5,90 77,6,90 77,7,206 -77,8,163 78,1,78 78,2,78 78,3,202 78,5,91 78,6,91 78,7,207 -78,8,164 79,1,79 79,2,79 79,3,80 79,7,80 -79,8,37 80,1,80 80,2,80 80,3,81 80,7,81 -80,8,8 81,1,81 81,2,81 81,3,118 81,4,82 81,6,178 81,7,119 -81,8,173 82,1,82 82,2,82 82,3,119 82,4,83 82,6,179 82,7,120 -82,8,54 83,1,83 83,2,83 83,3,158 83,7,160 -83,8,64 84,1,84 84,2,84 84,3,199 84,4,92 84,7,204 -84,8,70 85,1,85 85,2,85 85,3,200 85,4,93 85,7,205 -85,8,116 86,1,86 86,2,86 86,3,176 86,7,178 -86,8,58 87,1,87 87,2,87 87,3,177 87,7,179 -87,8,120 88,1,88 88,2,88 88,3,116 88,4,106 88,7,117 -88,8,13 89,1,89 89,2,89 89,3,117 89,4,107 89,7,118 -89,8,136 90,1,90 90,2,90 90,3,169 90,7,171 -90,8,23 91,1,91 91,2,91 91,3,170 91,7,172 -91,8,139 92,1,92 92,2,92 92,3,58 92,5,69 92,6,69 92,7,58 -92,8,25 93,1,93 93,2,93 93,3,59 93,5,70 93,6,70 93,7,59 -93,8,147 94,1,94 94,2,94 94,3,60 94,5,71 94,6,71 94,7,60 -94,8,14 95,1,95 95,2,95 95,3,62 95,5,34 95,6,34 95,7,62 -95,8,34 96,1,96 96,2,96 96,3,87 96,7,87 -96,8,48 97,1,97 97,2,97 97,3,88 97,7,88 -97,8,129 98,1,98 98,2,98 98,3,164 98,7,166 -98,8,78 99,1,99 99,2,99 99,3,165 99,7,167 -99,8,138 100,1,100 100,2,100 100,3,120 100,4,84 100,7,121 -100,8,6 101,1,101 101,2,101 101,3,121 101,4,85 101,7,122 -101,8,141 102,1,102 102,2,102 102,3,104 102,7,105 -102,8,12 103,1,103 103,2,103 103,3,105 103,7,106 -103,8,10 104,1,104 104,2,104 104,3,203 104,7,208 -104,8,17 105,1,105 105,2,105 105,3,204 105,7,209 -105,8,145 106,1,106 106,2,106 106,3,144 106,7,146 -106,8,43 107,1,107 107,2,107 107,3,145 107,7,147 -107,8,44 108,1,108 108,2,108 108,3,178 108,6,161 108,7,180 -108,8,11 109,1,109 109,2,109 109,3,114 109,4,108 109,7,115 -109,8,55 110,1,110 110,2,110 110,3,115 110,4,109 110,7,116 -110,8,143 111,1,111 111,2,111 111,3,206 111,4,169 111,6,186 111,7,211 -111,8,18 112,1,112 112,2,112 112,3,207 112,4,170 112,6,187 112,7,212 -112,8,1 113,1,113 113,2,113 113,3,217 113,5,97 113,6,97 113,7,222 -113,8,40 114,1,114 114,2,114 114,3,179 114,6,181 114,7,182 -114,8,30 115,1,115 115,2,115 115,3,205 115,7,210 -115,8,2 116,1,116 116,2,116 116,3,186 116,4,184 116,7,190 -116,8,92 117,1,117 117,2,117 117,3,187 117,4,185 117,7,191 -117,8,93 118,1,118 118,2,118 118,3,78 @@ -689,7 +572,6 @@ pokemon_id,pokedex_id,pokedex_number 118,5,78 118,6,78 118,7,78 -118,8,157 119,1,119 119,2,119 119,3,79 @@ -697,60 +579,50 @@ pokemon_id,pokedex_id,pokedex_number 119,5,79 119,6,79 119,7,79 -119,8,158 120,1,120 120,2,120 120,3,167 120,4,143 120,7,169 -120,8,27 121,1,121 121,2,121 121,3,168 121,4,144 121,7,170 -121,8,152 122,1,122 122,2,122 122,3,156 122,5,95 122,6,95 122,7,158 -122,8,42 123,1,123 123,2,123 123,3,110 123,6,195 123,7,111 -123,8,26 124,1,124 124,2,124 124,3,153 124,7,155 -124,8,72 125,1,125 125,2,125 125,3,155 125,6,198 125,7,157 -125,8,53 126,1,126 126,2,126 126,3,151 126,6,201 126,7,153 -126,8,51 127,1,127 127,2,127 127,3,112 127,4,167 127,7,113 -127,8,29 128,1,128 128,2,128 128,3,148 128,7,150 -128,8,60 129,1,129 129,2,129 129,3,76 @@ -758,7 +630,6 @@ pokemon_id,pokedex_id,pokedex_number 129,5,23 129,6,23 129,7,76 -129,8,133 130,1,130 130,2,130 130,3,77 @@ -766,119 +637,97 @@ pokemon_id,pokedex_id,pokedex_number 130,5,24 130,6,24 130,7,77 -130,8,22 131,1,131 131,2,131 131,3,219 131,7,224 -131,8,19 132,1,132 132,2,132 132,3,92 132,7,92 -132,8,76 133,1,133 133,2,133 133,3,180 133,6,163 133,7,184 -133,8,102 134,1,134 134,2,134 134,3,181 134,6,164 134,7,185 -134,8,105 135,1,135 135,2,135 135,3,182 135,6,165 135,7,186 -135,8,104 136,1,136 136,2,136 136,3,183 136,6,166 136,7,187 -136,8,103 137,1,137 137,2,137 137,3,215 137,6,192 137,7,220 -137,8,170 138,1,138 138,2,138 138,3,220 138,7,225 -138,8,98 139,1,139 139,2,139 139,3,221 139,7,226 -139,8,99 140,1,140 140,2,140 140,3,222 140,7,227 -140,8,90 141,1,141 141,2,141 141,3,223 141,7,228 -141,8,91 142,1,142 142,2,142 142,3,224 142,7,229 -142,8,171 143,1,143 143,2,143 143,3,225 143,5,113 143,6,113 143,7,230 -143,8,132 144,1,144 144,2,144 144,3,235 144,7,240 -144,8,74 145,1,145 145,2,145 145,3,236 145,7,241 -145,8,75 146,1,146 146,2,146 146,3,237 146,7,242 -146,8,73 147,1,147 147,2,147 147,3,241 147,7,246 -147,8,88 148,1,148 148,2,148 148,3,242 148,7,247 -148,8,89 149,1,149 149,2,149 149,3,243 149,7,248 -149,8,66 150,1,150 150,2,150 150,3,249 150,7,254 -150,8,131 151,1,151 151,2,151 151,3,250 151,7,255 -151,8,21 152,1,152 152,3,1 152,7,1 diff --git a/pokedex/data/csv/pokemon_internal_ids.csv b/pokedex/data/csv/pokemon_internal_ids.csv new file mode 100644 index 0000000..960078a --- /dev/null +++ b/pokedex/data/csv/pokemon_internal_ids.csv @@ -0,0 +1,1294 @@ +pokemon_id,generation_id,internal_id +1,1,153 +1,2,1 +1,3,1 +1,4,1 +2,1,9 +2,2,2 +2,3,2 +2,4,2 +3,1,154 +3,2,3 +3,3,3 +3,4,3 +4,1,176 +4,2,4 +4,3,4 +4,4,4 +5,1,178 +5,2,5 +5,3,5 +5,4,5 +6,1,180 +6,2,6 +6,3,6 +6,4,6 +7,1,177 +7,2,7 +7,3,7 +7,4,7 +8,1,179 +8,2,8 +8,3,8 +8,4,8 +9,1,28 +9,2,9 +9,3,9 +9,4,9 +10,1,123 +10,2,10 +10,3,10 +10,4,10 +11,1,124 +11,2,11 +11,3,11 +11,4,11 +12,1,125 +12,2,12 +12,3,12 +12,4,12 +13,1,112 +13,2,13 +13,3,13 +13,4,13 +14,1,113 +14,2,14 +14,3,14 +14,4,14 +15,1,114 +15,2,15 +15,3,15 +15,4,15 +16,1,36 +16,2,16 +16,3,16 +16,4,16 +17,1,150 +17,2,17 +17,3,17 +17,4,17 +18,1,151 +18,2,18 +18,3,18 +18,4,18 +19,1,165 +19,2,19 +19,3,19 +19,4,19 +20,1,166 +20,2,20 +20,3,20 +20,4,20 +21,1,5 +21,2,21 +21,3,21 +21,4,21 +22,1,35 +22,2,22 +22,3,22 +22,4,22 +23,1,108 +23,2,23 +23,3,23 +23,4,23 +24,1,45 +24,2,24 +24,3,24 +24,4,24 +25,1,84 +25,2,25 +25,3,25 +25,4,25 +26,1,85 +26,2,26 +26,3,26 +26,4,26 +27,1,96 +27,2,27 +27,3,27 +27,4,27 +28,1,97 +28,2,28 +28,3,28 +28,4,28 +29,1,15 +29,2,29 +29,3,29 +29,4,29 +30,1,168 +30,2,30 +30,3,30 +30,4,30 +31,1,16 +31,2,31 +31,3,31 +31,4,31 +32,1,3 +32,2,32 +32,3,32 +32,4,32 +33,1,167 +33,2,33 +33,3,33 +33,4,33 +34,1,7 +34,2,34 +34,3,34 +34,4,34 +35,1,4 +35,2,35 +35,3,35 +35,4,35 +36,1,142 +36,2,36 +36,3,36 +36,4,36 +37,1,82 +37,2,37 +37,3,37 +37,4,37 +38,1,83 +38,2,38 +38,3,38 +38,4,38 +39,1,100 +39,2,39 +39,3,39 +39,4,39 +40,1,101 +40,2,40 +40,3,40 +40,4,40 +41,1,107 +41,2,41 +41,3,41 +41,4,41 +42,1,130 +42,2,42 +42,3,42 +42,4,42 +43,1,185 +43,2,43 +43,3,43 +43,4,43 +44,1,186 +44,2,44 +44,3,44 +44,4,44 +45,1,187 +45,2,45 +45,3,45 +45,4,45 +46,1,109 +46,2,46 +46,3,46 +46,4,46 +47,1,46 +47,2,47 +47,3,47 +47,4,47 +48,1,65 +48,2,48 +48,3,48 +48,4,48 +49,1,119 +49,2,49 +49,3,49 +49,4,49 +50,1,59 +50,2,50 +50,3,50 +50,4,50 +51,1,118 +51,2,51 +51,3,51 +51,4,51 +52,1,77 +52,2,52 +52,3,52 +52,4,52 +53,1,144 +53,2,53 +53,3,53 +53,4,53 +54,1,47 +54,2,54 +54,3,54 +54,4,54 +55,1,128 +55,2,55 +55,3,55 +55,4,55 +56,1,57 +56,2,56 +56,3,56 +56,4,56 +57,1,117 +57,2,57 +57,3,57 +57,4,57 +58,1,33 +58,2,58 +58,3,58 +58,4,58 +59,1,20 +59,2,59 +59,3,59 +59,4,59 +60,1,71 +60,2,60 +60,3,60 +60,4,60 +61,1,110 +61,2,61 +61,3,61 +61,4,61 +62,1,111 +62,2,62 +62,3,62 +62,4,62 +63,1,148 +63,2,63 +63,3,63 +63,4,63 +64,1,38 +64,2,64 +64,3,64 +64,4,64 +65,1,149 +65,2,65 +65,3,65 +65,4,65 +66,1,106 +66,2,66 +66,3,66 +66,4,66 +67,1,41 +67,2,67 +67,3,67 +67,4,67 +68,1,126 +68,2,68 +68,3,68 +68,4,68 +69,1,188 +69,2,69 +69,3,69 +69,4,69 +70,1,189 +70,2,70 +70,3,70 +70,4,70 +71,1,190 +71,2,71 +71,3,71 +71,4,71 +72,1,24 +72,2,72 +72,3,72 +72,4,72 +73,1,155 +73,2,73 +73,3,73 +73,4,73 +74,1,169 +74,2,74 +74,3,74 +74,4,74 +75,1,39 +75,2,75 +75,3,75 +75,4,75 +76,1,49 +76,2,76 +76,3,76 +76,4,76 +77,1,163 +77,2,77 +77,3,77 +77,4,77 +78,1,164 +78,2,78 +78,3,78 +78,4,78 +79,1,37 +79,2,79 +79,3,79 +79,4,79 +80,1,8 +80,2,80 +80,3,80 +80,4,80 +81,1,173 +81,2,81 +81,3,81 +81,4,81 +82,1,54 +82,2,82 +82,3,82 +82,4,82 +83,1,64 +83,2,83 +83,3,83 +83,4,83 +84,1,70 +84,2,84 +84,3,84 +84,4,84 +85,1,116 +85,2,85 +85,3,85 +85,4,85 +86,1,58 +86,2,86 +86,3,86 +86,4,86 +87,1,120 +87,2,87 +87,3,87 +87,4,87 +88,1,13 +88,2,88 +88,3,88 +88,4,88 +89,1,136 +89,2,89 +89,3,89 +89,4,89 +90,1,23 +90,2,90 +90,3,90 +90,4,90 +91,1,139 +91,2,91 +91,3,91 +91,4,91 +92,1,25 +92,2,92 +92,3,92 +92,4,92 +93,1,147 +93,2,93 +93,3,93 +93,4,93 +94,1,14 +94,2,94 +94,3,94 +94,4,94 +95,1,34 +95,2,95 +95,3,95 +95,4,95 +96,1,48 +96,2,96 +96,3,96 +96,4,96 +97,1,129 +97,2,97 +97,3,97 +97,4,97 +98,1,78 +98,2,98 +98,3,98 +98,4,98 +99,1,138 +99,2,99 +99,3,99 +99,4,99 +100,1,6 +100,2,100 +100,3,100 +100,4,100 +101,1,141 +101,2,101 +101,3,101 +101,4,101 +102,1,12 +102,2,102 +102,3,102 +102,4,102 +103,1,10 +103,2,103 +103,3,103 +103,4,103 +104,1,17 +104,2,104 +104,3,104 +104,4,104 +105,1,145 +105,2,105 +105,3,105 +105,4,105 +106,1,43 +106,2,106 +106,3,106 +106,4,106 +107,1,44 +107,2,107 +107,3,107 +107,4,107 +108,1,11 +108,2,108 +108,3,108 +108,4,108 +109,1,55 +109,2,109 +109,3,109 +109,4,109 +110,1,143 +110,2,110 +110,3,110 +110,4,110 +111,1,18 +111,2,111 +111,3,111 +111,4,111 +112,1,1 +112,2,112 +112,3,112 +112,4,112 +113,1,40 +113,2,113 +113,3,113 +113,4,113 +114,1,30 +114,2,114 +114,3,114 +114,4,114 +115,1,2 +115,2,115 +115,3,115 +115,4,115 +116,1,92 +116,2,116 +116,3,116 +116,4,116 +117,1,93 +117,2,117 +117,3,117 +117,4,117 +118,1,157 +118,2,118 +118,3,118 +118,4,118 +119,1,158 +119,2,119 +119,3,119 +119,4,119 +120,1,27 +120,2,120 +120,3,120 +120,4,120 +121,1,152 +121,2,121 +121,3,121 +121,4,121 +122,1,42 +122,2,122 +122,3,122 +122,4,122 +123,1,26 +123,2,123 +123,3,123 +123,4,123 +124,1,72 +124,2,124 +124,3,124 +124,4,124 +125,1,53 +125,2,125 +125,3,125 +125,4,125 +126,1,51 +126,2,126 +126,3,126 +126,4,126 +127,1,29 +127,2,127 +127,3,127 +127,4,127 +128,1,60 +128,2,128 +128,3,128 +128,4,128 +129,1,133 +129,2,129 +129,3,129 +129,4,129 +130,1,22 +130,2,130 +130,3,130 +130,4,130 +131,1,19 +131,2,131 +131,3,131 +131,4,131 +132,1,76 +132,2,132 +132,3,132 +132,4,132 +133,1,102 +133,2,133 +133,3,133 +133,4,133 +134,1,105 +134,2,134 +134,3,134 +134,4,134 +135,1,104 +135,2,135 +135,3,135 +135,4,135 +136,1,103 +136,2,136 +136,3,136 +136,4,136 +137,1,170 +137,2,137 +137,3,137 +137,4,137 +138,1,98 +138,2,138 +138,3,138 +138,4,138 +139,1,99 +139,2,139 +139,3,139 +139,4,139 +140,1,90 +140,2,140 +140,3,140 +140,4,140 +141,1,91 +141,2,141 +141,3,141 +141,4,141 +142,1,171 +142,2,142 +142,3,142 +142,4,142 +143,1,132 +143,2,143 +143,3,143 +143,4,143 +144,1,74 +144,2,144 +144,3,144 +144,4,144 +145,1,75 +145,2,145 +145,3,145 +145,4,145 +146,1,73 +146,2,146 +146,3,146 +146,4,146 +147,1,88 +147,2,147 +147,3,147 +147,4,147 +148,1,89 +148,2,148 +148,3,148 +148,4,148 +149,1,66 +149,2,149 +149,3,149 +149,4,149 +150,1,131 +150,2,150 +150,3,150 +150,4,150 +151,1,21 +151,2,151 +151,3,151 +151,4,151 +152,2,152 +152,3,152 +152,4,152 +153,2,153 +153,3,153 +153,4,153 +154,2,154 +154,3,154 +154,4,154 +155,2,155 +155,3,155 +155,4,155 +156,2,156 +156,3,156 +156,4,156 +157,2,157 +157,3,157 +157,4,157 +158,2,158 +158,3,158 +158,4,158 +159,2,159 +159,3,159 +159,4,159 +160,2,160 +160,3,160 +160,4,160 +161,2,161 +161,3,161 +161,4,161 +162,2,162 +162,3,162 +162,4,162 +163,2,163 +163,3,163 +163,4,163 +164,2,164 +164,3,164 +164,4,164 +165,2,165 +165,3,165 +165,4,165 +166,2,166 +166,3,166 +166,4,166 +167,2,167 +167,3,167 +167,4,167 +168,2,168 +168,3,168 +168,4,168 +169,2,169 +169,3,169 +169,4,169 +170,2,170 +170,3,170 +170,4,170 +171,2,171 +171,3,171 +171,4,171 +172,2,172 +172,3,172 +172,4,172 +173,2,173 +173,3,173 +173,4,173 +174,2,174 +174,3,174 +174,4,174 +175,2,175 +175,3,175 +175,4,175 +176,2,176 +176,3,176 +176,4,176 +177,2,177 +177,3,177 +177,4,177 +178,2,178 +178,3,178 +178,4,178 +179,2,179 +179,3,179 +179,4,179 +180,2,180 +180,3,180 +180,4,180 +181,2,181 +181,3,181 +181,4,181 +182,2,182 +182,3,182 +182,4,182 +183,2,183 +183,3,183 +183,4,183 +184,2,184 +184,3,184 +184,4,184 +185,2,185 +185,3,185 +185,4,185 +186,2,186 +186,3,186 +186,4,186 +187,2,187 +187,3,187 +187,4,187 +188,2,188 +188,3,188 +188,4,188 +189,2,189 +189,3,189 +189,4,189 +190,2,190 +190,3,190 +190,4,190 +191,2,191 +191,3,191 +191,4,191 +192,2,192 +192,3,192 +192,4,192 +193,2,193 +193,3,193 +193,4,193 +194,2,194 +194,3,194 +194,4,194 +195,2,195 +195,3,195 +195,4,195 +196,2,196 +196,3,196 +196,4,196 +197,2,197 +197,3,197 +197,4,197 +198,2,198 +198,3,198 +198,4,198 +199,2,199 +199,3,199 +199,4,199 +200,2,200 +200,3,200 +200,4,200 +201,2,201 +201,3,201 +201,4,201 +202,2,202 +202,3,202 +202,4,202 +203,2,203 +203,3,203 +203,4,203 +204,2,204 +204,3,204 +204,4,204 +205,2,205 +205,3,205 +205,4,205 +206,2,206 +206,3,206 +206,4,206 +207,2,207 +207,3,207 +207,4,207 +208,2,208 +208,3,208 +208,4,208 +209,2,209 +209,3,209 +209,4,209 +210,2,210 +210,3,210 +210,4,210 +211,2,211 +211,3,211 +211,4,211 +212,2,212 +212,3,212 +212,4,212 +213,2,213 +213,3,213 +213,4,213 +214,2,214 +214,3,214 +214,4,214 +215,2,215 +215,3,215 +215,4,215 +216,2,216 +216,3,216 +216,4,216 +217,2,217 +217,3,217 +217,4,217 +218,2,218 +218,3,218 +218,4,218 +219,2,219 +219,3,219 +219,4,219 +220,2,220 +220,3,220 +220,4,220 +221,2,221 +221,3,221 +221,4,221 +222,2,222 +222,3,222 +222,4,222 +223,2,223 +223,3,223 +223,4,223 +224,2,224 +224,3,224 +224,4,224 +225,2,225 +225,3,225 +225,4,225 +226,2,226 +226,3,226 +226,4,226 +227,2,227 +227,3,227 +227,4,227 +228,2,228 +228,3,228 +228,4,228 +229,2,229 +229,3,229 +229,4,229 +230,2,230 +230,3,230 +230,4,230 +231,2,231 +231,3,231 +231,4,231 +232,2,232 +232,3,232 +232,4,232 +233,2,233 +233,3,233 +233,4,233 +234,2,234 +234,3,234 +234,4,234 +235,2,235 +235,3,235 +235,4,235 +236,2,236 +236,3,236 +236,4,236 +237,2,237 +237,3,237 +237,4,237 +238,2,238 +238,3,238 +238,4,238 +239,2,239 +239,3,239 +239,4,239 +240,2,240 +240,3,240 +240,4,240 +241,2,241 +241,3,241 +241,4,241 +242,2,242 +242,3,242 +242,4,242 +243,2,243 +243,3,243 +243,4,243 +244,2,244 +244,3,244 +244,4,244 +245,2,245 +245,3,245 +245,4,245 +246,2,246 +246,3,246 +246,4,246 +247,2,247 +247,3,247 +247,4,247 +248,2,248 +248,3,248 +248,4,248 +249,2,249 +249,3,249 +249,4,249 +250,2,250 +250,3,250 +250,4,250 +251,2,251 +251,3,251 +251,4,251 +252,3,277 +252,4,252 +253,3,278 +253,4,253 +254,3,279 +254,4,254 +255,3,280 +255,4,255 +256,3,281 +256,4,256 +257,3,282 +257,4,257 +258,3,283 +258,4,258 +259,3,284 +259,4,259 +260,3,285 +260,4,260 +261,3,286 +261,4,261 +262,3,287 +262,4,262 +263,3,288 +263,4,263 +264,3,289 +264,4,264 +265,3,290 +265,4,265 +266,3,291 +266,4,266 +267,3,292 +267,4,267 +268,3,293 +268,4,268 +269,3,294 +269,4,269 +270,3,295 +270,4,270 +271,3,296 +271,4,271 +272,3,297 +272,4,272 +273,3,298 +273,4,273 +274,3,299 +274,4,274 +275,3,300 +275,4,275 +276,3,304 +276,4,276 +277,3,305 +277,4,277 +278,3,309 +278,4,278 +279,3,310 +279,4,279 +280,3,392 +280,4,280 +281,3,393 +281,4,281 +282,3,394 +282,4,282 +283,3,311 +283,4,283 +284,3,312 +284,4,284 +285,3,306 +285,4,285 +286,3,307 +286,4,286 +287,3,364 +287,4,287 +288,3,365 +288,4,288 +289,3,366 +289,4,289 +290,3,301 +290,4,290 +291,3,302 +291,4,291 +292,3,303 +292,4,292 +293,3,370 +293,4,293 +294,3,371 +294,4,294 +295,3,372 +295,4,295 +296,3,335 +296,4,296 +297,3,336 +297,4,297 +298,3,350 +298,4,298 +299,3,320 +299,4,299 +300,3,315 +300,4,300 +301,3,316 +301,4,301 +302,3,322 +302,4,302 +303,3,355 +303,4,303 +304,3,382 +304,4,304 +305,3,383 +305,4,305 +306,3,384 +306,4,306 +307,3,356 +307,4,307 +308,3,357 +308,4,308 +309,3,337 +309,4,309 +310,3,338 +310,4,310 +311,3,353 +311,4,311 +312,3,354 +312,4,312 +313,3,386 +313,4,313 +314,3,387 +314,4,314 +315,3,363 +315,4,315 +316,3,367 +316,4,316 +317,3,368 +317,4,317 +318,3,330 +318,4,318 +319,3,331 +319,4,319 +320,3,313 +320,4,320 +321,3,314 +321,4,321 +322,3,339 +322,4,322 +323,3,340 +323,4,323 +324,3,321 +324,4,324 +325,3,351 +325,4,325 +326,3,352 +326,4,326 +327,3,308 +327,4,327 +328,3,332 +328,4,328 +329,3,333 +329,4,329 +330,3,334 +330,4,330 +331,3,344 +331,4,331 +332,3,345 +332,4,332 +333,3,358 +333,4,333 +334,3,359 +334,4,334 +335,3,380 +335,4,335 +336,3,379 +336,4,336 +337,3,348 +337,4,337 +338,3,349 +338,4,338 +339,3,323 +339,4,339 +340,3,324 +340,4,340 +341,3,326 +341,4,341 +342,3,327 +342,4,342 +343,3,318 +343,4,343 +344,3,319 +344,4,344 +345,3,388 +345,4,345 +346,3,389 +346,4,346 +347,3,390 +347,4,347 +348,3,391 +348,4,348 +349,3,328 +349,4,349 +350,3,329 +350,4,350 +351,3,385 +351,4,351 +352,3,317 +352,4,352 +353,3,377 +353,4,353 +354,3,378 +354,4,354 +355,3,361 +355,4,355 +356,3,362 +356,4,356 +357,3,369 +357,4,357 +358,3,411 +358,4,358 +359,3,376 +359,4,359 +360,3,360 +360,4,360 +361,3,346 +361,4,361 +362,3,347 +362,4,362 +363,3,341 +363,4,363 +364,3,342 +364,4,364 +365,3,343 +365,4,365 +366,3,373 +366,4,366 +367,3,374 +367,4,367 +368,3,375 +368,4,368 +369,3,381 +369,4,369 +370,3,325 +370,4,370 +371,3,395 +371,4,371 +372,3,396 +372,4,372 +373,3,397 +373,4,373 +374,3,398 +374,4,374 +375,3,399 +375,4,375 +376,3,400 +376,4,376 +377,3,401 +377,4,377 +378,3,402 +378,4,378 +379,3,403 +379,4,379 +380,3,407 +380,4,380 +381,3,408 +381,4,381 +382,3,404 +382,4,382 +383,3,405 +383,4,383 +384,3,406 +384,4,384 +385,3,409 +385,4,385 +386,3,410 +386,4,386 +387,4,387 +388,4,388 +389,4,389 +390,4,390 +391,4,391 +392,4,392 +393,4,393 +394,4,394 +395,4,395 +396,4,396 +397,4,397 +398,4,398 +399,4,399 +400,4,400 +401,4,401 +402,4,402 +403,4,403 +404,4,404 +405,4,405 +406,4,406 +407,4,407 +408,4,408 +409,4,409 +410,4,410 +411,4,411 +412,4,412 +413,4,413 +414,4,414 +415,4,415 +416,4,416 +417,4,417 +418,4,418 +419,4,419 +420,4,420 +421,4,421 +422,4,422 +423,4,423 +424,4,424 +425,4,425 +426,4,426 +427,4,427 +428,4,428 +429,4,429 +430,4,430 +431,4,431 +432,4,432 +433,4,433 +434,4,434 +435,4,435 +436,4,436 +437,4,437 +438,4,438 +439,4,439 +440,4,440 +441,4,441 +442,4,442 +443,4,443 +444,4,444 +445,4,445 +446,4,446 +447,4,447 +448,4,448 +449,4,449 +450,4,450 +451,4,451 +452,4,452 +453,4,453 +454,4,454 +455,4,455 +456,4,456 +457,4,457 +458,4,458 +459,4,459 +460,4,460 +461,4,461 +462,4,462 +463,4,463 +464,4,464 +465,4,465 +466,4,466 +467,4,467 +468,4,468 +469,4,469 +470,4,470 +471,4,471 +472,4,472 +473,4,473 +474,4,474 +475,4,475 +476,4,476 +477,4,477 +478,4,478 +479,4,479 +480,4,480 +481,4,481 +482,4,482 +483,4,483 +484,4,484 +485,4,485 +486,4,486 +487,4,487 +488,4,488 +489,4,489 +490,4,490 +491,4,491 +492,4,492 +493,4,493 +496,4,496 +497,4,497 +498,4,498 +499,4,499 +500,4,500 +501,4,501 +502,4,502 +503,4,503 +504,4,504 +505,4,505 +506,4,506 +507,4,507 diff --git a/pokedex/db/tables.py b/pokedex/db/tables.py index 84db548..7b749cc 100644 --- a/pokedex/db/tables.py +++ b/pokedex/db/tables.py @@ -578,6 +578,12 @@ class PokemonHabitat(TableBase): id = Column(Integer, primary_key=True, nullable=False, autoincrement=False) name = Column(Unicode(16), nullable=False) +class PokemonInternalID(TableBase): + __tablename__ = 'pokemon_internal_ids' + pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, autoincrement=False, nullable=False) + generation_id = Column(Integer, ForeignKey('generations.id'), primary_key=True, autoincrement=False, nullable=False) + internal_id = Column(Integer, nullable=False) + class PokemonItem(TableBase): __tablename__ = 'pokemon_items' pokemon_id = Column(Integer, ForeignKey('pokemon.id'), primary_key=True, nullable=False, autoincrement=False)