Milan Pavlik
b9dea4ac15
[stripe] Create d_b_stripe_customer table to store Customer ID and Attribution ID
2022-10-18 17:38:34 +02:00
Andrew Farries
7ea0256d97
Change length of applicationCluster field
2022-10-17 18:34:32 +02:00
Andrew Farries
533346ab34
Add applicationCluster field to table
...
This field will record to which workspace cluster the information in
each row belongs.
2022-10-17 18:34:32 +02:00
Milan Pavlik
cc95da9cd4
[server] Fix typo in probe workspaces search
2022-10-11 13:31:26 +02:00
Milan Pavlik
f7f90a0175
[server] Prevent changing role for teams of size 1
2022-10-11 11:21:26 +02:00
Milan Pavlik
0a857e5d4c
[server] Garbage collect probe workspaces
2022-10-10 16:53:25 +02:00
Andrew Farries
390379bf16
Remove uid field from entity
2022-10-07 17:06:23 +02:00
Andrew Farries
5cf8e7f5ca
Drop uid column on d_b_oauth_auth_code_entry
2022-10-07 11:29:22 +02:00
Andrew Farries
75889c336e
Add d_b_oauth_auth_code_entry to db-sync
2022-10-07 10:07:22 +02:00
Andrew Farries
63f283e296
Reset primary keys in d_b_oauth_auth_code_entry
2022-10-06 15:57:22 +02:00
Milan Pavlik
ea2f740d38
[server] Throw specific errors when interacting with teams
2022-10-06 14:00:22 +02:00
Andrew Farries
0d7f5d66d3
Stop writing to the uid field
...
Remove the code that writes to the uid field so that the field can
safely be removed by a migration.
2022-10-06 13:32:22 +02:00
Andrew Farries
fe262ff81c
Generate value for id on persist
2022-10-06 12:30:21 +02:00
Andrew Farries
45389d57c8
Update primary key in entity type
2022-10-06 12:30:21 +02:00
Andrew Farries
48490893b1
Migrate: Change type of PK field
2022-10-06 12:30:21 +02:00
Andrew Farries
1d8fe14c23
Add a _lastModified column
...
Add a `_lastModified` column to `d_b_oauth_auth_code_entry`
2022-10-05 09:34:21 +02:00
Andrew Farries
1089b63a12
Migrate to drop layoutData col on d_b_snapshot
2022-10-05 09:06:20 +02:00
Andrew Farries
b70ec12015
Add migration to drop d_b_layout_data table
2022-10-05 09:06:20 +02:00
Andrew Farries
7f58e5d60f
Set uid when persisting authCodes
2022-10-04 16:12:20 +02:00
Andrew Farries
1177075b5b
Add uid field to entity type
2022-10-04 16:12:20 +02:00
Milan Pavlik
da233b6382
Revert "[migrations] Delete Probe workspaces from DB"
...
This reverts commit 734aa30430540ba444840fb4d4ff63d2d08fecb3.
2022-10-04 10:41:20 +02:00
Andrew Farries
63c4fec94e
Remove all references to layoutData
2022-10-04 08:15:20 +02:00
Andrew Farries
14a1ffd65b
Add uid column to d_b_oauth_auth_code_entry
...
This will become the new primary key in a subsequent migration.
2022-10-03 14:15:19 +02:00
Milan Pavlik
734aa30430
[migrations] Delete Probe workspaces from DB
2022-10-03 12:00:19 +02:00
Andrew Farries
f7806039d6
Add d_b_volume_snapshot to db-sync config
2022-09-30 09:19:30 +02:00
Andrew Farries
aa3c8ac569
Green: Make findVolumeSnapshotById delete-aware
...
Filter soft deleted entries out of the result set.
2022-09-30 08:39:30 +02:00
Andrew Farries
767344ddaf
Red: Add tests for findVolumeSnapshotById
...
Add tests (`testCantFindDeletedVolumeSnapshotById` fails).
The failing test is due to `findVolumeSnapshotById` not taking deleted
entries into account.
2022-09-30 08:39:30 +02:00
Andrew Farries
1a74ec9109
Green: Don't consider deleted volume snapshots
...
Filter out deleted volume snapshots from the result sets.
2022-09-30 08:39:30 +02:00
Andrew Farries
f94023e069
Red: Add deleted vol snapshots to the test setup
...
For each workspaceId, add a deleted volume snapshot.
2022-09-30 08:39:30 +02:00
Andrew Farries
acb056967f
Soft delete volume snapshot db entries
...
Replace the existing hard-deletion of volume snapshot rows in the
database with soft-deletion that will allow `db-sync` to propagate
deletions between clusters.
2022-09-30 08:39:30 +02:00
Andrew Farries
3314340e70
Sync d_b_pending_github_event table
2022-09-29 15:52:30 +02:00
Andrew Farries
9ea0867ce7
Implement soft deletion of pending github events
2022-09-29 15:29:29 +02:00
Andrew Farries
b2affdaef2
Add deleted field to d_b_pending_github_event
...
This will be used to enable soft deletion and then syncing via
`db-sync`.
2022-09-29 13:18:29 +02:00
Andrew Farries
ec9ac63412
Add d_b_installation_admin table to db-sync
2022-09-29 11:02:29 +02:00
Milan Pavlik
cd47261041
[db] Add index to d_b_workspace_instance on startedTime & stoppingTime
2022-09-29 11:01:29 +02:00
Andrew Farries
9ccc40eb36
Remove d_b_email from tables.ts
2022-09-29 08:06:29 +02:00
Andrew Farries
37908b4f15
Add comment to entity
2022-09-28 08:42:28 +02:00
Andrew Farries
baea972f08
Add migration to add db-sync columns
...
Add a migration to add `_lastModified` and `deleted` columns to the
`d_b_volume_snapshot` table so that it can be synced by `db-sync`.
2022-09-28 08:42:28 +02:00
Andrew Farries
7bfaf3a2ab
Migration to remove d_b_generated_license table
2022-09-27 14:26:27 +02:00
Andrew Farries
35b569302c
Delete supporting files for d_b_email table
2022-09-27 13:38:27 +02:00
Andrew Farries
254b955c89
Add migration to remove d_b_email table
2022-09-27 13:38:27 +02:00
Andrew Farries
6e8eb017d6
Migration to remove d_b_email_notification_data
2022-09-27 13:03:27 +02:00
Andrew Farries
9cc9c35523
Remove duplicate entry for d_b_prebuilt_workspace
2022-09-26 14:16:27 +02:00
Sven Efftinge
1516e4c4df
[server] restrict allowed phone numbers
2022-09-23 15:27:23 +02:00
Milan Pavlik
6c40c53a7c
[server] Delete prebuild records when purging workspaces
2022-09-23 09:26:23 +02:00
Milan Pavlik
5d1ed09f05
[db-sync] Enable sync for d_b_prebuilt_workspace and d_b_prebuilt_workspace_updatable
2022-09-22 11:24:22 +02:00
Milan Pavlik
c5c5be9b5e
[db] Add deleted and _lastModified columns, index _lastModified for d_b_prebuilt_workspace_updatable
2022-09-21 19:04:22 +02:00
Milan Pavlik
8953c4b751
[db] Add deleted column to d_b_prebuilt_workspace
2022-09-21 19:03:22 +02:00
Milan Pavlik
d51dc0b9d0
[db] Drop d_b_billed_session table
2022-09-19 15:05:20 +02:00
Gero Posmyk-Leinemann
544e7843e9
[db-sync] Fix it
2022-09-16 19:28:17 +02:00