mirror of
https://github.com/traccar/traccar.git
synced 2025-01-07 03:07:01 +08:00
Add table for command queue
This commit is contained in:
parent
e7a5d1e1f4
commit
f358feda0b
@ -17,6 +17,39 @@
|
||||
<column name="overspeedgeofenceid" type="INT" defaultValueNumeric="0" />
|
||||
</addColumn>
|
||||
|
||||
<createTable tableName="tc_commands_queue">
|
||||
<column autoIncrement="true" name="id" type="INT">
|
||||
<constraints primaryKey="true" />
|
||||
</column>
|
||||
<column name="deviceid" type="INT">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
<column name="description" type="VARCHAR(4000)">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
<column name="type" type="VARCHAR(128)">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
<column name="textchannel" type="BOOLEAN" defaultValueBoolean="false">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
<column name="attributes" type="VARCHAR(4000)">
|
||||
<constraints nullable="false" />
|
||||
</column>
|
||||
</createTable>
|
||||
|
||||
<addForeignKeyConstraint
|
||||
baseTableName="tc_commands_queue"
|
||||
baseColumnNames="deviceid"
|
||||
constraintName="fk_commands_queue_deviceid"
|
||||
onDelete="CASCADE"
|
||||
referencedColumnNames="id"
|
||||
referencedTableName="tc_devices" />
|
||||
|
||||
<createIndex tableName="tc_commands_queue" indexName="idx_commands_queue_deviceid">
|
||||
<column name="deviceid" />
|
||||
</createIndex>
|
||||
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
Loading…
Reference in New Issue
Block a user