Commit bf3487c0 authored by drumm's avatar drumm

#76681 by sammys, sync posgres install and change unsigned annotation.

parent a9080f70
...@@ -17,8 +17,8 @@ function book_install() { ...@@ -17,8 +17,8 @@ function book_install() {
break; break;
case 'pgsql': case 'pgsql':
db_query("CREATE TABLE {book} ( db_query("CREATE TABLE {book} (
vid uint NOT NULL default '0', vid int_unsigned NOT NULL default '0',
nid uint NOT NULL default '0', nid int_unsigned NOT NULL default '0',
parent int NOT NULL default '0', parent int NOT NULL default '0',
weight smallint NOT NULL default '0', weight smallint NOT NULL default '0',
PRIMARY KEY (vid) PRIMARY KEY (vid)
......
...@@ -16,9 +16,9 @@ function forum_install() { ...@@ -16,9 +16,9 @@ function forum_install() {
break; break;
case 'pgsql': case 'pgsql':
db_query("CREATE TABLE {forum} ( db_query("CREATE TABLE {forum} (
nid uint NOT NULL default '0', nid int_unsigned NOT NULL default '0',
vid uint NOT NULL default '0', vid int_unsigned NOT NULL default '0',
tid uint NOT NULL default '0', tid int_unsigned NOT NULL default '0',
PRIMARY KEY (vid) PRIMARY KEY (vid)
)"); )");
db_query("CREATE INDEX {forum}_nid_idx ON {forum} (nid)"); db_query("CREATE INDEX {forum}_nid_idx ON {forum} (nid)");
......
...@@ -35,15 +35,15 @@ function poll_install() { ...@@ -35,15 +35,15 @@ function poll_install() {
case 'pgsql': case 'pgsql':
db_query("CREATE TABLE {poll} ( db_query("CREATE TABLE {poll} (
nid uint NOT NULL default '0', nid int_unsigned NOT NULL default '0',
runtime int NOT NULL default '0', runtime int NOT NULL default '0',
active uint NOT NULL default '0', active int_unsigned NOT NULL default '0',
PRIMARY KEY (nid) PRIMARY KEY (nid)
)"); )");
db_query("CREATE TABLE {poll_votes} ( db_query("CREATE TABLE {poll_votes} (
nid uint NOT NULL, nid int_unsigned NOT NULL,
uid uint NOT NULL default 0, uid int_unsigned NOT NULL default 0,
chorder int NOT NULL default -1, chorder int NOT NULL default -1,
hostname varchar(128) NOT NULL default '' hostname varchar(128) NOT NULL default ''
)"); )");
...@@ -53,7 +53,7 @@ function poll_install() { ...@@ -53,7 +53,7 @@ function poll_install() {
db_query("CREATE TABLE {poll_choices} ( db_query("CREATE TABLE {poll_choices} (
chid serial CHECK (chid >= 0), chid serial CHECK (chid >= 0),
nid uint NOT NULL default '0', nid int_unsigned NOT NULL default '0',
chtext varchar(128) NOT NULL default '', chtext varchar(128) NOT NULL default '',
chvotes int NOT NULL default '0', chvotes int NOT NULL default '0',
chorder int NOT NULL default '0', chorder int NOT NULL default '0',
......
...@@ -54,8 +54,8 @@ function profile_install() { ...@@ -54,8 +54,8 @@ function profile_install() {
db_query("CREATE INDEX {profile_fields}_category_idx ON {profile_fields} (category)"); db_query("CREATE INDEX {profile_fields}_category_idx ON {profile_fields} (category)");
db_query("CREATE TABLE {profile_values} ( db_query("CREATE TABLE {profile_values} (
fid uint default '0', fid int_unsigned default '0',
uid uint default '0', uid int_unsigned default '0',
value text value text
)"); )");
db_query("CREATE INDEX {profile_values}_uid_idx ON {profile_values} (uid)"); db_query("CREATE INDEX {profile_values}_uid_idx ON {profile_values} (uid)");
......
...@@ -32,7 +32,7 @@ function search_install() { ...@@ -32,7 +32,7 @@ function search_install() {
break; break;
case 'pgsql': case 'pgsql':
db_query("CREATE TABLE {search_dataset} ( db_query("CREATE TABLE {search_dataset} (
sid uint NOT NULL default '0', sid int_unsigned NOT NULL default '0',
type varchar(16) default NULL, type varchar(16) default NULL,
data text NOT NULL data text NOT NULL
)"); )");
...@@ -40,9 +40,9 @@ function search_install() { ...@@ -40,9 +40,9 @@ function search_install() {
db_query("CREATE TABLE {search_index} ( db_query("CREATE TABLE {search_index} (
word varchar(50) NOT NULL default '', word varchar(50) NOT NULL default '',
sid uint NOT NULL default '0', sid int_unsigned NOT NULL default '0',
type varchar(16) default NULL, type varchar(16) default NULL,
fromsid uint NOT NULL default '0', fromsid int_unsigned NOT NULL default '0',
fromtype varchar(16) default NULL, fromtype varchar(16) default NULL,
score float default NULL score float default NULL
)"); )");
......
...@@ -27,9 +27,9 @@ function statistics_install() { ...@@ -27,9 +27,9 @@ function statistics_install() {
path varchar(255) default NULL, path varchar(255) default NULL,
url varchar(255) default NULL, url varchar(255) default NULL,
hostname varchar(128) default NULL, hostname varchar(128) default NULL,
uid uint default '0', uid int_unsigned default '0',
timer uint NOT NULL default '0', timer int_unsigned NOT NULL default '0',
timestamp uint NOT NULL default '0', timestamp int_unsigned NOT NULL default '0',
PRIMARY KEY (aid) PRIMARY KEY (aid)
)"); )");
db_query("CREATE INDEX {accesslog}_accesslog_timestamp_idx ON {accesslog} (timestamp)"); db_query("CREATE INDEX {accesslog}_accesslog_timestamp_idx ON {accesslog} (timestamp)");
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment