diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-06-28 14:09:44 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-28 14:09:44 +1200 |
commit | 7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48 (patch) | |
tree | 0ea99ab937fbae96b35cc5dc62edbc74594af9e4 /schema | |
parent | 67f46c80d3b5e34440a2644f52b81dddfbaba5fa (diff) | |
parent | 61b2486353c742afe6214f0a0c5c2e9956ea3b97 (diff) | |
download | trackermap-server-7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48.tar.gz trackermap-server-7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48.tar.bz2 trackermap-server-7327681f0bd2338f9c8ee3ea1b4a19dcc5f0de48.zip |
Merge pull request #2052 from Abyss777/master
Notifications via email
Diffstat (limited to 'schema')
-rw-r--r-- | schema/changelog-3.6.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/schema/changelog-3.6.xml b/schema/changelog-3.6.xml index 13d4cae60..a17b68e47 100644 --- a/schema/changelog-3.6.xml +++ b/schema/changelog-3.6.xml @@ -90,5 +90,28 @@ <addForeignKeyConstraint baseTableName="device_geofence" baseColumnNames="deviceid" constraintName="fk_user_device_geofence_deviceid" referencedTableName="devices" referencedColumnNames="id" onDelete="CASCADE" /> <addForeignKeyConstraint baseTableName="device_geofence" baseColumnNames="geofenceid" constraintName="fk_user_device_geofence_geofenceid" referencedTableName="geofences" referencedColumnNames="id" onDelete="CASCADE" /> + <createTable tableName="notifications"> + <column name="id" type="INT" autoIncrement="true"> + <constraints primaryKey="true" /> + </column> + <column name="userid" type="INT"> + <constraints nullable="false" /> + </column> + <column name="type" type="VARCHAR(128)"> + <constraints nullable="false" /> + </column> + <column name="attributes" type="VARCHAR(4096)"> + <constraints nullable="false" /> + </column> + </createTable> + + <addForeignKeyConstraint baseTableName="notifications" baseColumnNames="userid" constraintName="fk_notifications_userid" referencedTableName="users" referencedColumnNames="id" onDelete="CASCADE" /> + + <addColumn tableName="users"> + <column name="attributes" type="VARCHAR(4096)" /> + </addColumn> + + <addNotNullConstraint tableName="users" columnName="attributes" columnDataType="VARCHAR(4096)" defaultNullValue="{}" /> + </changeSet> </databaseChangeLog> |