This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/comment/schema.xml
shish 21ee529256 copy & paste artefact
git-svn-id: file:///home/shish/svn/shimmie2/trunk@709 7f39781d-f577-437e-ae19-be835c7a54ca
2008-01-27 17:18:56 +00:00

21 lines
910 B
XML

<?xml version="1.0"?>
<schema version="0.3">
<!-- FIXME: mysql utf8ness -->
<table name="comments">
<field name="id" type="I"><key/><autoincrement/></field>
<field name="image_id" type="I"><notnull/></field><!-- references -->
<field name="owner_id" type="I"><notnull/></field><!-- references -->
<field name="owner_ip" type="C" size="15"><notnull/></field>
<field name="posted" type="T"><notnull/></field>
<field name="comment" type="X" size="4000"><notnull/></field>
<index name="comments__image_id"><col>image_id</col></index>
<index name="comments__owner_ip"><col>owner_ip</col></index>
<index name="comments__posted"><col>posted</col></index>
<opt platform="mysql">DEFAULT CHARSET='utf8'</opt>
</table>
<sql>
<query>DELETE FROM config WHERE name='ext_comments_version'</query>
<query>INSERT INTO config(name, value) VALUES('ext_comments_version', 3)</query>
</sql>
</schema>