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

Can I include SQL file in a changeset?

$
0
0

Hi,

I am new to Liquibase. We already have a folder structure where we keep all our Database objects categorized by its use. I am trying to implement liquibase to manage our database object release using changesets. My question is, can I create a XML changelog file and include all the DB .sql script files, that we want to release, under a changeset and include sub changelog files into the Master changelog file? Is there limit on how many changelog file you can chain together?

Example ..
Our folder structure

VOB

   |

   |____________Impl

                               |

                               |_________Database

                                                         |

                                                         |_______ChangeSet (D)

                                                         |

                                                         |_______LiquibaseBaseLine (D)

                                                         |

                                                         |_______Performance (D)

                                                         |

                                                         |_______StoredProcedures (D)

                                                         |

                                                         |_______UserDefinedFunctions (D)

                                                         |­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­_______changelog.xml (File)
Note: (D) = Directories
 
 

So, Database is our root directory, under database directory we have the changelog-master file, in addition to DB Object directories. I am thinking of creating a changelog files under each directory and include only those .sql files, under each changeset, that is valid for that change set.

If what I outlined is possible,

-- Can I use same changeset name & ID in all the changelog files?

Any feedbacks will be greatly appreciated.

Regards,

Kumar Alwar.


Viewing all articles
Browse latest Browse all 2993

Trending Articles