aboutsummaryrefslogtreecommitdiff
path: root/database/db.changelog-3.0.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-25 15:48:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-25 15:48:27 +1300
commit28eac4e15b950f832f52ad3cb3b0426f3e590d9c (patch)
tree42620399466b641be7f257ba0fe3701f8ac2860c /database/db.changelog-3.0.xml
parentff8b6278529338a037df2e577267c7c5b6d1c69f (diff)
downloadtrackermap-server-28eac4e15b950f832f52ad3cb3b0426f3e590d9c.tar.gz
trackermap-server-28eac4e15b950f832f52ad3cb3b0426f3e590d9c.tar.bz2
trackermap-server-28eac4e15b950f832f52ad3cb3b0426f3e590d9c.zip
Update scripts to work with SQL Server
Diffstat (limited to 'database/db.changelog-3.0.xml')
-rw-r--r--database/db.changelog-3.0.xml8
1 files changed, 6 insertions, 2 deletions
diff --git a/database/db.changelog-3.0.xml b/database/db.changelog-3.0.xml
index 5e803794b..453f6f00b 100644
--- a/database/db.changelog-3.0.xml
+++ b/database/db.changelog-3.0.xml
@@ -21,7 +21,7 @@
<constraints nullable="false" />
</column>
<column name="email" type="VARCHAR(256)">
- <constraints nullable="false" unique="true" />
+ <constraints nullable="false" />
</column>
<column name="hashedPassword" type="VARCHAR(1024)">
<constraints nullable="false" />
@@ -58,6 +58,8 @@
</column>
</createTable>
+ <addUniqueConstraint tableName="user" columnNames="email" constraintName="uk_user_email" />
+
<createTable tableName="device">
<column name="id" type="INT" autoIncrement="true">
<constraints primaryKey="true" />
@@ -66,7 +68,7 @@
<constraints nullable="false" />
</column>
<column name="uniqueId" type="VARCHAR(256)">
- <constraints nullable="false" unique="true" />
+ <constraints nullable="false" />
</column>
<column name="status" type="VARCHAR(1024)" />
<column name="lastUpdate" type="TIMESTAMP" />
@@ -74,6 +76,8 @@
<column name="dataId" type="INT" />
</createTable>
+ <addUniqueConstraint tableName="device" columnNames="uniqueId" constraintName="uk_device_uniqueId" />
+
<createTable tableName="user_device">
<column name="userId" type="INT">
<constraints nullable="false" />