Switch to new addRequestType from API.

This commit is contained in:
Bradley M. Kuhn 2015-12-13 12:34:08 -08:00
parent b5954e391e
commit a3296f4b92

View file

@ -19,12 +19,8 @@ my $dbhNew = DBI->connect("dbi:SQLite:dbname=$NEW_SUPPORTERS_SQLITE_DB_FILE", ""
# Insert t-shirt types and sizes
my $sthInsertRequestType = $dbhNew->prepare("INSERT INTO request_type(type) values(?)");
$sthInsertRequestType->execute("t-shirt-0");
my $tShirt0RequestTypeId = $dbhNew->last_insert_id("","","","");
$sthInsertRequestType->execute("t-shirt-1");
my $tShirt1RequestTypeId = $dbhNew->last_insert_id("","","","");
my $tShirt0RequestTypeId = $sp->addRequestType("t-shirt-0");
my $tShirt1RequestTypeId = $sp->addRequestType("t-shirt-1");
my %tShirt0SizeRequestConfigurationIds;