]> rtime.felk.cvut.cz Git - coffee/coffee-flask.git/commit
Rename DB field identifiers.status to identifiers.active
authorMichal Sojka <michal.sojka@cvut.cz>
Sun, 18 Aug 2019 20:19:31 +0000 (22:19 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sun, 18 Aug 2019 20:19:31 +0000 (22:19 +0200)
commitb6e7d309149cdb568e86df7d514174e1fb6a93e2
tree171bec1536fbfbacb348a425cc9ff5d503c86e19
parentc38692694b0b480020d4b8eacdcc690572f78c13
Rename DB field identifiers.status to identifiers.active

This better reflects what is the meaning of the value.

If you need to manually create the table, use the following command,
not the one from the previous commit.

    CREATE TABLE if not exists identifiers (
        `userid` varchar ( 24 ) NOT NULL,
        `id` varchar ( 24 ) PRIMARY KEY NOT NULL,
        `name` varchar ( 24 ),
        `active` INTEGER NOT NULL DEFAULT 1,
        FOREIGN KEY(`userid`) REFERENCES `users`(`id`)
    );
coffee_db.py
coffee_db.sql