From e2abc49087f1043a204bbf8ac367f7de09932840 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 2 Jun 2020 00:44:53 -0700 Subject: [PATCH] added counter to keys table this lets us increment uses when a key is going to be used --- server/migrations/2020-06-02-055256_keys/up.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/server/migrations/2020-06-02-055256_keys/up.sql b/server/migrations/2020-06-02-055256_keys/up.sql index b329049..652a2ab 100644 --- a/server/migrations/2020-06-02-055256_keys/up.sql +++ b/server/migrations/2020-06-02-055256_keys/up.sql @@ -5,5 +5,6 @@ CREATE TABLE IF NOT EXISTS `keys`( `id` varchar(64) NOT NULL, `limit` integer, + `uses` integer, PRIMARY KEY(`id`) ); \ No newline at end of file