Permalink
Browse files

Bug fixes to TickIt 2.1

Fixed a couple of minor bugs with TickIt
Signed-off-by: Adam Jimerson <vendion@gmail.com>
  • Loading branch information...
vendion committed Dec 29, 2010
1 parent 861e36a commit 76cb3b3ddc18a7181db3257168372c71aa15e57a
Showing with 2 additions and 4 deletions.
  1. +1 −1 Repairs.sql
  2. +1 −3 TickItAdmin.pl
View
@@ -45,7 +45,7 @@ ALTER TABLE public.computer OWNER TO cscc;
DROP TABLE IF EXISTS customers;
CREATE TABLE customers (
- id character varying(10) NOT NULL,
+ id character varying(12) NOT NULL,
firstname character varying(255) NOT NULL,
lastname character varying(255) NOT NULL,
email character varying(255) NOT NULL,
View
@@ -433,8 +433,8 @@ sub db_remove {
if ( $barcode == q[] ) {
($barcode) = get_barcode();
}
- $dbh->do("DELETE FROM customers WHERE id = \'$barcode\'");
$dbh->do("DELETE FROM computer WHERE custid = \'$barcode\'");
+ $dbh->do("DELETE FROM customers WHERE id = \'$barcode\'");
print "Delete Completed\nPress Enter To Continue\n";
<>;
clear_screen();
@@ -777,8 +777,6 @@ sub eoy {
sleep 1;
$dbh->do('DROP TABLE config');
sleep 1;
- $dbh->do('\i Repairs.sql');
- sleep 3;
if ( $DBI::errstr ) {
my ( $time ) = get_time('time');
print $LOG "[$time] ERROR: $dbh->errstr\n";

0 comments on commit 76cb3b3

Please sign in to comment.