mirror of
https://github.com/solero/houdini.git
synced 2024-11-24 14:37:22 +00:00
Change penguin_item.item_id column type from SMALLINT to INT
This commit is contained in:
parent
1c58737227
commit
ac857f7925
@ -896,7 +896,7 @@ COMMENT ON COLUMN penguin_card.member_quantity IS 'Quantity owned as member';
|
|||||||
DROP TABLE IF EXISTS penguin_furniture;
|
DROP TABLE IF EXISTS penguin_furniture;
|
||||||
CREATE TABLE penguin_furniture (
|
CREATE TABLE penguin_furniture (
|
||||||
penguin_id INT NOT NULL,
|
penguin_id INT NOT NULL,
|
||||||
furniture_id SMALLINT NOT NULL,
|
furniture_id INT NOT NULL,
|
||||||
quantity SMALLINT NOT NULL DEFAULT 1,
|
quantity SMALLINT NOT NULL DEFAULT 1,
|
||||||
PRIMARY KEY (penguin_id, furniture_id),
|
PRIMARY KEY (penguin_id, furniture_id),
|
||||||
CONSTRAINT penguin_furniture_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE CASCADE ON UPDATE CASCADE,
|
CONSTRAINT penguin_furniture_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
@ -1091,7 +1091,7 @@ COMMENT ON TABLE ignore_list IS 'Penguin ignore relationships';
|
|||||||
DROP TABLE IF EXISTS penguin_item;
|
DROP TABLE IF EXISTS penguin_item;
|
||||||
CREATE TABLE penguin_item (
|
CREATE TABLE penguin_item (
|
||||||
penguin_id INT NOT NULL,
|
penguin_id INT NOT NULL,
|
||||||
item_id SMALLINT NOT NULL,
|
item_id INT NOT NULL,
|
||||||
PRIMARY KEY (penguin_id, item_id),
|
PRIMARY KEY (penguin_id, item_id),
|
||||||
CONSTRAINT penguin_item_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE CASCADE ON UPDATE CASCADE,
|
CONSTRAINT penguin_item_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
CONSTRAINT penguin_item_ibfk_2 FOREIGN KEY (item_id) REFERENCES item (id) ON DELETE CASCADE ON UPDATE CASCADE
|
CONSTRAINT penguin_item_ibfk_2 FOREIGN KEY (item_id) REFERENCES item (id) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
Loading…
Reference in New Issue
Block a user