cvs: pearweb /sql pearweb_mdb2schema.xml
| From: | Greg Beaver | Date: | Wed, 29 Nov 2006 04:34:05 +0000 |
| Subject: | cvs: pearweb /sql pearweb_mdb2schema.xml | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5227@lists.php.net to get a copy of this message | ||
cellog Wed Nov 29 04:34:05 2006 UTC
Modified files:
/pearweb/sql pearweb_mdb2schema.xml
Log:
add election tables to mdb2_schema .xml file
# all ready for final testing now before 1.0
http://cvs.php.net/viewvc.cgi/pearweb/sql/pearweb_mdb2schema.xml?r1=1.12&r2=1.13&diff_format=u
Index: pearweb/sql/pearweb_mdb2schema.xml
diff -u pearweb/sql/pearweb_mdb2schema.xml:1.12 pearweb/sql/pearweb_mdb2schema.xml:1.13
--- pearweb/sql/pearweb_mdb2schema.xml:1.12 Wed Nov 29 04:22:17 2006
+++ pearweb/sql/pearweb_mdb2schema.xml Wed Nov 29 04:34:05 2006
@@ -2534,4 +2534,356 @@
</declaration>
</table>
+ <table>
+
+ <name>election_choices</name>
+
+ <declaration>
+
+ <field>
+ <name>election_id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>choice</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>summary</name>
+ <type>text</type>
+ <length>100</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>summary_link</name>
+ <type>text</type>
+ <length>255</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>choice</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>election_handle_votes</name>
+
+ <declaration>
+
+ <field>
+ <name>election_id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>handle</name>
+ <type>text</type>
+ <length>20</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>handle</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>election_results</name>
+
+ <declaration>
+
+ <field>
+ <name>election_id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>choice</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>votepercent</name>
+ <type>float</type>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>votetotal</name>
+ <type>integer</type>
+ <length>14</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>choice</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>election_votes_abstain</name>
+
+ <declaration>
+
+ <field>
+ <name>election_id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>vote_hash</name>
+ <type>text</type>
+ <length>32</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>vote_hash</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>election_votes_multiple</name>
+
+ <declaration>
+
+ <field>
+ <name>election_id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>vote</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>vote_hash</name>
+ <type>text</type>
+ <length>32</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>vote</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>vote_hash</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>election_votes_single</name>
+
+ <declaration>
+
+ <field>
+ <name>election_id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>vote</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>vote_hash</name>
+ <type>text</type>
+ <length>32</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>vote_hash</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>elections</name>
+
+ <declaration>
+
+ <field>
+ <name>id</name>
+ <type>integer</type>
+ <length>11</length>
+ <notnull>true</notnull>
+ <autoincrement>1</autoincrement>
+ </field>
+
+ <field>
+ <name>purpose</name>
+ <type>text</type>
+ <length>100</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>detail</name>
+ <type>clob</type>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>votestart</name>
+ <type>date</type>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>voteend</name>
+ <type>date</type>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>creator</name>
+ <type>text</type>
+ <length>20</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>createdate</name>
+ <type>timestamp</type>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>minimum_choices</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>maximum_choices</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <field>
+ <name>eligiblevoters</name>
+ <type>integer</type>
+ <length>4</length>
+ <notnull>true</notnull>
+ </field>
+
+ <index>
+ <name>primary</name>
+ <primary>true</primary>
+ <field>
+ <name>election_id</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
</database>