aboutsummaryrefslogtreecommitdiff
path: root/database/db.changelog-3.0.xml
diff options
context:
space:
mode:
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" />