Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Issue with formatted sql

$
0
0
Hi
I'm trying to get Liquibase 3.0.5 running with formatted sql

in my sql file I have
  1. -liquibase formatted sql

  2. --changeset jvddrift:1 dbms:MySQL
  3. CREATE TABLE 'department' ('id' int(11) NOT NULL,'name' varchar(50) NOT NULL,'active' bit(1) DEFAULT '1',PRIMARY KEY ('id'));
This file is included in a changeset.xml file as follows
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <databaseChangeLog
  4.   xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
  5.   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6.   xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
  7.          http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">
  8.  
  9.     <include file="c:/temp/liquibase/liquibase.sql" />
  10.   
  11. </databaseChangeLog>

howevere when I run liquibase, I get the following error
  1.  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--liquibase formatted sql
Running the create query in MySQL (5.5.28) works without any problem

I'm using Liquibase for the first time, so I have no idea on what is going wrong here. 
Can anyone help?




Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>