mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-11-22 14:23:00 +01:00
Enhance database insertion logic to handle duplicates and ensure unique type names
This commit is contained in:
1 parent
50cad302cf
commit
65d8752829
3 files changed
+13762
-11
No files matched your search
@@ -15,7 +15,7 @@ CREATE TABLE IF NOT EXISTS pokemon (
|
||||
-- Table to store Pokémon types
|
||||
CREATE TABLE IF NOT EXISTS types (
|
||||
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
name VARCHAR(50) NOT NULL
|
||||
name VARCHAR(50) NOT NULL UNIQUE
|
||||
);
|
||||
|
||||
-- Table to store Pokémon abilities
|
||||
|
||||
Reference in new issue
Block a user