Commit graph

309 commits

Author SHA1 Message Date
Rafael Taranto
67919892e8 Truncate/trim server tables 2019-05-12 13:46:56 +01:00
Rafael Taranto
4640b4a774 Add blacklist functionality 2019-04-30 19:13:24 +02:00
littlenaut
1cd06a024c Add 'cash_in_txs' migration
This migration adds a new column to the 'cash_in_txs' table to
accommodate the new paper wallet feature for compliance.
2019-03-11 11:46:19 +00:00
Fabio Cigliano
578a39a721 log raw ticker price within tx 2019-03-02 14:40:29 +01:00
Fabio Cigliano
038a22aba7 migration added 2019-03-02 14:40:29 +01:00
Davit Abulashvili
907cd08cf1 Log unsuccessful trade attempts in the db (#224)
* Save trade error in table trades

* Add one migration, Add error column to trades table

* changes in plugins.js file

* Apply standardjs to plugins.js file
2018-11-28 20:24:48 +02:00
Zoran Joka
13040f41a1 Optimize machine pings query (#222)
* refactor recordPing method

* optimize queries

* migrate machine_pings

remove id, serial_number
add primary key on device_id
add unique constraint on device_id

* remove filelds from query, rename migration, delete duplicate migration

* truncate machine_pings in migration
2018-11-21 11:08:19 +01:00
Rafael Taranto
06f8c57608 Save migrations file on db (#215)
* Revert "Migration sql changes (#199)"

This reverts commit 12c834469c.

* Save migrate file on db

* Add message on migration error in lamassu-update
2018-11-18 10:15:22 +01:00
Rafael Taranto
a377777b12 Fix db migrations (#212) 2018-11-15 14:31:41 +01:00
Fabio Cigliano
12c834469c Migration sql changes (#199)
* safe migration script changes

* lamassu migration script fixes
2018-11-01 13:26:48 +02:00
Rafael Taranto
38aa006ecc Add device_id to cash_out_actions table (#164)
If a costumer originates a cashOut transaction at one device, and then
redeemed at a different device, the wrong machine would have bills debited from it.

With device_id being saved at the cash_out_actions table the bills can
be properly reconciled.
2018-09-22 23:38:31 +01:00
Fabio Cigliano
a30b835786 Terms and conditions screen (#118)
* Terms and Conditions screen added

* missing fields

* SQL migration added

* terms.text: markdown to html on server side

* markdown field type added

* other minor changes
2018-06-05 22:35:30 +03:00
Josh Harvey
d1712ce1ce Add layer2 address separately 2018-06-04 16:34:46 +03:00
Josh Harvey
6c3099921f support for Coin ATM Radar 2018-05-21 16:30:13 +03:00
Josh Harvey
c06c84c25c change crypto_atoms to numeric in db to support ETH (#116) 2018-05-11 19:05:20 +03:00
Josh Harvey
5ba164e566 add sanctions_logs table 2018-05-07 12:20:22 +03:00
Neal Conner
fd659c88c6 Fix migrate-tools for multiple devices (#113)
Don't fail with duplicate key errors if there is more than one row already in the devices table, since it attempts to update the device_id column.
2018-05-03 11:46:10 +03:00
Josh Harvey
c2af183911 format for latest standard 2018-03-10 18:59:40 +00:00
Josh Harvey
be99ab4f99 don't fail on fresh install 2018-01-03 20:13:43 +00:00
Josh Harvey
beb2a2136d add serials to machine logging 2018-01-03 13:01:02 +00:00
Josh Harvey
d3c2448a12 fix migration so it doesn't error out on existing devices 2017-12-19 18:55:14 +02:00
goga-m
62d606cc80 Create support_logs (db & api) 2017-12-13 16:31:07 +02:00
goga-m
43f578d311 Add logs 2017-12-13 16:31:07 +02:00
goga-m
67dda25b20 Rename customer & compliance type fields 2017-12-13 16:31:07 +02:00
goga-m
84bc84e7c1 Customer detail page changes
* Refactor code regarding override fields
 * Add *_override_at columns in customer table (migration)
 * Add *_override_at, *_override_by computed fields
   when updating customer
 * Rename compliance types to match override fields (migration)
 * Remove cross_ref compliance_type (migrations)
 * Populate customer object with usernames for every
   filled *_override_by field (users API)
2017-12-13 16:31:07 +02:00
goga-m
89eb617a4a Add *override_by fields in customer 2017-12-13 16:31:07 +02:00
goga-m
9877fc8ef0 Fix migrations for manual override 2017-12-13 16:31:07 +02:00
goga-m
685b327fb6 New migration for manual override 2017-12-13 16:31:07 +02:00
Josh Harvey
0d8a8547f5 Fix up various flow issues. 2017-09-12 13:57:17 +03:00
Josh Harvey
500edcf279 Add transaction versioning, tx cancellation (#79) 2017-08-29 16:08:06 +03:00
goga-m
a0e63f8405 Naming corrections 2017-08-15 12:23:10 +03:00
goga-m
8286be4e4b Insert anonymous customer as default reference for cach_in_txs & cash_out_txs tables 2017-08-14 20:17:51 +03:00
goga-m
143ce8a98c Changes on customers & compliance_authorization tables 2017-08-14 17:50:34 +03:00
goga-m
fd31bbb89f Rename wrong migration file index 2017-08-14 17:17:28 +03:00
goga-m
ecdef92f82 Add customers & compliance_authorizations tables 2017-08-14 17:14:14 +03:00
Josh Harvey
e8356c1041 update cryptoBalance notification 2017-06-01 16:53:01 +01:00
Josh Harvey
23458b6b56 add blockcypher [WIP] 2017-06-01 16:52:59 +01:00
Josh Harvey
b28c99aabb fix lamassu-cancel 2017-06-01 16:52:59 +01:00
Josh Harvey
8cdad0bc15 add more db fields for fixed fee 2017-06-01 16:52:59 +01:00
Josh Harvey
a123170622 add pings table 2017-05-15 02:02:43 +03:00
Josh Harvey
c2282e61b4 new admin structure 2017-05-11 15:30:22 +03:00
Josh Harvey
94ee178c65 clean up migrations 2017-05-07 19:00:30 +03:00
Josh Harvey
279c296aee clean up migrations 2017-05-07 18:34:46 +03:00
Josh Harvey
67e12b19cb Reserve notes for redeem 2017-05-07 15:47:47 +03:00
Josh Harvey
55717dbc8d minor fixes 2017-04-26 01:39:58 +03:00
Josh Harvey
5f0b70ca42 load latest *good* config 2017-04-25 02:32:16 +03:00
Josh Harvey
dd7d06f38b fix redeem bugs 2017-04-25 02:32:16 +03:00
Josh Harvey
91e1077daa move to sha-256 fingerprints 2017-04-25 02:32:15 +03:00
Josh Harvey
8674816d27 rename cartridge to cassette 2017-04-25 02:32:15 +03:00
Josh Harvey
84a93599f5 improve cash-in error handling 2017-04-25 02:32:15 +03:00