first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
$SQL = "CREATE TABLE voterhistory (
|
||||
|
||||
voterhistory_serial serial,
|
||||
|
||||
voterhistory_county_code CHAR(3) NOT NULL,
|
||||
voterhistory_voter_id CHAR(10) NOT NULL,
|
||||
voterhistory_election_date DATE NOT NULL,
|
||||
voterhistory_election_type CHAR(3) NOT NULL,
|
||||
voterhistory_history_code CHAR(1) DEFAULT NULL,
|
||||
|
||||
voterhistory_record_created DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
PRIMARY KEY (voterhistory_serial),
|
||||
|
||||
UNIQUE KEY uq_voterhistory (voterhistory_county_code, voterhistory_voter_id, voterhistory_election_date, voterhistory_election_type),
|
||||
|
||||
KEY idx_vh_voter (voterhistory_county_code, voterhistory_voter_id),
|
||||
KEY idx_vh_election (voterhistory_election_date, voterhistory_election_type),
|
||||
KEY idx_vh_county_election (voterhistory_county_code, voterhistory_election_date, voterhistory_election_type)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ";
|
||||
?>
|
||||
Reference in New Issue
Block a user