[ 
https://issues.apache.org/jira/browse/IBATIS-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742651#action_12742651
 ] 

Ken Chau edited comment on IBATIS-623 at 8/12/09 4:26 PM:
----------------------------------------------------------


Index: template_changelog.sql
===================================================================
--- template_changelog.sql      (revision 803739)
+++ template_changelog.sql      (working copy)
@@ -1,4 +1,4 @@
---// Create Changelog
+-- // Create Changelog
 
 -- Default DDL for changelog table that will keep
 -- a record of the migrations that have been run.
@@ -19,6 +19,6 @@
   ADD CONSTRAINT PK_${changelog}
   PRIMARY KEY (id);
 
---//@UNDO
+-- //@UNDO
 
 DROP TABLE ${changelog};
\ No newline at end of file
Index: template_migration.sql
===================================================================
--- template_migration.sql      (revision 803739)
+++ template_migration.sql      (working copy)
@@ -1,9 +1,9 @@
---// ${description}
+-- // ${description}
 -- Migration SQL that makes the change goes here.
 
 
 
---//@UNDO
+-- //@UNDO
 -- SQL to undo the change goes here.
 
 
Index: template_bootstrap.sql
===================================================================
--- template_bootstrap.sql      (revision 803739)
+++ template_bootstrap.sql      (working copy)
@@ -1,17 +1,17 @@
---// Bootstrap.sql
+-- // Bootstrap.sql
 
 -- This is the only SQL script file that is NOT
 -- a valid migration and will not be run or tracked
 -- in the changelog.  There is no @UNDO section.
 
---// Do I need this file?
+-- // Do I need this file?
 
 -- New projects likely won't need this file.
 -- Existing projects will likely need this file.
 -- It's unlikely that this bootstrap should be run
 -- in the production environment.
 
---// Purpose
+-- // Purpose
 
 -- The purpose of this file is to provide a facility
 -- to initialize the database to a state before iBATIS
@@ -22,7 +22,7 @@
 -- be put in this bootstrap file (but does not have
 -- to be if you are comfortable with your current process.
 
---// Running
+-- // Running
 
 -- The bootstrap SQL is run with the "migrate bootstrap"
 -- command.  It must be run manually, it's never run as


      was (Author: lqqkout4elfy):
    {code}
Index: template_changelog.sql
===================================================================
--- template_changelog.sql      (revision 803739)
+++ template_changelog.sql      (working copy)
@@ -1,4 +1,4 @@
---// Create Changelog
+-- // Create Changelog
 
 -- Default DDL for changelog table that will keep
 -- a record of the migrations that have been run.
@@ -19,6 +19,6 @@
   ADD CONSTRAINT PK_${changelog}
   PRIMARY KEY (id);
 
---//@UNDO
+-- //@UNDO
 
 DROP TABLE ${changelog};
\ No newline at end of file
Index: template_migration.sql
===================================================================
--- template_migration.sql      (revision 803739)
+++ template_migration.sql      (working copy)
@@ -1,9 +1,9 @@
---// ${description}
+-- // ${description}
 -- Migration SQL that makes the change goes here.
 
 
 
---//@UNDO
+-- //@UNDO
 -- SQL to undo the change goes here.
 
 
Index: template_bootstrap.sql
===================================================================
--- template_bootstrap.sql      (revision 803739)
+++ template_bootstrap.sql      (working copy)
@@ -1,17 +1,17 @@
---// Bootstrap.sql
+-- // Bootstrap.sql
 
 -- This is the only SQL script file that is NOT
 -- a valid migration and will not be run or tracked
 -- in the changelog.  There is no @UNDO section.
 
---// Do I need this file?
+-- // Do I need this file?
 
 -- New projects likely won't need this file.
 -- Existing projects will likely need this file.
 -- It's unlikely that this bootstrap should be run
 -- in the production environment.
 
---// Purpose
+-- // Purpose
 
 -- The purpose of this file is to provide a facility
 -- to initialize the database to a state before iBATIS
@@ -22,7 +22,7 @@
 -- be put in this bootstrap file (but does not have
 -- to be if you are comfortable with your current process.
 
---// Running
+-- // Running
 
 -- The bootstrap SQL is run with the "migrate bootstrap"
 -- command.  It must be run manually, it's never run as
{code}
  
> Generated migration scripts are not valid for MySQL
> ---------------------------------------------------
>
>                 Key: IBATIS-623
>                 URL: https://issues.apache.org/jira/browse/IBATIS-623
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 3.0 Beta 1 
>            Reporter: Ken Chau
>             Fix For: 3.0 GA
>
>
> When generating migration files, it generates comments with this syntax:
> --//@UNDO
> This is not valid under MySQL. There needs to be a space after the two dashes.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ibatis.apache.org
For additional commands, e-mail: dev-h...@ibatis.apache.org

Reply via email to