You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task/Issue URL:
https://app.asana.com/0/72649045549333/1209242689024725/f
### Description
This PR covers all the logic for opt-out. More details in the attached
task.
### Steps to test this PR
No need to do a specific test for this PR.
The stacked PR’2 test case should cover all - since formatting is much
better.
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `birthYear` INTEGER NOT NULL, `phone` TEXT, `age` INTEGER NOT NULL, `user_firstName` TEXT NOT NULL, `user_lastName` TEXT NOT NULL, `user_middleName` TEXT, `user_suffix` TEXT, `address_city` TEXT NOT NULL, `address_state` TEXT NOT NULL, `address_street` TEXT, `address_zip` TEXT)",
367
+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `birthYear` INTEGER NOT NULL, `phone` TEXT, `user_firstName` TEXT NOT NULL, `user_lastName` TEXT NOT NULL, `user_middleName` TEXT, `user_suffix` TEXT, `address_city` TEXT NOT NULL, `address_state` TEXT NOT NULL, `address_street` TEXT, `address_zip` TEXT)",
368
368
"fields": [
369
369
{
370
370
"fieldPath": "id",
@@ -384,12 +384,6 @@
384
384
"affinity": "TEXT",
385
385
"notNull": false
386
386
},
387
-
{
388
-
"fieldPath": "age",
389
-
"columnName": "age",
390
-
"affinity": "INTEGER",
391
-
"notNull": true
392
-
},
393
387
{
394
388
"fieldPath": "userName.firstName",
395
389
"columnName": "user_firstName",
@@ -449,7 +443,7 @@
449
443
"foreignKeys": []
450
444
},
451
445
{
452
-
"tableName": "pir_scan_log",
446
+
"tableName": "pir_events_log",
453
447
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`eventTimeInMillis` INTEGER NOT NULL, `eventType` TEXT NOT NULL, PRIMARY KEY(`eventTimeInMillis`))",
454
448
"fields": [
455
449
{
@@ -505,12 +499,150 @@
505
499
},
506
500
"indices": [],
507
501
"foreignKeys": []
502
+
},
503
+
{
504
+
"tableName": "pir_scan_complete_brokers",
505
+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`brokerName` TEXT NOT NULL, `startTimeInMillis` INTEGER NOT NULL, `endTimeInMillis` INTEGER NOT NULL, PRIMARY KEY(`brokerName`))",
506
+
"fields": [
507
+
{
508
+
"fieldPath": "brokerName",
509
+
"columnName": "brokerName",
510
+
"affinity": "TEXT",
511
+
"notNull": true
512
+
},
513
+
{
514
+
"fieldPath": "startTimeInMillis",
515
+
"columnName": "startTimeInMillis",
516
+
"affinity": "INTEGER",
517
+
"notNull": true
518
+
},
519
+
{
520
+
"fieldPath": "endTimeInMillis",
521
+
"columnName": "endTimeInMillis",
522
+
"affinity": "INTEGER",
523
+
"notNull": true
524
+
}
525
+
],
526
+
"primaryKey": {
527
+
"autoGenerate": false,
528
+
"columnNames": [
529
+
"brokerName"
530
+
]
531
+
},
532
+
"indices": [],
533
+
"foreignKeys": []
534
+
},
535
+
{
536
+
"tableName": "pir_opt_out_complete_brokers",
537
+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `brokerName` TEXT NOT NULL, `extractedProfile` TEXT NOT NULL, `startTimeInMillis` INTEGER NOT NULL, `endTimeInMillis` INTEGER NOT NULL, `isSubmitSuccess` INTEGER NOT NULL)",
538
+
"fields": [
539
+
{
540
+
"fieldPath": "id",
541
+
"columnName": "id",
542
+
"affinity": "INTEGER",
543
+
"notNull": true
544
+
},
545
+
{
546
+
"fieldPath": "brokerName",
547
+
"columnName": "brokerName",
548
+
"affinity": "TEXT",
549
+
"notNull": true
550
+
},
551
+
{
552
+
"fieldPath": "extractedProfile",
553
+
"columnName": "extractedProfile",
554
+
"affinity": "TEXT",
555
+
"notNull": true
556
+
},
557
+
{
558
+
"fieldPath": "startTimeInMillis",
559
+
"columnName": "startTimeInMillis",
560
+
"affinity": "INTEGER",
561
+
"notNull": true
562
+
},
563
+
{
564
+
"fieldPath": "endTimeInMillis",
565
+
"columnName": "endTimeInMillis",
566
+
"affinity": "INTEGER",
567
+
"notNull": true
568
+
},
569
+
{
570
+
"fieldPath": "isSubmitSuccess",
571
+
"columnName": "isSubmitSuccess",
572
+
"affinity": "INTEGER",
573
+
"notNull": true
574
+
}
575
+
],
576
+
"primaryKey": {
577
+
"autoGenerate": true,
578
+
"columnNames": [
579
+
"id"
580
+
]
581
+
},
582
+
"indices": [],
583
+
"foreignKeys": []
584
+
},
585
+
{
586
+
"tableName": "pir_opt_out_action_log",
587
+
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `brokerName` TEXT NOT NULL, `extractedProfile` TEXT NOT NULL, `completionTimeInMillis` INTEGER NOT NULL, `actionType` TEXT NOT NULL, `isError` INTEGER NOT NULL, `result` TEXT NOT NULL)",
588
+
"fields": [
589
+
{
590
+
"fieldPath": "id",
591
+
"columnName": "id",
592
+
"affinity": "INTEGER",
593
+
"notNull": true
594
+
},
595
+
{
596
+
"fieldPath": "brokerName",
597
+
"columnName": "brokerName",
598
+
"affinity": "TEXT",
599
+
"notNull": true
600
+
},
601
+
{
602
+
"fieldPath": "extractedProfile",
603
+
"columnName": "extractedProfile",
604
+
"affinity": "TEXT",
605
+
"notNull": true
606
+
},
607
+
{
608
+
"fieldPath": "completionTimeInMillis",
609
+
"columnName": "completionTimeInMillis",
610
+
"affinity": "INTEGER",
611
+
"notNull": true
612
+
},
613
+
{
614
+
"fieldPath": "actionType",
615
+
"columnName": "actionType",
616
+
"affinity": "TEXT",
617
+
"notNull": true
618
+
},
619
+
{
620
+
"fieldPath": "isError",
621
+
"columnName": "isError",
622
+
"affinity": "INTEGER",
623
+
"notNull": true
624
+
},
625
+
{
626
+
"fieldPath": "result",
627
+
"columnName": "result",
628
+
"affinity": "TEXT",
629
+
"notNull": true
630
+
}
631
+
],
632
+
"primaryKey": {
633
+
"autoGenerate": true,
634
+
"columnNames": [
635
+
"id"
636
+
]
637
+
},
638
+
"indices": [],
639
+
"foreignKeys": []
508
640
}
509
641
],
510
642
"views": [],
511
643
"setupQueries": [
512
644
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
513
-
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '4fda73a442b6411886706c42bedc64bc')"
645
+
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'a82b3c3fcdfd42d3736c96fd4b979451')"
0 commit comments