test if /install exists

This commit is contained in:
Nicolas Lœuillet
2013-08-08 09:11:12 +02:00
parent 7aa8ccc47d
commit ed06f04077
4 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<?php
# import script to upgrade from poche 0.3
$db_path = 'sqlite:../db/poche.sqlite';
$handle = new PDO($db_path);
$handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);