Split up database.sql in scripts for tables and contraints.

Use both new scripts in phppos_migrate.sql
This commit is contained in:
jekkos
2016-01-05 07:16:05 +01:00
parent 31a223cece
commit b1ba7d0afe
4 changed files with 857 additions and 854 deletions

View File

@@ -1,9 +1,8 @@
--
-- This migration script should be run AFTER creating tables with the regular database script and BEFORE applying the constraints. Ideally the database.sql should be split in two
-- and the first part of it can be source beginning of this script, while contraints whill be sourced in the end.
-- This migration script should be run after creating tables with the regular database script and before applying the constraints.
--
source tables.sql;
--
-- Dumping data for table `ospos_customers`
--
@@ -109,3 +108,5 @@ INSERT INTO `ospos_item_quantities` (`item_id`, `location_id`, `quantity`) SELE
--
INSERT INTO `ospos_suppliers` (`person_id`, `company_name`, `account_number`, `deleted`) SELECT `person_id`, `company_name`, `account_number`, `deleted` FROM `phppos`.phppos_suppliers;
source constraints.sql;