Commit Graph

48 Commits (cf1dcbf4ae8af6efab352be78aa238d0d7fff653)

Author SHA1 Message Date
Chris Veilleux fe2e8bc7e7 moved population of account.agreement table and geography tables from python notebooks into the bootstrap script 2019-05-21 14:18:36 -05:00
Chris Veilleux b80bfb4c32
make OID column nullable 2019-05-20 15:22:01 -05:00
Chris Veilleux bbd5088a6a add device_id to the metrics.api table for reporting 2019-05-15 14:27:54 -05:00
Chris Veilleux 2ee471a6e1 add api metrics table and collection. in the process, changed the database connection mechanism to only get a connection from the pool once per request. 2019-04-22 16:58:28 -05:00
Chris Veilleux 5f7d4df931 remove the refresh_token table 2019-04-08 20:55:12 -05:00
Chris Veilleux 838b6979c4 preferences should be unique by account 2019-04-02 20:41:24 -05:00
Chris Veilleux 49036b2909 merged dev into global skill id 2019-04-02 11:37:42 -05:00
Chris Veilleux 81534470ed minor refactor 2019-04-01 20:04:00 -05:00
Chris Veilleux 353f064970 changed skill_name to skill_id 2019-04-01 17:05:14 -05:00
Chris Veilleux 80585076b5 changed definition of skill table to match more closely with the skill metadata 2019-04-01 13:13:05 -05:00
Chris Veilleux 55b75e0111 changed the url column to be a new global id column that is unique 2019-03-28 14:07:51 -05:00
Chris Veilleux e10842d7e4 re-establish a link to the skill.skill table to support the marketplace 2019-03-27 20:46:00 -05:00
Chris Veilleux f815767b3e add a bunch of future versions to the enum so that we can forget it exists in two years and wonder why our inserts aren't working ;) 2019-03-27 20:45:21 -05:00
Chris Veilleux 0b1fca1141 we aren't using categories so we changed the business rule to make device names unique for an account 2019-03-20 13:35:06 -05:00
Chris Veilleux a25aa7f665 fixed unique index definition 2019-03-20 11:07:01 -05:00
Chris Veilleux dd94d69269 schema changes to split the defaults out from the preferences 2019-03-20 10:50:35 -05:00
Chris Veilleux 8d76de0d79 made geography not nullable 2019-03-19 17:28:33 -05:00
Chris Veilleux e5838736ab changed device.geography table and device.preferences table to have references to geography schema tables 2019-03-19 16:46:15 -05:00
Chris Veilleux c851624256 Merge remote-tracking branch 'remotes/origin/dev' into add-device
# Conflicts:
#	api/account/account_api/api.py
#	api/account/tests/features/steps/update_membership.py
#	shared/selene/api/endpoints/account.py
#	shared/selene/data/account/repository/sql/get_active_membership_by_account_id.sql
2019-03-18 17:05:08 -05:00
Matheus Lima ff16ce4477 Adding payment_id column into the account_membership table, and removing the previous subscription from stripe when a user changes his membership 2019-03-15 11:58:00 -03:00
Chris Veilleux 885d36b34e added stripe_plan to the insert statements 2019-03-15 11:07:12 -03:00
Chris Veilleux 428fc2aad8 added stripe plan name column 2019-03-15 11:07:12 -03:00
Chris Veilleux 5864191030 anal indentation fixing 2019-03-15 00:49:00 -05:00
Chris Veilleux 13095c34b6 Merge remote-tracking branch 'remotes/origin/stripe-integration' into add-device 2019-03-13 19:25:27 -05:00
Chris Veilleux 8257b8fc41 changed location table to be the geography table and changed its structure due to new design 2019-03-13 16:52:12 -05:00
Chris Veilleux 59390ed3b8 merge dev 2019-03-13 16:39:37 -05:00
Chris Veilleux b1b990f1b2 added new geography schema and changes to skill schema 2019-03-13 16:36:06 -05:00
Chris Veilleux a792245218 added geography schema and changed skill schema to put all the skill display data in a single table. 2019-03-13 16:31:02 -05:00
Chris Veilleux a0368aa2de added stripe_plan to the insert statements 2019-03-08 17:27:05 -06:00
Chris Veilleux 03f3cdfa8e added stripe plan name column 2019-03-08 17:02:17 -06:00
Matheus Lima a5dcdf0c94 Applying model changes 2019-03-03 22:46:00 -03:00
Chris Veilleux 6ce6e21acf removed hash column again because it was determined to be used in a device ownership feature that will be deprecated. 2019-03-03 18:03:43 -06:00
Chris Veilleux 96649e7ebf added hash column back to support older versions of core 2019-03-03 14:09:46 -06:00
Chris Veilleux 581bf1812d renamed a few items in the database schema 2019-03-01 20:33:35 -06:00
Chris Veilleux 8a1ee6c0db changed "subscription" to "membership" 2019-02-25 23:26:10 -06:00
Chris Veilleux 144372ca1c remove tables that are no longer used 2019-02-25 11:13:24 -06:00
Chris Veilleux beecb4a4f2 added a column to link to a settings version and to store the settings.json file from the device. 2019-02-25 11:12:57 -06:00
Chris Veilleux ce7fa1a193 new table that replaces the old skill_settings_version. the settingsmeta.json is stored directly rather than being hashed 2019-02-25 11:10:35 -06:00
Chris Veilleux 5d16ede767 changed to build a template database first, then the mycroft database is created from the template. this will allow for testing databases to be created form the blank template as well 2019-02-24 23:50:43 -06:00
Chris Veilleux ac01371c40 changed "subscription" to "membership" 2019-02-24 23:46:06 -06:00
Chris Veilleux 71abd36972 made user roles more production-ready 2019-02-23 12:51:15 -06:00
Chris Veilleux afcbbc05a5 changed display name to username 2019-02-19 17:16:19 -06:00
Chris Veilleux 2e306e084e changed value of membership type to match what was expected in API 2019-02-18 13:43:39 -06:00
Chris Veilleux 43d122a443 changed username to display_name 2019-02-18 13:41:10 -06:00
Chris Veilleux 5454b8130c added insert_ts to all tables 2019-02-18 13:25:26 -06:00
Chris Veilleux 662fb1959d minor schema changes 2019-02-12 10:40:54 -06:00
Chris Veilleux 918f24ccf3 added an enum to define the types of agreements allowed and changed "content" column to "content_id" 2019-02-11 16:42:59 -06:00
Chris Veilleux a3f9c73d94 moved all mycroft database DDL and scripts from the devops repository to this one. 2019-02-08 13:14:33 -06:00