neutrino36
(neutrino neutrino)
July 30, 2019, 12:18pm
#1
Hello,
I have the next scenario. A project is already opened, closed and after this the same project is imported (with Cuba). In this case in update file appear new scripts (not necessary ) generated for every build. Of course after get rid of them the program works fine.
Why do these new (parasites) scripts appear?
zlatoverov
(Alexander Zlatoverov)
July 31, 2019, 8:22am
#3
neutrino:
I have the next scenario. A project is already opened, closed and after this the same project is imported (with Cuba). In this case in update file appear new scripts (not necessary ) generated for every build. Of course after get rid of them the program works fine.
Why do these new (parasites) scripts appear?
Hi, @neutrino ! I understand your scenario like this:
Open a project (the project was successfully imported).
Run ‘CUBA Application’
Studio show dialog ‘Database scheme does not conform to the data model.’
But, you did not make changes to the data model (entities).
Did I understand you correctly? If yes, attach parasites scripts.
neutrino36
(neutrino neutrino)
July 31, 2019, 1:43pm
#4
Yes, you are right!
Unfortunately I delete them.
neutrino36
(neutrino neutrino)
August 1, 2019, 8:04am
#5
Finally I found the scripts:
190730-2-updateInvoice01.sql
alter table CRM_INVOICE add constraint FK_CRM_INVOICE_TRANSACTION foreign key (TRANSACTION_ID) references CRM_TRANSACTION(ID);
create index IDX_CRM_INVOICE_TRANSACTION on CRM_INVOICE (TRANSACTION_ID);
190730-2-updateInvoice02.sql
alter table CRM_INVOICE add constraint FK_CRM_INVOICE_PRICELIST foreign key (PRICELIST_ID) references CRMRAI_PRICE_LIST(ID);
create index IDX_CRM_INVOICE_PRICELIST on CRM_INVOICE (PRICELIST_ID);
The problem is even I update database these scripts appear every time when I run (build) the program.
What should I do?
zlatoverov
(Alexander Zlatoverov)
August 7, 2019, 7:21am
#6
Do these scripts apply? Are constraints and indexes created in a DB? As a workaround, you can exclude these scripts.