id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
33,300
203_deleted_at_constraint.py
nylas_sync-engine/migrations/versions/203_deleted_at_constraint.py
"""Add deleted_at constraint to EASFolderSyncStatus, Label, Folder, and Category Revision ID: 420ccbea2c5e Revises: 2e515548043b Create Date: 2015-09-01 18:09:11.955599 """ # revision identifiers, used by Alembic. revision = '420ccbea2c5e' down_revision = '2e515548043b' from alembic import op from sqlalchemy.sql im...
1,928
Python
.py
40
39.7
80
0.638978
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,301
011_use_server_default.py
nylas_sync-engine/migrations/versions/011_use_server_default.py
"""Use server_default Revision ID: 3237b6b1ee03 Revises: 193802835c33 Create Date: 2014-04-17 21:40:47.514728 """ # revision identifiers, used by Alembic. revision = '3237b6b1ee03' down_revision = '3b511977a01f' from alembic import op import sqlalchemy as sa def upgrade(): # Base tables op.alter_column('a...
6,108
Python
.py
122
33.737705
79
0.549029
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,302
233_revert_drop_block_foreign_keys.py
nylas_sync-engine/migrations/versions/233_revert_drop_block_foreign_keys.py
"""Revert "Drop Block and Part ForeignKeys" Revision ID: 569ebe8e383d Revises: 4a44b06cd53b Create Date: 2016-10-10 18:26:43.036307 """ # revision identifiers, used by Alembic. revision = '569ebe8e383d' down_revision = '4a44b06cd53b' from alembic import op from sqlalchemy.sql import text def upgrade(): conn =...
1,178
Python
.py
29
31.413793
65
0.614373
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,303
016_extra_transaction_data.py
nylas_sync-engine/migrations/versions/016_extra_transaction_data.py
"""extra transaction data Revision ID: 5093433b073 Revises: 3fee2f161614 Create Date: 2014-04-25 23:23:36.442325 """ # revision identifiers, used by Alembic. revision = '5093433b073' down_revision = '3fee2f161614' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('transaction', sa.Co...
493
Python
.py
15
27.933333
79
0.706383
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,304
097_secrets_endgame.py
nylas_sync-engine/migrations/versions/097_secrets_endgame.py
"""secrets_endgame Revision ID: 248ec24a39f Revises: 38c29430efeb Create Date: 2014-09-18 03:03:52.580809 """ # revision identifiers, used by Alembic. revision = '248ec24a39f' down_revision = '38c29430efeb' from alembic import op def upgrade(): from inbox.ignition import main_engine engine = main_engine()...
489
Python
.py
17
25.647059
48
0.739224
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,305
138_add_participants_column.py
nylas_sync-engine/migrations/versions/138_add_participants_column.py
"""add participants column Revision ID: 5305d4ae30b4 Revises: 1f746c93e8fd Create Date: 2015-02-17 20:02:51.930086 """ from alembic import op from sqlalchemy.sql import text # revision identifiers, used by Alembic. revision = '5305d4ae30b4' down_revision = '1f746c93e8fd' def upgrade(): conn = op.get_bind() ...
508
Python
.py
16
29.3125
77
0.769072
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,306
056_message_unique_constraint.py
nylas_sync-engine/migrations/versions/056_message_unique_constraint.py
""" Remove duplicated Gmail Message objects and tighten constraints for Gmail messages. Revision ID: 4b4c5579c083 Revises: 1925c535a52d Create Date: 2014-07-17 00:01:09.410292 """ # revision identifiers, used by Alembic. revision = '4b4c5579c083' down_revision = '4b4674f1a726' from alembic import op from sqlalchemy...
2,132
Python
.py
43
39.302326
104
0.62897
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,307
022_webhooks_and_filters.py
nylas_sync-engine/migrations/versions/022_webhooks_and_filters.py
""" Rename WebhookParameters -> Webhook Note that this migration deletes old webhook data. This is OK because we haven't stored any webhooks yet. Revision ID: 2c313b6ddd9b Revises: 519e462df171 Create Date: 2014-05-04 03:14:39.923489 """ # revision identifiers, used by Alembic. revision = '2c313b6ddd9b' down_revisi...
3,776
Python
.py
78
36.205128
79
0.574416
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,308
088_calendar_descriptions.py
nylas_sync-engine/migrations/versions/088_calendar_descriptions.py
"""calendars Revision ID: 24e9afe91349 Revises: 1ac03cab7a24 Create Date: 2014-08-28 05:27:28.498786 """ # revision identifiers, used by Alembic. revision = '24e9afe91349' down_revision = '565c7325c51d' from alembic import op import sqlalchemy as sa def upgrade(): from inbox.models.session import session_scop...
3,395
Python
.py
70
38.9
79
0.625
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,309
135_add_thread_tag_index_to_tagitem.py
nylas_sync-engine/migrations/versions/135_add_thread_tag_index_to_tagitem.py
"""Add composite index to TagItem Revision ID: 4ee8aab06ee Revises: 4270a032b943 Create Date: 2015-02-10 00:04:00.832209 """ # revision identifiers, used by Alembic. revision = '4ee8aab06ee' down_revision = '4270a032b943' from alembic import op def upgrade(): op.create_index('tag_thread_ids', 'tagitem', ['thr...
417
Python
.py
13
29.846154
73
0.747475
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,310
004_drafts_as_required_folder.py
nylas_sync-engine/migrations/versions/004_drafts_as_required_folder.py
"""Drafts as required folder Revision ID: 41a7e825d108 Revises: 269247bc37d3 Create Date: 2014-03-13 21:14:25.652333 """ # revision identifiers, used by Alembic. revision = '41a7e825d108' down_revision = '269247bc37d3' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('imapaccount', ...
459
Python
.py
14
30.642857
96
0.773455
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,311
101_add_namespace_to_contacts.py
nylas_sync-engine/migrations/versions/101_add_namespace_to_contacts.py
"""add_namespace_to_contacts Revision ID: 3bb01fcc755e Revises:5a68ac0e3e9 Create Date: 2014-09-22 02:33:53.301883 """ # revision identifiers, used by Alembic. revision = '3bb01fcc755e' down_revision = '5a68ac0e3e9' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind() ...
965
Python
.py
29
26.827586
81
0.667387
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,312
044_update_drafts_schema.py
nylas_sync-engine/migrations/versions/044_update_drafts_schema.py
"""update drafts schema Revision ID: 247cd689758c Revises:5a136610b50b Create Date: 2014-06-19 19:09:48.387937 """ # revision identifiers, used by Alembic. revision = '247cd689758c' down_revision = '5a136610b50b' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ...
2,512
Python
.py
52
36.461538
77
0.602365
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,313
091_remove_webhooks.py
nylas_sync-engine/migrations/versions/091_remove_webhooks.py
"""remove webhooks Revision ID: 4b07b67498e1 Revises: 2b89164aa9cd Create Date: 2014-09-12 21:15:06.890202 """ # revision identifiers, used by Alembic. revision = '4b07b67498e1' down_revision = '2b89164aa9cd' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): o...
3,952
Python
.py
74
43.972973
79
0.643928
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,314
118_store_label_information_per_uid.py
nylas_sync-engine/migrations/versions/118_store_label_information_per_uid.py
"""store label information per-uid Revision ID: 4634999269 Revises: 5709063bff01 Create Date: 2014-10-14 10:04:58.710015 """ # revision identifiers, used by Alembic. revision = '4634999269' down_revision = '420bf3422c4f' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import text from inbox.sqla...
627
Python
.py
19
28.578947
60
0.702341
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,315
230_drop_block_foreign_keys.py
nylas_sync-engine/migrations/versions/230_drop_block_foreign_keys.py
"""Drop Block and Part ForeignKeys Revision ID: 4265dc58eec6 Revises: 23ff7f0b506d Create Date: 2016-09-20 20:39:09.078087 """ # revision identifiers, used by Alembic. revision = '4265dc58eec6' down_revision = '23ff7f0b506d' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_b...
1,169
Python
.py
29
31.103448
65
0.613958
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,316
181_drop_short_event_descriptions.py
nylas_sync-engine/migrations/versions/181_drop_short_event_descriptions.py
"""drop short event descriptions Revision ID: 10da2e0bc3bb Revises: ea9dc8742ee Create Date: 2015-06-23 18:39:53.327467 """ # revision identifiers, used by Alembic. revision = '10da2e0bc3bb' down_revision = 'ea9dc8742ee' from alembic import op def upgrade(): op.drop_column('event', 'description') def downgr...
349
Python
.py
13
24.615385
42
0.77439
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,317
150_add_polymorphic_events.py
nylas_sync-engine/migrations/versions/150_add_polymorphic_events.py
"""Add polymorphic Events Revision ID: 1de526a15c5d Revises: 2493281d621 Create Date: 2015-03-11 22:51:22.180028 """ # revision identifiers, used by Alembic. revision = '1de526a15c5d' down_revision = '2493281d621' import json import ast import sys from alembic import op import sqlalchemy as sa def upgrade(): ...
6,747
Python
.py
163
29.533742
78
0.559092
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,318
000_g_msgid_g_thrid_as_integers.py
nylas_sync-engine/migrations/versions/000_g_msgid_g_thrid_as_integers.py
""" Store g_msgid and g_thrid as integers, not strings. For more efficiency. Revision ID: 2605b23e1fe6 Revises: None Create Date: 2014-03-04 00:34:31.817332 """ # revision identifiers, used by Alembic. revision = '2605b23e1fe6' down_revision = None from alembic import op from sqlalchemy.dialects import mysql def...
895
Python
.py
20
41.6
79
0.717593
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,319
108_easaccount_username.py
nylas_sync-engine/migrations/versions/108_easaccount_username.py
"""easaccount.username and easaccount.auth Revision ID: 2f97277cd86d Revises: 3cea90bfcdea Create Date: 2014-10-04 07:59:29.540240 """ # revision identifiers, used by Alembic. revision = '2f97277cd86d' down_revision = '3cea90bfcdea' from alembic import op import sqlalchemy as sa def upgrade(): from inbox.igni...
1,703
Python
.py
43
32.488372
83
0.675198
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,320
234_change_contact_uid_collation.py
nylas_sync-engine/migrations/versions/234_change_contact_uid_collation.py
"""Make Contact.uid collation case sensitive Revision ID: 53e6a7446c45 Revises: 569ebe8e383d Create Date: 2016-10-07 22:51:31.495243 """ # revision identifiers, used by Alembic. revision = '53e6a7446c45' down_revision = '569ebe8e383d' from alembic import op from sqlalchemy.sql import text def upgrade(): conn ...
583
Python
.py
16
33.9375
104
0.77102
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,321
159_update_eas_schema_part_3.py
nylas_sync-engine/migrations/versions/159_update_eas_schema_part_3.py
"""update_eas_schema_part_3 Revision ID: 4e6eedda36af Revises: 5aa3f27457c Create Date: 2015-04-06 23:35:00.178901 """ # revision identifiers, used by Alembic. revision = '4e6eedda36af' down_revision = '5aa3f27457c' from alembic import op def upgrade(): from inbox.ignition import main_engine engine = main...
794
Python
.py
22
31.772727
77
0.720839
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,322
231_drop_contact_foreign_keys.py
nylas_sync-engine/migrations/versions/231_drop_contact_foreign_keys.py
"""Drop Contact foreign keys Revision ID: c48fc8dea1b Revises: 23ff7f0b506d Create Date: 2016-09-13 17:29:27.783566 """ # revision identifiers, used by Alembic. revision = 'c48fc8dea1b' down_revision = '4265dc58eec6' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind() ...
1,289
Python
.py
29
35.103448
76
0.650641
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,323
092_fix_outlookaccount_typo.py
nylas_sync-engine/migrations/versions/092_fix_outlookaccount_typo.py
"""fix outlookaccount typo Revision ID: 63dc7f205da Revises: 4b07b67498e1 Create Date: 2014-09-15 16:57:45.265778 """ # revision identifiers, used by Alembic. revision = '63dc7f205da' down_revision = '4b07b67498e1' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind() ...
578
Python
.py
20
25.9
72
0.730909
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,324
116_eas_twodevices_prestige.py
nylas_sync-engine/migrations/versions/116_eas_twodevices_prestige.py
"""EAS two-devices prestige Revision ID: 10ecf4841ac3 Revises: 17dc9c049f8b Create Date: 2014-10-21 20:38:17.143065 """ # revision identifiers, used by Alembic. revision = '10ecf4841ac3' down_revision = '17dc9c049f8b' from alembic import op import sqlalchemy as sa def upgrade(): op.alter_column('easdevice', '...
1,234
Python
.py
29
35.586207
64
0.666388
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,325
222_remove_unused_transaction_indices.py
nylas_sync-engine/migrations/versions/222_remove_unused_transaction_indices.py
"""Remove unused indices on transaction table Revision ID: 361972a1de3e Revises: 516024977fc5 Create Date: 2016-04-27 20:18:26.123815 """ # revision identifiers, used by Alembic. revision = '361972a1de3e' down_revision = '516024977fc5' from alembic import op def upgrade(): op.drop_index('ix_transaction_table_...
686
Python
.py
17
35.588235
72
0.712557
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,326
080_longer_event_summaries.py
nylas_sync-engine/migrations/versions/080_longer_event_summaries.py
"""longer event summaries. Revision ID: 4e3e8abea884 Revises: 5901bf556d83 Create Date: 2014-08-14 21:47:43.934044 """ # revision identifiers, used by Alembic. revision = '4e3e8abea884' down_revision = '5901bf556d83' from alembic import op import sqlalchemy as sa def upgrade(): op.alter_column('event', 'subje...
429
Python
.py
14
28.5
62
0.759214
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,327
065_add_multi_column_transaction_index.py
nylas_sync-engine/migrations/versions/065_add_multi_column_transaction_index.py
"""add multi-column transaction index Revision ID: 2e6120c97485 Revises: 2d05e116bdb7 Create Date: 2014-07-20 03:23:21.303491 """ # revision identifiers, used by Alembic. revision = '2e6120c97485' down_revision = '2d05e116bdb7' from alembic import op def upgrade(): op.create_index('namespace_id_deleted_at', ...
510
Python
.py
15
29.266667
70
0.706366
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,328
025_remove_user_sharedfolder_and_usersession.py
nylas_sync-engine/migrations/versions/025_remove_user_sharedfolder_and_usersession.py
"""Remove User, SharedFolder, and UserSession Revision ID: 59b42d0ac749 Revises: 4c1eb89f6bed Create Date: 2014-05-09 07:47:54.866524 """ # revision identifiers, used by Alembic. revision = '59b42d0ac749' down_revision = '4c1eb89f6bed' from alembic import op def upgrade(): op.drop_constraint('account_ibfk_1',...
847
Python
.py
22
34.727273
79
0.72549
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,329
182_add_data_processing_cache_table.py
nylas_sync-engine/migrations/versions/182_add_data_processing_cache_table.py
"""add data processing cache table Revision ID: 3857f395fb1d Revises: 10da2e0bc3bb Create Date: 2015-06-17 17:53:13.049138 """ # revision identifiers, used by Alembic. revision = '3857f395fb1d' down_revision = '10da2e0bc3bb' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def ...
1,311
Python
.py
31
35.677419
79
0.676101
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,330
103_add_namespace_to_calendars.py
nylas_sync-engine/migrations/versions/103_add_namespace_to_calendars.py
"""add_namespace_to_calendars Revision ID: 4015edc83ba Revises:4d10bc835f44 Create Date: 2014-09-22 03:29:21.076836 """ # revision identifiers, used by Alembic. revision = '4015edc83ba' down_revision = '4d10bc835f44' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import text def upgrade(): ...
1,015
Python
.py
25
33.56
82
0.660204
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,331
095_secret_storage.py
nylas_sync-engine/migrations/versions/095_secret_storage.py
"""Secret storage Revision ID: 1683790906cf Revises427812c1e849: Create Date: 2014-08-20 00:42:10.269746 """ # revision identifiers, used by Alembic. revision = '1683790906cf' down_revision = '427812c1e849' from alembic import op import sqlalchemy as sa def upgrade(): # SECRETS TABLE: # Can just drop this...
1,391
Python
.py
32
34.4375
78
0.61276
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,332
220_folder_separators_again.py
nylas_sync-engine/migrations/versions/220_folder_separators_again.py
"""folder separators again Revision ID: 59e1cc690da9 Revises: 2b2205db4964 Create Date: 2016-03-30 18:04:38.484343 """ # revision identifiers, used by Alembic. revision = '59e1cc690da9' down_revision = '2b2205db4964' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind() ...
1,613
Python
.py
32
43.03125
96
0.673678
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,333
112_imap_delete_cascades.py
nylas_sync-engine/migrations/versions/112_imap_delete_cascades.py
"""imap delete cascades Revision ID: 26911668870a Revises: 22d076f48b88 Create Date: 2014-10-20 22:06:33.118656 """ # revision identifiers, used by Alembic. revision = '26911668870a' down_revision = '22d076f48b88' from alembic import op def upgrade(): conn = op.get_bind() conn.execute(''' ALTER TA...
715
Python
.py
22
27.818182
74
0.714912
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,334
029_set_inbox_folder_exposed_name.py
nylas_sync-engine/migrations/versions/029_set_inbox_folder_exposed_name.py
"""set inbox folder exposed name Revision ID: 52a9a976a2e0 Revises: 40629415951c Create Date: 2014-05-15 22:57:47.913610 """ # revision identifiers, used by Alembic. revision = '52a9a976a2e0' down_revision = '40629415951c' from sqlalchemy.ext.declarative import declarative_base def upgrade(): from inbox.model...
877
Python
.py
25
29.84
55
0.705463
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,335
208_drop_easuid_uniqueconstraint.py
nylas_sync-engine/migrations/versions/208_drop_easuid_uniqueconstraint.py
"""Drop EASUid UniqueConstraint Revision ID: 1962d17d1c0a Revises: 4b225df49747 Create Date: 2015-11-04 23:11:43.661200 """ # revision identifiers, used by Alembic. revision = '1962d17d1c0a' down_revision = '4b225df49747' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind...
591
Python
.py
19
28
68
0.725177
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,336
068_outlook.py
nylas_sync-engine/migrations/versions/068_outlook.py
"""outlook Revision ID: 1ceff61ec112 Revises: 2e6120c97485 Create Date: 2014-07-22 10:17:33.115621 """ # revision identifiers, used by Alembic. revision = '1ceff61ec112' down_revision = '322c2800c401' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table('outlookaccount', ...
1,851
Python
.py
38
32.868421
77
0.523546
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,337
219_accounttransaction_namespace_id_cascade.py
nylas_sync-engine/migrations/versions/219_accounttransaction_namespace_id_cascade.py
"""accounttransaction namespace_id CASCADE Revision ID: 2b2205db4964 Revises: 3b1cc8580fc2 Create Date: 2016-02-26 22:37:09.398438 """ # revision identifiers, used by Alembic. revision = '2b2205db4964' down_revision = '3b1cc8580fc2' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = ...
1,178
Python
.py
24
44.166667
108
0.729021
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,338
038_add_public_ids_to_transactions.py
nylas_sync-engine/migrations/versions/038_add_public_ids_to_transactions.py
"""Add public ids to transactions Revision ID: 1edbd63582c2 Revises: 1d7374c286c5 Create Date: 2014-05-20 23:31:48.924200 """ # revision identifiers, used by Alembic. revision = '1edbd63582c2' down_revision = '1d7374c286c5' import sys from gc import collect as garbage_collect from alembic import op import sqlalchem...
2,940
Python
.py
63
35.507937
79
0.612779
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,339
122_add_easeventuid.py
nylas_sync-engine/migrations/versions/122_add_easeventuid.py
"""Add easeventuid Revision ID: 476c5185121b Revises: 526eefc1d600 Create Date: 2014-12-10 22:03:56.946721 """ # revision identifiers, used by Alembic. revision = '476c5185121b' down_revision = '526eefc1d600' from alembic import op import sqlalchemy as sa def upgrade(): from inbox.ignition import main_engine ...
2,176
Python
.py
47
37.361702
79
0.624291
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,340
195_remove_receivedrecentdate_column.py
nylas_sync-engine/migrations/versions/195_remove_receivedrecentdate_column.py
"""Remove receivedrecentdate column Revision ID: 51ad0922ad8e Revises: 69e93aef3e9 Create Date: 2015-08-04 18:23:40.588284 """ # revision identifiers, used by Alembic. revision = '51ad0922ad8e' down_revision = '69e93aef3e9' from alembic import op import sqlalchemy as sa def upgrade(): op.drop_column('thread',...
808
Python
.py
21
31
74
0.664955
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,341
153_revert_account_unique_constraint.py
nylas_sync-engine/migrations/versions/153_revert_account_unique_constraint.py
"""revert account unique constraint Revision ID: 4032709362da Revises: 211e93aff1e1 Create Date: 2015-03-25 23:46:25.649192 """ # revision identifiers, used by Alembic. revision = '4032709362da' down_revision = '211e93aff1e1' from alembic import op def upgrade(): conn = op.get_bind() index_name = conn.exe...
921
Python
.py
22
35.318182
71
0.679012
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,342
049_store_less_on_threads_after_all.py
nylas_sync-engine/migrations/versions/049_store_less_on_threads_after_all.py
"""store less on threads after all Revision ID: 1b751e8d9cac Revises: 4e44216e9830 Create Date: 2014-07-04 01:06:18.125947 """ # revision identifiers, used by Alembic. revision = '1b751e8d9cac' down_revision = '4e44216e9830' from alembic import op def upgrade(): op.drop_column('thread', 'participants') op...
431
Python
.py
14
28.357143
50
0.762836
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,343
211_drop_message_full_body_id.py
nylas_sync-engine/migrations/versions/211_drop_message_full_body_id.py
"""drop Revision ID: 31aae1ecb374 Revises: 3613ca83ea40 Create Date: 2015-11-18 04:14:50.340067 """ # revision identifiers, used by Alembic. revision = '31aae1ecb374' down_revision = '3613ca83ea40' from alembic import op def upgrade(): op.drop_column('message', 'full_body_id') def downgrade(): pass
316
Python
.py
13
22.076923
45
0.762712
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,344
147_add_cleaned_subject.py
nylas_sync-engine/migrations/versions/147_add_cleaned_subject.py
"""add cleaned subject Revision ID: 486c7fa5b533 Revises: 1d7a72222b7c Create Date: 2015-03-10 16:33:41.740387 """ # revision identifiers, used by Alembic. revision = '486c7fa5b533' down_revision = 'c77a90d524' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import text def upgrade(): conn ...
865
Python
.py
23
32.26087
76
0.675481
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,345
019_blocks_to_parts.py
nylas_sync-engine/migrations/versions/019_blocks_to_parts.py
"""Save "Blocks" (attachments) as "Parts" since now "Blocks" are general uploaded files Revision ID: 5a787816e2bc Revises: 223041bb858b Create Date: 2014-04-28 22:09:00.652851 """ # revision identifiers, used by Alembic. revision = '5a787816e2bc' down_revision = '223041bb858b' from alembic import op import sqlalc...
4,488
Python
.py
94
37.670213
76
0.621653
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,346
126_add_account_sync_contacts_events.py
nylas_sync-engine/migrations/versions/126_add_account_sync_contacts_events.py
"""Add the [_]sync_{contacts|events} cols to the Account tbl. Revision ID: 262436681c4 Revises: 955792afd00 Create Date: 2014-12-19 13:33:19.653113 """ # revision identifiers, used by Alembic. revision = '262436681c4' down_revision = '955792afd00' from alembic import op import sqlalchemy as sa def upgrade(): ...
1,490
Python
.py
42
23.928571
77
0.542738
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,347
221_fix_category_column_defaults.py
nylas_sync-engine/migrations/versions/221_fix_category_column_defaults.py
"""Fix Category column defaults. Revision ID: 516024977fc5 Revises: 59e1cc690da9 Create Date: 2016-04-13 00:05:16.542436 """ # revision identifiers, used by Alembic. revision = '516024977fc5' down_revision = '59e1cc690da9' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bin...
1,148
Python
.py
25
37.36
108
0.649281
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,348
141_remote_remote_contacts.py
nylas_sync-engine/migrations/versions/141_remote_remote_contacts.py
"""Remove notion of 'remote' contact and drop contact 'source' column Revision ID: 3ab34bc85c8d Revises: 3f01a3f1b4cc Create Date: 2015-02-16 16:03:45.288539 """ # revision identifiers, used by Alembic. revision = '3ab34bc85c8d' down_revision = '3f01a3f1b4cc' from alembic import op from sqlalchemy.ext.declarative i...
1,035
Python
.py
25
37.56
77
0.744745
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,349
229_drop_transaction_foreign_keys.py
nylas_sync-engine/migrations/versions/229_drop_transaction_foreign_keys.py
"""Remove Transaction ForeignKeys Revision ID: 23ff7f0b506d Revises: 3df39f4fbdec Create Date: 2016-09-07 19:31:02.396029 """ # revision identifiers, used by Alembic. revision = '23ff7f0b506d' down_revision = '3df39f4fbdec' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bi...
989
Python
.py
24
33.375
77
0.671891
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,350
174_backfill_owner2.py
nylas_sync-engine/migrations/versions/174_backfill_owner2.py
"""backfill owner column data Revision ID: 4ef055945390 Revises: fd32a69381a Create Date: 2015-05-13 14:04:12.304013 """ # revision identifiers, used by Alembic. revision = '4ef055945390' down_revision = 'fd32a69381a' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind() ...
544
Python
.py
17
29.294118
78
0.747104
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,351
180_migrate_event_descriptions.py
nylas_sync-engine/migrations/versions/180_migrate_event_descriptions.py
"""migrate event descriptions Revision ID: ea9dc8742ee Revises: 56500282e024 Create Date: 2015-06-23 18:09:33.804125 """ # revision identifiers, used by Alembic. revision = 'ea9dc8742ee' down_revision = '56500282e024' from alembic import op def upgrade(): conn = op.get_bind() while True: res = con...
601
Python
.py
20
25.05
82
0.689354
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,352
164_add_decode_error_index.py
nylas_sync-engine/migrations/versions/164_add_decode_error_index.py
"""add message.decode_error index """ revision = '17dcbd7754e0' down_revision = '457164360472' from alembic import op def upgrade(): op.create_index('ix_message_decode_error', 'message', ['decode_error'], unique=False) def downgrade(): op.drop_index('ix_message_decode_error', table_nam...
333
Python
.py
9
32.222222
66
0.691824
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,353
046_yahoo.py
nylas_sync-engine/migrations/versions/046_yahoo.py
"""yahoo Revision ID: 38d78543f8be Revises: 247cd689758c Create Date: 2014-06-30 18:20:34.960236 """ # revision identifiers, used by Alembic. revision = '38d78543f8be' down_revision = '7a117720554' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table('yahooaccount', ...
691
Python
.py
20
25.55
72
0.597285
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,354
224_namespace_id_idx_transaction.py
nylas_sync-engine/migrations/versions/224_namespace_id_idx_transaction.py
"""Add namespace_id index on transaction table Revision ID: 29a1f2ef5653 Revises: 539ce0291298 Create Date: 2016-05-24 00:16:24.965607 """ # revision identifiers, used by Alembic. revision = '29a1f2ef5653' down_revision = '539ce0291298' from alembic import op def upgrade(): op.create_index('idx_namespace', 't...
465
Python
.py
14
29.642857
69
0.735892
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,355
140_relax_participants_by_email_constraint.py
nylas_sync-engine/migrations/versions/140_relax_participants_by_email_constraint.py
"""relax_participants_by_email_constraint Revision ID: 3f01a3f1b4cc Revises: 5305d4ae30b4 Create Date: 2015-02-19 00:06:07.906794 """ # revision identifiers, used by Alembic. revision = '3f01a3f1b4cc' down_revision = '1fd7b3e0b662' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = o...
544
Python
.py
16
31.5
87
0.769231
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,356
060_cascade_folder_deletes_to_easuid.py
nylas_sync-engine/migrations/versions/060_cascade_folder_deletes_to_easuid.py
"""Cascade Folder deletes to EASUid Revision ID: 2a748760ac63 Revises: 4af5952e8a5b Create Date: 2014-07-19 00:28:08.258857 """ # revision identifiers, used by Alembic. revision = '2a748760ac63' down_revision = '15dfc756a1b0' from alembic import op def upgrade(): from inbox.ignition import main_engine eng...
962
Python
.py
23
35.869565
73
0.679225
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,357
022_store_imapuid_msg_uid_as_biginteger_.py
nylas_sync-engine/migrations/versions/022_store_imapuid_msg_uid_as_biginteger_.py
"""Store ImapUid<msg_uid as BigInteger instead of Integer Revision ID: 519e462df171 Revises: 4fd291c6940c Create Date: 2014-04-25 00:54:05.728375 """ # revision identifiers, used by Alembic. revision = '519e462df171' down_revision = '4fd291c6940c' from alembic import op import sqlalchemy as sa from sqlalchemy.diale...
495
Python
.py
15
30.933333
61
0.777542
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,358
062_up_max_length_of_message_message_id_header.py
nylas_sync-engine/migrations/versions/062_up_max_length_of_message_message_id_header.py
"""Up max length of Message.message_id_header From http://tools.ietf.org/html/rfc4130 (section 5.3.3), max message_id_header is 998 characters. We could get DataErrors otherwise. Revision ID: 4c03aaa1fa47 Revises: bb4f204f192 Create Date: 2014-07-19 02:05:17.885327 """ # revision identifiers, used by Alembic. revis...
691
Python
.py
19
32.368421
65
0.730015
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,359
082_event_participants.py
nylas_sync-engine/migrations/versions/082_event_participants.py
"""event participants Revision ID: 1322d3787305 Revises: 4e3e8abea884 Create Date: 2014-08-15 20:53:36.656057 """ # revision identifiers, used by Alembic. revision = '1322d3787305' down_revision = '1bc2536b8bc6' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'eventparti...
1,401
Python
.py
32
36.40625
72
0.639971
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,360
187_migrate_data_for_folders_overhaul.py
nylas_sync-engine/migrations/versions/187_migrate_data_for_folders_overhaul.py
"""migrate data for folders overhaul Revision ID: 334b33f18b4f Revises: 23e204cd1d91 Create Date: 2015-07-09 00:23:04.918833 """ # revision identifiers, used by Alembic. revision = '334b33f18b4f' down_revision = '23e204cd1d91' from sqlalchemy import asc from sqlalchemy.orm import joinedload, subqueryload, load_only...
5,391
Python
.py
125
33.784
77
0.643307
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,361
102_add_namespace_to_events.py
nylas_sync-engine/migrations/versions/102_add_namespace_to_events.py
"""add_namespace_to_events Revision ID: 4d10bc835f44 Revises: 3bb01fcc755e Create Date: 2014-09-22 03:28:18.437679 """ # revision identifiers, used by Alembic. revision = '4d10bc835f44' down_revision = '3bb01fcc755e' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind() ...
956
Python
.py
29
26.517241
82
0.663032
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,362
008_store_userinfo_from_oauth.py
nylas_sync-engine/migrations/versions/008_store_userinfo_from_oauth.py
"""Store UserInfo from Oauth Revision ID: 3c11391b5eb0 Revises: 1c3f1812f2d9 Create Date: 2014-04-04 00:55:47.813888 """ # revision identifiers, used by Alembic. revision = '3c11391b5eb0' down_revision = '1c3f1812f2d9' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated b...
1,448
Python
.py
30
44.6
94
0.699291
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,363
143_add_reply_to_message_id.py
nylas_sync-engine/migrations/versions/143_add_reply_to_message_id.py
"""add reply_to_message_id Revision ID: 1d7a72222b7c Revises:2d8a350b4885 Create Date: 2015-02-18 21:40:50.082303 """ # revision identifiers, used by Alembic. revision = '1d7a72222b7c' down_revision = '2d8a350b4885' from alembic import op def upgrade(): conn = op.get_bind() # This rigamarole is only neces...
1,802
Python
.py
34
47.205882
114
0.716885
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,364
161_update_eas_schema_part_3_for_prod.py
nylas_sync-engine/migrations/versions/161_update_eas_schema_part_3_for_prod.py
"""update_eas_schema_part_3 for prod Revision ID: 365071c47fa7 Revises: 182f2b40fa36 Create Date: 2015-05-04 19:06:03.595736 """ # revision identifiers, used by Alembic. revision = '365071c47fa7' down_revision = '182f2b40fa36' from alembic import op from sqlalchemy.schema import MetaData def upgrade(): from i...
1,109
Python
.py
31
31
77
0.713615
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,365
132_add_cascade_delete_part_block_id.py
nylas_sync-engine/migrations/versions/132_add_cascade_delete_part_block_id.py
"""Add ON DELETE CASCADE to part.block_id. Revision ID: 1d93c9f9f506 Revises: 3bb4a941639c Create Date: 2015-02-04 10:03:54.828708 """ # revision identifiers, used by Alembic. revision = '1d93c9f9f506' down_revision = '3bb4a941639c' from alembic import op def upgrade(): connection = op.get_bind() connecti...
665
Python
.py
21
27.619048
114
0.710692
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,366
145_drop_event_constraint.py
nylas_sync-engine/migrations/versions/145_drop_event_constraint.py
"""drop event constraint Revision ID: 557378226d9f Revises: 1c73ca99c03b Create Date: 2015-03-11 02:42:57.477016 """ # revision identifiers, used by Alembic. revision = '557378226d9f' down_revision = '1c73ca99c03b' from alembic import op def upgrade(): conn = op.get_bind() conn.execute( '''ALTER T...
659
Python
.py
20
28.25
86
0.695238
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,367
110_add_thread_index.py
nylas_sync-engine/migrations/versions/110_add_thread_index.py
"""add thread index Revision ID: 4011b943a24d Revises: 5709063bff01 Create Date: 2014-10-14 06:09:07.279954 """ # revision identifiers, used by Alembic. revision = '4011b943a24d' down_revision = '5709063bff01' from alembic import op def upgrade(): op.create_index('ix_thread_namespace_id_recentdate_deleted_at'...
536
Python
.py
15
31.133333
79
0.709552
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,368
002_store_g_thrid_as_biginteger_instead_of_.py
nylas_sync-engine/migrations/versions/002_store_g_thrid_as_biginteger_instead_of_.py
""" Change g_thrid as BigInteger instead of string Revision ID: 297aa1e1acc7 Revises: 217431caacc7 Create Date: 2014-03-05 19:44:58.323666 """ # revision identifiers, used by Alembic. revision = '297aa1e1acc7' down_revision = '217431caacc7' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects imp...
530
Python
.py
16
30.875
62
0.766798
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,369
074_add_eas_thrid_index.py
nylas_sync-engine/migrations/versions/074_add_eas_thrid_index.py
"""Add eas_thrid index Revision ID: 3c02d8204335 Revises:43cd2de5ad85 Create Date: 2014-08-02 03:12:47.504963 """ # revision identifiers, used by Alembic. revision = '3c02d8204335' down_revision = '43cd2de5ad85' from alembic import op import sqlalchemy as sa def upgrade(): from inbox.ignition import main_engi...
901
Python
.py
25
31.44
77
0.722864
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,370
006_add_search_tokens.py
nylas_sync-engine/migrations/versions/006_add_search_tokens.py
"""Add search tokens. Revision ID: 482338e7a7d6 Revises: 41a7e825d108 Create Date: 2014-03-18 00:16:49.525732 """ # revision identifiers, used by Alembic. revision = '482338e7a7d6' down_revision = 'adc646e1f11' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'searchtoken...
797
Python
.py
23
28.956522
77
0.66188
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,371
015_generalize_from_sender_header_field.py
nylas_sync-engine/migrations/versions/015_generalize_from_sender_header_field.py
"""generalize from/sender header field Revision ID: 3fee2f161614 Revises: 563d405d1f99 Create Date: 2014-04-24 06:04:21.163229 """ # revision identifiers, used by Alembic. revision = '3fee2f161614' down_revision = '563d405d1f99' def upgrade(): from inbox.models.session import session_scope from inbox.model...
1,042
Python
.py
28
30.464286
60
0.682587
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,372
021_add_references_column_to_message_table.py
nylas_sync-engine/migrations/versions/021_add_references_column_to_message_table.py
"""Add references column to message table Revision ID: 4fd291c6940c Revises: 10ef1d46f016 Create Date: 2014-04-25 00:51:04.825531 """ # revision identifiers, used by Alembic. revision = '4fd291c6940c' down_revision = '10ef1d46f016' from alembic import op import sqlalchemy as sa def upgrade(): from inbox.sqlal...
486
Python
.py
15
30
74
0.774892
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,373
179_longer_event_descriptions.py
nylas_sync-engine/migrations/versions/179_longer_event_descriptions.py
"""longer event descriptions Revision ID: 56500282e024 Revises: 41f957b595fc Create Date: 2015-06-23 18:08:47.266984 """ # revision identifiers, used by Alembic. revision = '56500282e024' down_revision = '41f957b595fc' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrad...
512
Python
.py
16
27.6875
70
0.721311
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,374
111_add_account_name_column.py
nylas_sync-engine/migrations/versions/111_add_account_name_column.py
"""add account.name column Revision ID: 22d076f48b88 Revises: 4011b943a24d Create Date: 2014-10-14 18:40:50.160707 """ # revision identifiers, used by Alembic. revision = '22d076f48b88' down_revision = '4011b943a24d' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('account', sa.Col...
868
Python
.py
24
30.708333
74
0.696172
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,375
137_add_versions.py
nylas_sync-engine/migrations/versions/137_add_versions.py
"""add versions Revision ID: 1f746c93e8fd Revises:39fa82d3168e Create Date: 2015-02-06 03:46:14.342310 """ # revision identifiers, used by Alembic. revision = '1f746c93e8fd' down_revision = '39fa82d3168e' from alembic import op import sqlalchemy as sa def upgrade(): op.drop_column('message', 'version') op...
770
Python
.py
20
32.05
78
0.653639
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,376
151_remove_message_thread_order.py
nylas_sync-engine/migrations/versions/151_remove_message_thread_order.py
"""remove message.thread_order Revision ID: 2f3c8fa3fc3a Revises: 1de526a15c5d Create Date: 2015-03-23 19:14:05.945773 """ # revision identifiers, used by Alembic. revision = '2f3c8fa3fc3a' down_revision = '1de526a15c5d' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgr...
575
Python
.py
17
27.294118
71
0.674545
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,377
007_per_provider_table_split.py
nylas_sync-engine/migrations/versions/007_per_provider_table_split.py
"""per-provider table split Revision ID: 1c3f1812f2d9 Revises: 482338e7a7d6 Create Date: 2014-03-19 17:55:44.578515 """ # revision identifiers, used by Alembic. revision = '1c3f1812f2d9' down_revision = '482338e7a7d6' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import table, column from sqla...
8,963
Python
.py
195
36.035897
79
0.605786
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,378
079_events_longer_uids.py
nylas_sync-engine/migrations/versions/079_events_longer_uids.py
"""events longer uids Revision ID: 5901bf556d83 Revises: 1c2253a0e997 Create Date: 2014-08-11 23:06:39.737550 """ # revision identifiers, used by Alembic. revision = '5901bf556d83' down_revision = '1c2253a0e997' from alembic import op import sqlalchemy as sa from sqlalchemy.ext.declarative import declarative_base ...
1,390
Python
.py
32
35.78125
81
0.642433
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,379
001_rename_message_id_to_message_id_header.py
nylas_sync-engine/migrations/versions/001_rename_message_id_to_message_id_header.py
"""rename message_id to message_id_header Revision ID: 217431caacc7 Revises: 2605b23e1fe6 Create Date: 2014-03-04 06:51:13.008195 """ # revision identifiers, used by Alembic. revision = '217431caacc7' down_revision = '2605b23e1fe6' from alembic import op def upgrade(): op.execute("ALTER TABLE message CHANGE m...
763
Python
.py
16
44.9375
95
0.774019
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,380
168_drop_message_sanitized_body.py
nylas_sync-engine/migrations/versions/168_drop_message_sanitized_body.py
"""drop message.sanitized_body Revision ID: 1740b45aa815 Revises:576f5310e8fc Create Date: 2015-05-14 21:19:36.519124 """ # revision identifiers, used by Alembic. revision = '1740b45aa815' down_revision = '576f5310e8fc' from alembic import op def upgrade(): op.drop_column('message', 'sanitized_body') def do...
353
Python
.py
13
24.923077
47
0.777108
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,381
067_add_executed_status_to_action_log.py
nylas_sync-engine/migrations/versions/067_add_executed_status_to_action_log.py
"""add executed status to action log Revision ID: 322c2800c401 Revises: 4f3a1f6eaee3 Create Date: 2014-07-22 05:57:03.353143 """ # revision identifiers, used by Alembic. revision = '322c2800c401' down_revision = '4f3a1f6eaee3' from alembic import op import sqlalchemy as sa def upgrade(): # Purge any existing ...
1,652
Python
.py
38
36.210526
79
0.645081
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,382
200_update_imapfolderinfo.py
nylas_sync-engine/migrations/versions/200_update_imapfolderinfo.py
"""Update imapfolderinfo Revision ID: dbf45fac873 Revises:3583211a4838 Create Date: 2015-08-04 01:34:32.689400 """ # revision identifiers, used by Alembic. revision = 'dbf45fac873' down_revision = '3583211a4838' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column('imapfolderinfo', sa.C...
501
Python
.py
15
28.266667
76
0.705021
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,383
003_expand_littlejson.py
nylas_sync-engine/migrations/versions/003_expand_littlejson.py
"""expand LittleJSON Revision ID: 269247bc37d3 Revises: 297aa1e1acc7 Create Date: 2014-03-06 19:11:31.079427 """ # revision identifiers, used by Alembic. revision = '269247bc37d3' down_revision = '297aa1e1acc7' from alembic import op import sqlalchemy as sa def upgrade(): op.alter_column('imapuid', 'extra_fla...
433
Python
.py
14
28.785714
67
0.761557
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,384
194_extend_eas_folder_id.py
nylas_sync-engine/migrations/versions/194_extend_eas_folder_id.py
"""extend size of eas_folder_id and eas_parent_id Revision ID: 211e93aff1e1 Revises: 2493281d621 Create Date: 2015-03-20 18:50:29.961734 """ # revision identifiers, used by Alembic. revision = '69e93aef3e9' down_revision = '691fa97024d' from alembic import op from sqlalchemy.sql import text from sqlalchemy.ext.decl...
1,364
Python
.py
31
38.612903
95
0.679788
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,385
236_add_desired_sync_host.py
nylas_sync-engine/migrations/versions/236_add_desired_sync_host.py
"""Add Account.desired_sync_host column Revision ID: 3eb4f30c8ed3 Revises: 34815f9e639c Create Date: 2016-10-19 23:35:58.866180 """ # revision identifiers, used by Alembic. revision = '3eb4f30c8ed3' down_revision = '34815f9e639c' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op....
539
Python
.py
16
31.1875
87
0.76699
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,386
186_new_tables_for_folders_overhaul.py
nylas_sync-engine/migrations/versions/186_new_tables_for_folders_overhaul.py
"""new tables for folders overhaul Revision ID: 23e204cd1d91 Revises:14692efd261b Create Date: 2015-06-19 00:28:56.991030 """ # revision identifiers, used by Alembic. revision = '23e204cd1d91' down_revision = '14692efd261b' from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( ...
6,154
Python
.py
122
39.196721
76
0.588343
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,387
125_refactor_participants_table.py
nylas_sync-engine/migrations/versions/125_refactor_participants_table.py
"""refactor participants table Revision ID: 955792afd00 Revises: 526eefc1d600 Create Date: 2014-12-15 14:58:09.922649 """ # revision identifiers, used by Alembic. revision = '955792afd00' down_revision = '40ad73aa49df' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import text def upgrade(): ...
654
Python
.py
20
29.15
77
0.736
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,388
131_update_transaction_indices.py
nylas_sync-engine/migrations/versions/131_update_transaction_indices.py
"""update_transaction_indices Revision ID: 3bb4a941639c Revises: 2b288dc444f Create Date: 2015-02-03 17:50:51.023445 """ # revision identifiers, used by Alembic. revision = '3bb4a941639c' down_revision = '2b288dc444f' from alembic import op def upgrade(): op.create_index('namespace_id_created_at', 'transactio...
480
Python
.py
14
30.714286
70
0.733624
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,389
129_make_folder_name_case_sensitive.py
nylas_sync-engine/migrations/versions/129_make_folder_name_case_sensitive.py
"""Make folder.name case sensitive. Revision ID: 5349c1a03fde Revises: 284227d72f51 Create Date: 2015-01-23 10:07:26.090495 """ # revision identifiers, used by Alembic. revision = '5349c1a03fde' down_revision = '284227d72f51' from alembic import op def upgrade(): connection = op.get_bind() connection.exec...
692
Python
.py
23
25.608696
119
0.706505
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,390
042_simplify_tags_schema.py
nylas_sync-engine/migrations/versions/042_simplify_tags_schema.py
"""simplify tags schema Revision ID: 459dbc29648 Revises: 159609404baf Create Date: 2014-06-23 18:37:56.183884 """ # revision identifiers, used by Alembic. revision = '459dbc29648' down_revision = '159609404baf' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade(): ...
571
Python
.py
17
27.529412
71
0.677656
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,391
175_fix_recurring_override_cascade.py
nylas_sync-engine/migrations/versions/175_fix_recurring_override_cascade.py
"""fix recurring override cascade Revision ID: 6e5b154d917 Revises: 41f957b595fc Create Date: 2015-05-25 16:23:40.563050 """ # revision identifiers, used by Alembic. revision = '6e5b154d917' down_revision = '4ef055945390' from alembic import op from sqlalchemy.sql import text def upgrade(): conn = op.get_bind...
1,754
Python
.py
37
40.216216
103
0.685999
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,392
184_create_gmail_auth_credentials_table.py
nylas_sync-engine/migrations/versions/184_create_gmail_auth_credentials_table.py
"""create gmail account to refresh token id table Revision ID: 2ac4e3c4e049 Revises: 3a58d466f61d Create Date: 2015-06-30 21:21:56.843813 """ # revision identifiers, used by Alembic. revision = '2ac4e3c4e049' down_revision = '3a58d466f61d' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects impo...
1,611
Python
.py
37
36.972973
78
0.673052
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,393
030_add_is_read_attribute_to_messages.py
nylas_sync-engine/migrations/versions/030_add_is_read_attribute_to_messages.py
"""add is_read attribute to messages Revision ID: 1b6ceae51b43 Revises: 52a9a976a2e0 Create Date: 2014-05-15 23:57:34.159260 """ # revision identifiers, used by Alembic. revision = '1b6ceae51b43' down_revision = '52a9a976a2e0' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql from...
2,259
Python
.py
50
33.04
83
0.589066
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,394
115_eas_twodevices_turn.py
nylas_sync-engine/migrations/versions/115_eas_twodevices_turn.py
"""EAS two-devices turn Revision ID: 17dc9c049f8b Revises: ad7b856bcc0 Create Date: 2014-10-21 20:38:14.311747 """ # revision identifiers, used by Alembic. revision = '17dc9c049f8b' down_revision = 'ad7b856bcc0' from datetime import datetime from alembic import op import sqlalchemy as sa from sqlalchemy.sql import...
3,162
Python
.py
71
32.183099
92
0.579119
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,395
218_modify_metadata_indexes.py
nylas_sync-engine/migrations/versions/218_modify_metadata_indexes.py
"""Modify indices on Metadata table Revision ID: 3b1cc8580fc2 Revises: 3d8b5977eaa8 Create Date: 2016-02-25 02:06:34.718895 """ # revision identifiers, used by Alembic. revision = '3b1cc8580fc2' down_revision = '3d8b5977eaa8' from alembic import op def upgrade(): op.create_index('ix_namespace_id_app_id', 'met...
608
Python
.py
15
37.933333
99
0.738462
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,396
139_add_ns_index_to_contact_and_event.py
nylas_sync-engine/migrations/versions/139_add_ns_index_to_contact_and_event.py
"""Add compound index to Contact and Event Revision ID: 1fd7b3e0b662 Revises: 5305d4ae30b4 Create Date: 2015-02-17 18:11:30.726188 """ # revision identifiers, used by Alembic. revision = '1fd7b3e0b662' down_revision = '5305d4ae30b4' from alembic import op def upgrade(): op.create_index( 'ix_contact_ns...
624
Python
.py
20
26.75
63
0.684034
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,397
058_enforce_length_limit_of_255_on_message_.py
nylas_sync-engine/migrations/versions/058_enforce_length_limit_of_255_on_message_.py
"""Enforce length limit of 255 on Message subjects Revision ID: 4af5952e8a5b Revises: 4b4c5579c083 Create Date: 2014-07-18 22:00:45.339930 """ # revision identifiers, used by Alembic. revision = '4af5952e8a5b' down_revision = '4f57260602c9' from alembic import op import sqlalchemy as sa def truncate_subject(obj):...
1,837
Python
.py
52
27.25
65
0.626343
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,398
050_imap_table_cleanups.py
nylas_sync-engine/migrations/versions/050_imap_table_cleanups.py
"""imap table cleanups Revision ID: 29217fad3f46 Revises: 161b88c17615 Create Date: 2014-07-01 18:56:55.962529 """ # revision identifiers, used by Alembic. revision = '29217fad3f46' down_revision = '1b751e8d9cac' from alembic import op import sqlalchemy as sa def upgrade(): from inbox.models.session import se...
7,118
Python
.py
135
39.2
90
0.590458
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)
33,399
109_add_retries_column_to_the_actionlog.py
nylas_sync-engine/migrations/versions/109_add_retries_column_to_the_actionlog.py
"""add a retries column to the actionlog Revision ID: 5709063bff01 Revises: 2f97277cd86d Create Date: 2014-10-07 10:34:29.302936 """ # revision identifiers, used by Alembic. revision = '5709063bff01' down_revision = '2f97277cd86d' from alembic import op import sqlalchemy as sa from sqlalchemy.sql import text def ...
857
Python
.py
23
30.782609
89
0.666262
nylas/sync-engine
3,502
354
69
AGPL-3.0
9/5/2024, 5:14:54 PM (Europe/Amsterdam)