Commit Graph

71 Commits (8e506869d52e245440daa985ea9178e0cdac95de)

Author SHA1 Message Date
Moe 69db95f8d4 Update SQL Queries on Startup 2022-12-17 00:07:23 +00:00
Moe 78435d12a9 remove default a value from Event Counts table creation 2022-11-03 23:26:07 -07:00
Moe 80f333ec81 fix missing column in Videos table 2022-08-21 11:16:16 -07:00
Moe f6e3b24a4d update some archive preQueries 2022-08-20 14:54:33 -07:00
Moe 455e5706d3 Archive Associated Events and First Frame with Video 2022-08-19 23:14:39 -07:00
Moe e5c35a7b4d Video Recording Archive Controls 2022-08-19 17:38:24 -07:00
Moe 450b7ab855 Option to Search for videos by Object Tag
this feature will only work on detections and recordings made after this update is applied. Previous detections are not searchable in this way.
2022-07-05 21:59:37 -07:00
ecarjat c1e5c5f006 charset and collate are only allowed for mysql 2021-04-25 13:39:59 +00:00
Moe 92d14c1072 FIx ER_TOO_LONG_KEY: LoginTokens table 2021-04-22 09:42:26 -07:00
Moe 8609ce959e Fix Google App ID designation, add Name to LoginTokens
+ Show Last Login for LoginTokens in Settings window
2021-04-04 10:35:09 -07:00
Moe 2cb3d8c9a2 Add Alternate Logins section in Settings, Minor Cleanup
+ Login Token API Endpoints for : get single, get all, delete by loginId
+ framework.sql update
+ update auto table creation for existing installations
+ fail message specific to alternateLogin can be passed to UI
+ add type column to LoginTokens table, default is "google" because its the only one (first of many to come)
2021-04-03 21:46:58 -07:00
Moe 74f9f28070 add LoginTokens table creation (for existing installs being updated) 2021-04-03 09:48:00 -07:00
Moe Alam f18b184dca Sub-Account Manager : saving, editing, and create new working 2021-02-07 12:03:17 -08:00
Moe Alam 44d4b56b04 fix stringToSqlTime declaration 2020-11-20 18:57:54 -08:00
Moe Alam 9f3d74bbfa cleanup sql.js 2020-11-18 11:26:38 -08:00
Moe Alam 7ce737395c fix video limit+ 2020-09-22 08:58:58 -07:00
Moe Alam 830a2291f3 fix video limit 2020-09-22 08:54:57 -07:00
Moe b193827192 fix row deletion 2020-08-18 08:42:43 -07:00
Moe 4be1659873 update some delete queries 2020-08-07 15:12:45 -07:00
Moe 17779c0255 postgres needs groupBy on counts
- why? some will never know. I sure don't.
2020-07-30 18:42:09 -07:00
Moe 3ecbb6da01 Update sql.js 2020-07-30 18:34:53 -07:00
Moe 751b59e957 add groupBy 2020-07-30 18:25:57 -07:00
Moe 5f88de0690 Update sql.js 2020-07-30 18:17:41 -07:00
Moe 4352e043dd Update sql.js 2020-07-30 18:01:55 -07:00
Moe 51a051a0fc add log for missing where parameter
+ fix incorrect "action" label for monitorOrder queries
2020-07-30 17:58:45 -07:00
Moe ebb25eb187 fix missing where query 2020-07-30 13:52:29 -07:00
Moe 795703cfaf sqlQuery Conversion : The Last Samurai... err... Function 2020-07-27 18:12:57 -07:00
Moe c2cab29515 knexQuery logic fixes 2020-07-12 14:34:04 -07:00
Moe 875bedbc6d Fix knexQuery error : empty condition 2020-07-11 18:06:07 -07:00
Moe a07ae2add3 existing preQueries now only for MySQL databases 2020-07-11 14:33:45 -07:00
Moe 5a8f3d5afd add generic SELECT function 2020-07-11 14:10:36 -07:00
Moe 6dfdfe2aa0 sqlQuery Conversion : Add grouped where conditions 2020-07-09 22:48:54 -07:00
Moe 0f73187cb3 sqlQuery Conversion : add limit and orderBy 2020-07-09 07:58:02 -07:00
Moe 5db94d1e98 sqlQuery Conversion : auth.js 2020-07-08 23:11:43 -07:00
Moe e1cc2d3fec sqlQuery Conversion : rename response to dbQuery 2020-07-08 22:51:45 -07:00
Moe b7db2ecfe9 sqlQuery Conversion : add update, insert, delete to s.knexQuery
+ change option tableName to table
2020-07-08 22:38:32 -07:00
Moe ce7b86d3a1 sqlQuery Conversion : create knexQuery, can only select for now 2020-07-08 21:34:06 -07:00
Moe 05594374d4 Fix ER_DUP_KEYNAME logs 2020-07-03 13:21:04 -07:00
Moe e81736ffd5 Merge branch 'SQL_Updates' into 'dev'
Add indexes to database tables

See merge request Shinobi-Systems/Shinobi!206
2020-06-19 16:44:34 +00:00
Moe ded730197c Fix Event Counts table (missing time column) 2020-06-18 20:22:44 -07:00
Mike Hurley 07d5d360d8 Update sql.js 2020-06-18 18:42:20 +00:00
Mike Hurley 76a4ef41fd Update sql.js 2020-06-18 16:44:13 +00:00
Mike Hurley 0e69072a80 Update sql.js 2020-06-18 16:33:47 +00:00
Mike Hurley 486c724c74 Update sql.js 2020-06-18 16:17:13 +00:00
Mike Hurley afe32e6f1b fixed mismatched cases 2020-06-18 16:12:46 +00:00
Mike Hurley 80db711d4a Updated to include Indexes for Events, Logs, and Videos tables 2020-06-18 15:23:58 +00:00
Moe aa7c6f387a update syntax for Event Counts table creation 2020-06-04 13:06:13 -07:00
Moe 41d25a58ab fix missing cloud timelapse frames table insertion 2020-06-04 12:59:25 -07:00
Moe 1269bfe08a refactor /events/ rows API method 2020-05-24 08:44:44 -07:00
Moe aa390287f0 fix query by time 2020-05-24 07:46:00 -07:00