Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Structure Sync Problem

forums forums SQLyog SQLyog: Bugs / Feature Requests Structure Sync Problem

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #8295
      thgood
      Member

      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`;

    • #15390
      Ritesh
      Member

      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.

    • #15391
      thgood
      Member

      I am sorry, I deleted the related update files. If it happens again I will send you all the details.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.