aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-01-13 09:26:52 +0500
committerAbyss777 <abyss@fox5.ru>2017-01-16 13:44:54 +0500
commitcffbce4b3bc5ef817c4063a74f148a2a5986d58a (patch)
tree3eb18f009ec1a7ae5d806eed1a4af7b6a16840e2 /schema
parent3533a7c9007c4ef4f761ff4d959e396b65a7b140 (diff)
downloadtraccar-server-cffbce4b3bc5ef817c4063a74f148a2a5986d58a.tar.gz
traccar-server-cffbce4b3bc5ef817c4063a74f148a2a5986d58a.tar.bz2
traccar-server-cffbce4b3bc5ef817c4063a74f148a2a5986d58a.zip
Initial manager implementation
Diffstat (limited to 'schema')
-rw-r--r--schema/changelog-3.10.xml16
1 files changed, 16 insertions, 0 deletions
diff --git a/schema/changelog-3.10.xml b/schema/changelog-3.10.xml
index d39b36112..5ba882e0f 100644
--- a/schema/changelog-3.10.xml
+++ b/schema/changelog-3.10.xml
@@ -48,5 +48,21 @@
<column name="network" type="VARCHAR(4000)" />
</addColumn>
+ <addColumn tableName="users">
+ <column name="userlimit" type="INT" defaultValueNumeric="0" />
+ </addColumn>
+
+ <createTable tableName="user_user">
+ <column name="userid" type="INT">
+ <constraints nullable="false" />
+ </column>
+ <column name="otheruserid" type="INT">
+ <constraints nullable="false" />
+ </column>
+ </createTable>
+
+ <addForeignKeyConstraint baseTableName="user_user" baseColumnNames="userid" constraintName="fk_user_user_userid" referencedTableName="users" referencedColumnNames="id" onDelete="CASCADE" />
+ <addForeignKeyConstraint baseTableName="user_user" baseColumnNames="otheruserid" constraintName="fk_user_user_otheruserid" referencedTableName="users" referencedColumnNames="id" onDelete="CASCADE" />
+
</changeSet>
</databaseChangeLog>