HERES THE SQL ERROR
Table '[DATABASE].[PREFIX]demo2480_orders' doesn't exist SQL=INSERT INTO `[PREFIX]demo2480_orders` (`id`, `params`, `order_ref`, `order_description`) VALUES (1,'',123,'TEST ORDER1'),(2,'',1234,'TEST ORDER2'),(3,'',456,'Test Order 3');
Table '[DATABASE].[PREFIX]demo2480_orders' doesn't exist SQL=INSERT INTO `[PREFIX]demo2480_orders` (`id`, `params`, `order_ref`, `order_description`) VALUES (1,'',123,'TEST ORDER1'),(2,'',1234,'TEST ORDER2'),(3,'',456,'Test Order 3');
Duplicate entry '1' for key 'PRIMARY' SQL=INSERT INTO `[PREFIX]demo2480_orderdetails` (`id`, `params`, `qty`, `item_des`, `orders_fk`) VALUES (1,'',1,'Ordered item 1',1),(2,'',4,'ordered item 2',1),(3,'',2,'Ordered item 3',2),(4,'',7,'ordered item 4',2),(5,'',345,'ordered item 7',0);
THIS TIME THE ERROR IS AGAINST THE PARENT TABLE
*****IT IS THE ALIASES and how they are updated when changed*****
*****IT CAN EFFECT BOTH PARENT AND CHILDREN TABLES*******
CAUSES DATA LOSS ON RESTORE DATA IF...
if you change the table alias and then save (dont use refresh alias button see below)
Here is an example
the default alias values were used that reflected the table name
- data entry,backup and restore operations are confirmed to work properly
- Default values DO NOT cause data loss
but here is how i can get it to loose data
I just added "alias" to the end of the default table and item aliases
- you could change it to "anythingyoulike" and it would still fail
Collection Items Entry point (view)
Table title :Orders............................Item title : Orders item........................Is Front-end default: yes
Table alias : ordersalias...................Item alias : ordersitemalias................Is Back-end default: yes
IT DOES NOT CAUSE THE ISSUE OF DATA LOSS IF...
* if you change the table alias through the refresh - auto complete alias button