<reponame>RyanSowden/fsk
from db_connect import connection

c = connection.cursor() #Establishing the connection to the database

c.execute(
        '''CREATE TABLE IF NOT EXISTS league
        (id SERIAL PRIMARY KEY, league_name text, league_number integer)'''
        )
print('Table successfully created')
connection.commit()# commiting the table to the database
c.close() # closing the conneciton - very important

from db_connect import connection

c = connection.cursor() #Establishing the connection to the database

c.execute(
        '''CREATE TABLE IF NOT EXISTS league
        (id SERIAL PRIMARY KEY, league_name text, league_number integer)'''
        )
print('Table successfully created')
connection.commit()# commiting the table to the database
c.close() # closing the conneciton - very important
#Establishing the connection to the database CREATE TABLE IF NOT EXISTS league         (id SERIAL PRIMARY KEY, league_name text, league_number integer) # commiting the table to the database # closing the conneciton - very important