Merge pull request 'Créer les tables seulement si elles n'existent pas déjà' (#27) from fix/seed-if-not-exists into main

Reviewed-on: #27
This commit is contained in:
Victor Lacasse-Beaudoin 2023-06-29 16:20:01 -05:00
commit c7d88737b8

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,