-added liquibase support
This commit is contained in:
parent
6f73e6303b
commit
2818cc95b7
1285 changed files with 385703 additions and 0 deletions
10
install/airtime-upgrade.php
Normal file
10
install/airtime-upgrade.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
$command = __DIR__."/../library/liquibase/liquibase --driver=org.postgresql.Driver "
|
||||
."--classpath=".__DIR__."/../library/liquibase/lib/postgresql-9.0-801.jdbc4.jar "
|
||||
."--changeLogFile=".__DIR__."/upgrade/db.changelog.xml "
|
||||
."--url=\"jdbc:postgresql://localhost:5432/airtime\" "
|
||||
."--username=airtime "
|
||||
."--password=airtime "
|
||||
."migrate";
|
||||
system($command);
|
23
install/upgrade/db.changelog.xml
Normal file
23
install/upgrade/db.changelog.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
|
||||
|
||||
<!--
|
||||
<changeSet id="1" author="bob">
|
||||
<createTable tableName="department">
|
||||
<column name="id" type="int">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="name" type="varchar(50)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="active" type="boolean" defaultValueBoolean="true"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
-->
|
||||
|
||||
</databaseChangeLog>
|
Loading…
Add table
Add a link
Reference in a new issue