You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
412 B
14 lines
412 B
2 years ago
|
from ispoof.objects import Pokemon, Raid
|
||
|
from ispoof.lists.playerhistory import PlayerHistory
|
||
|
from sqlalchemy.engine import Engine
|
||
|
from sqlalchemy.exc import ArgumentError
|
||
|
|
||
|
|
||
|
def initialize_database(engine: Engine):
|
||
|
try:
|
||
|
Pokemon.metadata.create_all(engine)
|
||
|
Raid.metadata.create_all(engine)
|
||
|
PlayerHistory.metadata.create_all(engine)
|
||
|
except ArgumentError:
|
||
|
print("Exception")
|