forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Structure Sync Problem
- This topic is empty.
-
AuthorPosts
-
-
January 9, 2004 at 10:46 pm #8295thgoodMember
The following fails because it used add column laborsoldprice after 'partsinvoiced' — partsinvoiced has already been dropped right before…
Seems to me that drops need to happen after adds to resolve this problem.
It would also be very useful to sync multiple databases to one “master structure”.
Thanks
Tom
mysql> alter table `andrewsofprinceton`.`invoices`,
-> drop column `partsinvoiced`,
-> add column `partssoldprice` double NOT NULL DEFAULT '0' after `totalcost`,
-> drop column `laborinvoiced`,
-> add column `laborsoldprice` double NOT NULL DEFAULT '0' after `partsinvoiced`,
-> drop column `subletsinvoiced`,
-> add column `subletssoldprice` double NOT NULL DEFAULT '0' after `laborinvoiced`,
-> drop column `feesinvoiced`,
-> add column `feessoldprice` double NOT NULL DEFAULT '0' after `subletsinvoiced`,
-> drop column `totalinvoiced`,
-> add column `totalsoldprice` double NOT NULL DEFAULT '0' after `feesinvoiced`,
-> drop column `totalinvoicedtax`,
-> add column `totalsoldpricetax` double NOT NULL DEFAULT '0' after `totalinvoiced`,
-> drop column `totalinvoicedandtaxed`,
-> add column `totalsoldpriceandtaxed` double NOT NULL DEFAULT '0' after `totalinvoicedtax`,
-> add column `laborsoldpricequantity` double NOT NULL DEFAULT '0' after `totalinvoicedandtaxed`;
-
January 10, 2004 at 2:22 am #15390RiteshMember
Can you send me the SQL script of both the tables? It will be very helpful in fixing the bug.
Thanks for your feature request, I have forwarded it to my development team.
-
January 31, 2004 at 6:28 pm #15391thgoodMember
I am sorry, I deleted the related update files. If it happens again I will send you all the details.
-
-
AuthorPosts
- You must be logged in to reply to this topic.