|
|
@@ -9,9 +9,12 @@ cursor = db.cursor() |
|
|
|
|
|
|
|
cursor.execute("""PRAGMA foreign_keys=ON;""") |
|
|
|
cursor.execute("""CREATE TABLE IF NOT EXISTS localites( |
|
|
|
ID_Localite INTEGER PRIMARY KEY AUTOINCREMENT, |
|
|
|
zipcode TEXT, |
|
|
|
localite TEXT); |
|
|
|
ID_Localite INTEGER PRIMARY KEY, |
|
|
|
"zipcode" TEXT, |
|
|
|
"localite" TEXT, |
|
|
|
"sous-commune" TEXT, |
|
|
|
"commune-principale" TEXT, |
|
|
|
"province" TEXT); |
|
|
|
""") |
|
|
|
cursor.execute("""CREATE TABLE IF NOT EXISTS eleves( |
|
|
|
ID_Eleve INTEGER PRIMARY KEY AUTOINCREMENT, |
|
|
|