Créer les tables seulement si elles n'existent pas déjà #27
1 changed files with 2 additions and 2 deletions
|
@ -1,12 +1,12 @@
|
|||
package models
|
||||
|
||||
const Schema = `
|
||||
CREATE TABLE programmes (
|
||||
CREATE TABLE IF NOT EXISTS programmes (
|
||||
id TEXT PRIMARY KEY,
|
||||
titre TEXT
|
||||
);
|
||||
|
||||
CREATE TABLE membres (
|
||||
CREATE TABLE IF NOT EXISTS membres (
|
||||
id VARCHAR(7) PRIMARY KEY,
|
||||
last_name TEXT,
|
||||
first_name TEXT,
|
||||
|
|
Loading…
Reference in a new issue