Skip to content

Commit

Permalink
in CREATE TABLE statements, changed MEDIUMINT to INT(10)
Browse files Browse the repository at this point in the history
related to #117
  • Loading branch information
k00ni committed Jun 15, 2018
1 parent c7107ed commit 81520dd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions store/ARC2_StoreTableManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ public function createTripleTable($suffix = 'triple')
$index_code = $indexes ? 'KEY '.implode(', KEY ', $indexes).', ' : '';
$sql = '
CREATE TABLE IF NOT EXISTS '.$this->getTablePrefix().$suffix.' (
t mediumint UNSIGNED NOT NULL,
s mediumint UNSIGNED NOT NULL,
p mediumint UNSIGNED NOT NULL,
o mediumint UNSIGNED NOT NULL,
o_lang_dt mediumint UNSIGNED NOT NULL,
t INT(10) UNSIGNED NOT NULL,
s INT(10) UNSIGNED NOT NULL,
p INT(10) UNSIGNED NOT NULL,
o INT(10) UNSIGNED NOT NULL,
o_lang_dt INT(10) UNSIGNED NOT NULL,
o_comp char(35) NOT NULL, /* normalized value for ORDER BY operations */
s_type tinyint(1) NOT NULL default 0, /* uri/bnode => 0/1 */
o_type tinyint(1) NOT NULL default 0, /* uri/bnode/literal => 0/1/2 */
Expand Down Expand Up @@ -96,8 +96,8 @@ public function createG2TTable()
{
$sql = '
CREATE TABLE IF NOT EXISTS '.$this->getTablePrefix().'g2t (
g mediumint UNSIGNED NOT NULL,
t mediumint UNSIGNED NOT NULL,
g INT(10) UNSIGNED NOT NULL,
t INT(10) UNSIGNED NOT NULL,
UNIQUE KEY gt (g,t), KEY tg (t,g)
) '.$this->getTableOptionsCode().'
';
Expand All @@ -120,7 +120,7 @@ public function createID2ValTable()
{
$sql = '
CREATE TABLE IF NOT EXISTS '.$this->getTablePrefix().'id2val (
id mediumint UNSIGNED NOT NULL AUTO_INCREMENT,
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
misc tinyint(1) NOT NULL default 0,
val text NOT NULL,
val_type tinyint(1) NOT NULL default 0, /* uri/bnode/literal => 0/1/2 */
Expand Down Expand Up @@ -149,7 +149,7 @@ public function createS2ValTable()
$indexes = 'UNIQUE KEY (id), KEY vh (val_hash)';
$sql = '
CREATE TABLE IF NOT EXISTS '.$this->getTablePrefix().'s2val (
id mediumint UNSIGNED NOT NULL,
id INT(10) UNSIGNED NOT NULL,
misc tinyint(1) NOT NULL default 0,
val_hash char(32) NOT NULL,
val text NOT NULL,
Expand Down Expand Up @@ -179,7 +179,7 @@ public function createO2ValTable()
}
$sql = '
CREATE TABLE IF NOT EXISTS '.$this->getTablePrefix().'o2val (
id mediumint UNSIGNED NOT NULL,
id INT(10) UNSIGNED NOT NULL,
misc tinyint(1) NOT NULL default 0,
val_hash char(32) NOT NULL,
val text NOT NULL,
Expand Down

0 comments on commit 81520dd

Please sign in to comment.