mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-01 00:08:27 +01:00
36 lines
1.0 KiB
XML
36 lines
1.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<databaseChangeLog
|
|
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
|
|
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd">
|
|
|
|
<changeSet id="001-create-strategies" author="fijabakk">
|
|
<sql>
|
|
CREATE TABLE strategies (
|
|
created_at timestamp default now(),
|
|
name varchar(255) PRIMARY KEY NOT NULL,
|
|
description text
|
|
);
|
|
|
|
CREATE TABLE features (
|
|
created_at timestamp default now(),
|
|
name varchar(255) PRIMARY KEY NOT NULL,
|
|
strategy_name varchar(255) references strategies(name),
|
|
parameters json
|
|
);
|
|
|
|
CREATE TABLE events (
|
|
created_at timestamp default now(),
|
|
type varchar(255) NOT NULL,
|
|
data json
|
|
);
|
|
</sql>
|
|
|
|
<rollback>
|
|
DROP TABLE strategies;
|
|
DROP TABLE features;
|
|
</rollback>
|
|
</changeSet>
|
|
</databaseChangeLog>
|