Remove unneeded table

Using redis for rainbow puffle quest cookies
This commit is contained in:
Ben 2020-01-02 23:20:38 +00:00
parent 5daecfd0c2
commit 2f6c53c872
2 changed files with 0 additions and 30 deletions

View File

@ -1155,25 +1155,6 @@ COMMENT ON COLUMN penguin_puffle_item.penguin_id IS 'Owner penguin ID';
COMMENT ON COLUMN penguin_puffle_item.item_id IS 'Puffle care item ID';
COMMENT ON COLUMN penguin_puffle_item.quantity IS 'Quantity owned';
DROP TABLE IF EXISTS puffle_quest;
CREATE TABLE puffle_quest (
penguin_id INT NOT NULL,
task_id SMALLINT NOT NULL,
completion_date TIMESTAMP DEFAULT NULL,
item_collected BOOLEAN NOT NULL DEFAULT FALSE,
coins_collected BOOLEAN NOT NULL DEFAULT FALSE,
PRIMARY KEY (penguin_id, task_id),
CONSTRAINT puffle_quest_ibfk_1 FOREIGN KEY (penguin_id) REFERENCES penguin (id) ON DELETE RESTRICT ON UPDATE CASCADE
);
COMMENT ON TABLE puffle_quest IS 'Puffle quest progress';
COMMENT ON COLUMN puffle_quest.penguin_id IS 'Quest penguin ID';
COMMENT ON COLUMN puffle_quest.task_id IS 'Quest task ID';
COMMENT ON COLUMN puffle_quest.completion_date IS 'Time of completion';
COMMENT ON COLUMN puffle_quest.item_collected IS 'Item collection status';
COMMENT ON COLUMN puffle_quest.coins_collected IS 'Coins collection status';
DROP TABLE IF EXISTS redemption_code;
CREATE TABLE redemption_code (
id SERIAL,

View File

@ -59,17 +59,6 @@ class PuffleTreasurePuffleItem(db.Model):
primary_key=True, nullable=False)
class PuffleQuest(db.Model):
__tablename__ = 'puffle_quest'
penguin_id = db.Column(db.ForeignKey('penguin.id', ondelete='CASCADE', onupdate='CASCADE'), primary_key=True,
nullable=False)
task_id = db.Column(db.SmallInteger, primary_key=True, nullable=False)
completion_date = db.Column(db.DateTime)
item_collected = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
coins_collected = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
class PenguinPuffle(db.Model):
__tablename__ = 'penguin_puffle'