Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. -- Start the transaction
  2. START TRANSACTION;
  3.  
  4. -- Delete all the table data
  5. -- All other qb_* tables are deleted by CASCADING DELETEs
  6. DELETE FROM `manfstudio_dev`.`qb_items`;
  7. DELETE FROM `manfstudio_dev`.`qb_inventory_sites`;
  8.  
  9. -- Insert Inventory Site records
  10. INSERT INTO `manfstudio_dev`.`qb_inventory_sites` (`site_id`, `name`) VALUES ('80000002-1477203394', 'CA-Orange');
  11. INSERT INTO `manfstudio_dev`.`qb_inventory_sites` (`site_id`, `name`) VALUES ('80000001-1476941342', 'Drop Ship');
  12.  
  13. -- Insert Item records
  14. INSERT INTO `manfstudio_dev`.`qb_items` (`item_id`, `name`, `item_number_type`, `type`) VALUES ('8000000A-1484095135', '- Internal Labor -', 'NONE', 'Service');
  15.  
  16. -- The following insert will throw an exception
  17. INSERT INTO `manfstudio_dev`.`qb_items` (`item_id`, `name`, `item_numffffber_type`, `type`) VALUES ('80000024-1484102389', 'General Device Assembly Labor', 'NONE', 'Service');
  18. INSERT INTO `manfstudio_dev`.`qb_items` (`item_id`, `name`, `item_number_type`, `type`) VALUES ('80000009-1483733754', 'Miscellaneous', 'NONE', 'Service');
  19.  
  20. -- Commit the transaction
  21. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement