Skip to content

Commit a744b06

Browse files
committed
cleaned up migrations
1 parent 2b8c50a commit a744b06

File tree

3 files changed

+44
-79
lines changed

3 files changed

+44
-79
lines changed

addon_service/migrations/0001_initial.py

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 4.2.7 on 2024-07-01 13:30
1+
# Generated by Django 4.2.7 on 2024-07-05 09:47
22

33
import django.contrib.postgres.fields
44
import django.db.models.deletion
@@ -44,12 +44,45 @@ class Migration(migrations.Migration):
4444
),
4545
("default_root_folder", models.CharField(blank=True)),
4646
("_api_base_url", models.URLField(blank=True)),
47+
(
48+
"is_oauth1_ready",
49+
models.BooleanField(
50+
blank=True,
51+
null=True,
52+
verbose_name="addon_service.OAuth2TokenMetadata",
53+
),
54+
),
4755
],
4856
options={
4957
"verbose_name": "Authorized Storage Account",
5058
"verbose_name_plural": "Authorized Storage Accounts",
5159
},
5260
),
61+
migrations.CreateModel(
62+
name="OAuth1ClientConfig",
63+
fields=[
64+
(
65+
"id",
66+
addon_service.common.str_uuid_field.StrUUIDField(
67+
default=addon_service.common.str_uuid_field.str_uuid4,
68+
editable=False,
69+
primary_key=True,
70+
serialize=False,
71+
),
72+
),
73+
("created", models.DateTimeField(editable=False)),
74+
("modified", models.DateTimeField()),
75+
("request_token_url", models.URLField()),
76+
("auth_url", models.URLField()),
77+
("access_token_url", models.URLField()),
78+
("client_key", models.CharField(null=True)),
79+
("client_secret", models.CharField(null=True)),
80+
],
81+
options={
82+
"verbose_name": "OAuth1 Client Config",
83+
"verbose_name_plural": "OAuth1 Client Configs",
84+
},
85+
),
5386
migrations.CreateModel(
5487
name="OAuth2ClientConfig",
5588
fields=[
@@ -206,6 +239,16 @@ class Migration(migrations.Migration):
206239
),
207240
("api_base_url", models.URLField(blank=True, default="")),
208241
("wb_key", models.CharField(blank=True, default="")),
242+
(
243+
"oauth1_client_config",
244+
models.ForeignKey(
245+
blank=True,
246+
null=True,
247+
on_delete=django.db.models.deletion.SET_NULL,
248+
related_name="external_storage_services",
249+
to="addon_service.oauth1clientconfig",
250+
),
251+
),
209252
(
210253
"oauth2_client_config",
211254
models.ForeignKey(

addon_service/migrations/0002_oauth1clientconfig_and_more.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

addon_service/migrations/0003_authorizedstorageaccount_is_oauth1_ready.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)