fe8bae31dc
adding auto increment/PK to table files_trash adding PK to table ldap_user_mapping and ldap_group_members adding PK to table ldap_group_mapping truncate permissions table to allow smooth creation of primary key adding unit test for creating an auto increment column on a table which already contains data remove unneeded table files_trashsizes fix unit test no need to truncate *PREFIX*permissions On Oracle adding auto increment columns is not working out of the box - Oracle migrations are to be done manually
147 lines
2.4 KiB
XML
147 lines
2.4 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<database>
|
|
|
|
<name>*dbname*</name>
|
|
<create>true</create>
|
|
<overwrite>false</overwrite>
|
|
<charset>utf8</charset>
|
|
|
|
<table>
|
|
|
|
<name>*dbprefix*ldap_user_mapping</name>
|
|
|
|
<declaration>
|
|
|
|
<field>
|
|
<name>ldap_dn</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<field>
|
|
<name>owncloud_name</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<field>
|
|
<name>directory_uuid</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<index>
|
|
<name>ldap_dn_users</name>
|
|
<unique>true</unique>
|
|
<field>
|
|
<name>ldap_dn</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>owncloud_name_users</name>
|
|
<primary>true</primary>
|
|
<unique>true</unique>
|
|
<field>
|
|
<name>owncloud_name</name>
|
|
<sorting>ascending</sorting>
|
|
</field>
|
|
</index>
|
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
<table>
|
|
|
|
<name>*dbprefix*ldap_group_mapping</name>
|
|
|
|
<declaration>
|
|
|
|
<field>
|
|
<name>ldap_dn</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<field>
|
|
<name>owncloud_name</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<field>
|
|
<name>directory_uuid</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<index>
|
|
<name>ldap_dn_groups</name>
|
|
<unique>true</unique>
|
|
<primary>true</primary>
|
|
<field>
|
|
<name>ldap_dn</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>owncloud_name_groups</name>
|
|
<unique>true</unique>
|
|
<field>
|
|
<name>owncloud_name</name>
|
|
<sorting>ascending</sorting>
|
|
</field>
|
|
</index>
|
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
|
<table>
|
|
|
|
<name>*dbprefix*ldap_group_members</name>
|
|
|
|
<declaration>
|
|
|
|
<field>
|
|
<name>owncloudname</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>255</length>
|
|
<default></default>
|
|
</field>
|
|
|
|
<field>
|
|
<name>owncloudusers</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
|
|
<index>
|
|
<name>ldap_group_members_index</name>
|
|
<unique>true</unique>
|
|
<primary>true</primary>
|
|
<field>
|
|
<name>owncloudname</name>
|
|
</field>
|
|
</index>
|
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
</database>
|