From e3053c785d270c8b6e44405c7fe4107a08f53d09 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 18 May 2015 11:11:06 +0200 Subject: [PATCH] Changed sql conventions --- server.js | 2 +- sql/backup.pgsql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server.js b/server.js index e2a8c22..01ede7f 100644 --- a/server.js +++ b/server.js @@ -62,5 +62,5 @@ pg.connect(pgc.url, function(err, client, done) { return console.error('error fetching client from pool', err); } - client.query('INSERT INTO Users(name) VALUES(\'Hello\')'); + client.query('INSERT INTO users(name) VALUES(\'Hello\')'); }); diff --git a/sql/backup.pgsql b/sql/backup.pgsql index 99ff625..3f59a8e 100644 --- a/sql/backup.pgsql +++ b/sql/backup.pgsql @@ -1,6 +1,6 @@ -DROP TABLE IF EXISTS Users; +DROP TABLE IF EXISTS users; -CREATE TABLE Users ( +CREATE TABLE users ( id SERIAL PRIMARY KEY, name char(50) );