Créer les tables seulement si elles n'existent pas déjà #27

Merged
vlbeaudoin merged 1 commit from fix/seed-if-not-exists into main 2023-06-29 17:20:01 -04:00
Showing only changes of commit 2a391ae80d - Show all commits

View file

@ -1,12 +1,12 @@
package models package models
const Schema = ` const Schema = `
CREATE TABLE programmes ( CREATE TABLE IF NOT EXISTS programmes (
id TEXT PRIMARY KEY, id TEXT PRIMARY KEY,
titre TEXT titre TEXT
); );
CREATE TABLE membres ( CREATE TABLE IF NOT EXISTS membres (
id VARCHAR(7) PRIMARY KEY, id VARCHAR(7) PRIMARY KEY,
last_name TEXT, last_name TEXT,
first_name TEXT, first_name TEXT,