Browse Source

fixup! src: Add a sqlite database

master
Elis Hirwing 3 years ago
parent
commit
8f072bccfc
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 6
      public/index.php

6
public/index.php

@ -34,11 +34,7 @@ $container['db'] = function (Slim\Container $c) {
$pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);
$pdo->exec(
'DROP TABLE IF EXISTS inventory;'
);
$pdo->exec(
'CREATE TABLE inventory (
'CREATE TABLE IF NOT EXISTS inventory (
item_id INTEGER PRIMARY KEY,
item_name TEXT NOT NULL,
item_stock INTEGER NOT NULL

Loading…
Cancel
Save