mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-06 23:05:45 -04:00
Split up database.sql in scripts for tables and contraints.
Use both new scripts in phppos_migrate.sql
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user