Added table and general functions for stats system #21
1 changed files with 8 additions and 6 deletions
|
@ -16,9 +16,11 @@ You should have received a copy of the GNU Affero General Public License
|
|||
along with this program. If not, see https://www.gnu.org/licenses/.
|
||||
*/
|
||||
|
||||
CREATE TABLE IF NOT EXISTS card_stats (
|
||||
card_id INTEGER PRIMARY KEY,
|
||||
power INTEGER NOT NULL DEFAULT abs(random() % 9999),
|
||||
charm INTEGER NOT NULL DEFAULT abs(random() % 9999),,
|
||||
FOREIGN KEY(card_id) REFERENCES card(id)
|
||||
)
|
||||
ALTER TABLE card
|
||||
ADD COLUMN power INTEGER NOT NULL DEFAULT (abs(random() % 9999));
|
||||
|
||||
ALTER TABLE card
|
||||
ADD COLUMN charm INTEGER NOT NULL DEFAULT (abs(random() % 9999));
|
||||
|
||||
ALTER TABLE card
|
||||
ADD COLUMN wit INTEGER NOT NULL DEFAULT (abs(random() % 9999));
|
Loading…
Add table
Reference in a new issue