chore: lowercase all emails
This commit is contained in:
parent
f0871ece52
commit
52280be3c2
3 changed files with 1362 additions and 1478 deletions
2
app/drizzle/0032_lowercase-email.sql
Normal file
2
app/drizzle/0032_lowercase-email.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- Custom SQL migration file, put your code below! --
|
||||||
|
UPDATE users_table SET email = LOWER(TRIM(email));
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
|
"id": "ad86ee2a-231e-45d1-9910-e4b7cac6a8af",
|
||||||
|
"prevId": "ae0e3a39-ef4d-4d39-bb97-d67d49193bc7",
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"dialect": "sqlite",
|
"dialect": "sqlite",
|
||||||
"id": "2d6b79a4-2d75-4240-8943-1180372847ba",
|
|
||||||
"prevId": "ae0e3a39-ef4d-4d39-bb97-d67d49193bc7",
|
|
||||||
"tables": {
|
"tables": {
|
||||||
"account": {
|
"account": {
|
||||||
"name": "account",
|
"name": "account",
|
||||||
|
|
@ -104,9 +104,7 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"account_userId_idx": {
|
"account_userId_idx": {
|
||||||
"name": "account_userId_idx",
|
"name": "account_userId_idx",
|
||||||
"columns": [
|
"columns": ["user_id"],
|
||||||
"user_id"
|
|
||||||
],
|
|
||||||
"isUnique": false
|
"isUnique": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -114,15 +112,11 @@
|
||||||
"account_user_id_users_table_id_fk": {
|
"account_user_id_users_table_id_fk": {
|
||||||
"name": "account_user_id_users_table_id_fk",
|
"name": "account_user_id_users_table_id_fk",
|
||||||
"tableFrom": "account",
|
"tableFrom": "account",
|
||||||
|
"columnsFrom": ["user_id"],
|
||||||
"tableTo": "users_table",
|
"tableTo": "users_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"user_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
|
|
@ -234,10 +228,7 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"backup_schedule_mirrors_table_schedule_id_repository_id_unique": {
|
"backup_schedule_mirrors_table_schedule_id_repository_id_unique": {
|
||||||
"name": "backup_schedule_mirrors_table_schedule_id_repository_id_unique",
|
"name": "backup_schedule_mirrors_table_schedule_id_repository_id_unique",
|
||||||
"columns": [
|
"columns": ["schedule_id", "repository_id"],
|
||||||
"schedule_id",
|
|
||||||
"repository_id"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -245,28 +236,20 @@
|
||||||
"backup_schedule_mirrors_table_schedule_id_backup_schedules_table_id_fk": {
|
"backup_schedule_mirrors_table_schedule_id_backup_schedules_table_id_fk": {
|
||||||
"name": "backup_schedule_mirrors_table_schedule_id_backup_schedules_table_id_fk",
|
"name": "backup_schedule_mirrors_table_schedule_id_backup_schedules_table_id_fk",
|
||||||
"tableFrom": "backup_schedule_mirrors_table",
|
"tableFrom": "backup_schedule_mirrors_table",
|
||||||
|
"columnsFrom": ["schedule_id"],
|
||||||
"tableTo": "backup_schedules_table",
|
"tableTo": "backup_schedules_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"schedule_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
},
|
},
|
||||||
"backup_schedule_mirrors_table_repository_id_repositories_table_id_fk": {
|
"backup_schedule_mirrors_table_repository_id_repositories_table_id_fk": {
|
||||||
"name": "backup_schedule_mirrors_table_repository_id_repositories_table_id_fk",
|
"name": "backup_schedule_mirrors_table_repository_id_repositories_table_id_fk",
|
||||||
"tableFrom": "backup_schedule_mirrors_table",
|
"tableFrom": "backup_schedule_mirrors_table",
|
||||||
|
"columnsFrom": ["repository_id"],
|
||||||
"tableTo": "repositories_table",
|
"tableTo": "repositories_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"repository_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
|
|
@ -336,36 +319,25 @@
|
||||||
"backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk": {
|
"backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk": {
|
||||||
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
"name": "backup_schedule_notifications_table_schedule_id_backup_schedules_table_id_fk",
|
||||||
"tableFrom": "backup_schedule_notifications_table",
|
"tableFrom": "backup_schedule_notifications_table",
|
||||||
|
"columnsFrom": ["schedule_id"],
|
||||||
"tableTo": "backup_schedules_table",
|
"tableTo": "backup_schedules_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"schedule_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
},
|
},
|
||||||
"backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk": {
|
"backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk": {
|
||||||
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
"name": "backup_schedule_notifications_table_destination_id_notification_destinations_table_id_fk",
|
||||||
"tableFrom": "backup_schedule_notifications_table",
|
"tableFrom": "backup_schedule_notifications_table",
|
||||||
|
"columnsFrom": ["destination_id"],
|
||||||
"tableTo": "notification_destinations_table",
|
"tableTo": "notification_destinations_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"destination_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {
|
"compositePrimaryKeys": {
|
||||||
"backup_schedule_notifications_table_schedule_id_destination_id_pk": {
|
"backup_schedule_notifications_table_schedule_id_destination_id_pk": {
|
||||||
"columns": [
|
"columns": ["schedule_id", "destination_id"],
|
||||||
"schedule_id",
|
|
||||||
"destination_id"
|
|
||||||
],
|
|
||||||
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk"
|
"name": "backup_schedule_notifications_table_schedule_id_destination_id_pk"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -520,16 +492,12 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"backup_schedules_table_short_id_unique": {
|
"backup_schedules_table_short_id_unique": {
|
||||||
"name": "backup_schedules_table_short_id_unique",
|
"name": "backup_schedules_table_short_id_unique",
|
||||||
"columns": [
|
"columns": ["short_id"],
|
||||||
"short_id"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
},
|
},
|
||||||
"backup_schedules_table_name_unique": {
|
"backup_schedules_table_name_unique": {
|
||||||
"name": "backup_schedules_table_name_unique",
|
"name": "backup_schedules_table_name_unique",
|
||||||
"columns": [
|
"columns": ["name"],
|
||||||
"name"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -537,28 +505,20 @@
|
||||||
"backup_schedules_table_volume_id_volumes_table_id_fk": {
|
"backup_schedules_table_volume_id_volumes_table_id_fk": {
|
||||||
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
"name": "backup_schedules_table_volume_id_volumes_table_id_fk",
|
||||||
"tableFrom": "backup_schedules_table",
|
"tableFrom": "backup_schedules_table",
|
||||||
|
"columnsFrom": ["volume_id"],
|
||||||
"tableTo": "volumes_table",
|
"tableTo": "volumes_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"volume_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
},
|
},
|
||||||
"backup_schedules_table_repository_id_repositories_table_id_fk": {
|
"backup_schedules_table_repository_id_repositories_table_id_fk": {
|
||||||
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
"name": "backup_schedules_table_repository_id_repositories_table_id_fk",
|
||||||
"tableFrom": "backup_schedules_table",
|
"tableFrom": "backup_schedules_table",
|
||||||
|
"columnsFrom": ["repository_id"],
|
||||||
"tableTo": "repositories_table",
|
"tableTo": "repositories_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"repository_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
|
|
@ -624,9 +584,7 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"notification_destinations_table_name_unique": {
|
"notification_destinations_table_name_unique": {
|
||||||
"name": "notification_destinations_table_name_unique",
|
"name": "notification_destinations_table_name_unique",
|
||||||
"columns": [
|
"columns": ["name"],
|
||||||
"name"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -703,54 +661,6 @@
|
||||||
"notNull": false,
|
"notNull": false,
|
||||||
"autoincrement": false
|
"autoincrement": false
|
||||||
},
|
},
|
||||||
"upload_limit_enabled": {
|
|
||||||
"name": "upload_limit_enabled",
|
|
||||||
"type": "integer",
|
|
||||||
"primaryKey": false,
|
|
||||||
"notNull": true,
|
|
||||||
"autoincrement": false,
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
"upload_limit_value": {
|
|
||||||
"name": "upload_limit_value",
|
|
||||||
"type": "integer",
|
|
||||||
"primaryKey": false,
|
|
||||||
"notNull": true,
|
|
||||||
"autoincrement": false,
|
|
||||||
"default": 0
|
|
||||||
},
|
|
||||||
"upload_limit_unit": {
|
|
||||||
"name": "upload_limit_unit",
|
|
||||||
"type": "text",
|
|
||||||
"primaryKey": false,
|
|
||||||
"notNull": true,
|
|
||||||
"autoincrement": false,
|
|
||||||
"default": "'MB/s'"
|
|
||||||
},
|
|
||||||
"download_limit_enabled": {
|
|
||||||
"name": "download_limit_enabled",
|
|
||||||
"type": "integer",
|
|
||||||
"primaryKey": false,
|
|
||||||
"notNull": true,
|
|
||||||
"autoincrement": false,
|
|
||||||
"default": false
|
|
||||||
},
|
|
||||||
"download_limit_value": {
|
|
||||||
"name": "download_limit_value",
|
|
||||||
"type": "integer",
|
|
||||||
"primaryKey": false,
|
|
||||||
"notNull": true,
|
|
||||||
"autoincrement": false,
|
|
||||||
"default": 0
|
|
||||||
},
|
|
||||||
"download_limit_unit": {
|
|
||||||
"name": "download_limit_unit",
|
|
||||||
"type": "text",
|
|
||||||
"primaryKey": false,
|
|
||||||
"notNull": true,
|
|
||||||
"autoincrement": false,
|
|
||||||
"default": "'MB/s'"
|
|
||||||
},
|
|
||||||
"created_at": {
|
"created_at": {
|
||||||
"name": "created_at",
|
"name": "created_at",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
|
@ -771,9 +681,7 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"repositories_table_short_id_unique": {
|
"repositories_table_short_id_unique": {
|
||||||
"name": "repositories_table_short_id_unique",
|
"name": "repositories_table_short_id_unique",
|
||||||
"columns": [
|
"columns": ["short_id"],
|
||||||
"short_id"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -847,16 +755,12 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"sessions_table_token_unique": {
|
"sessions_table_token_unique": {
|
||||||
"name": "sessions_table_token_unique",
|
"name": "sessions_table_token_unique",
|
||||||
"columns": [
|
"columns": ["token"],
|
||||||
"token"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
},
|
},
|
||||||
"sessionsTable_userId_idx": {
|
"sessionsTable_userId_idx": {
|
||||||
"name": "sessionsTable_userId_idx",
|
"name": "sessionsTable_userId_idx",
|
||||||
"columns": [
|
"columns": ["user_id"],
|
||||||
"user_id"
|
|
||||||
],
|
|
||||||
"isUnique": false
|
"isUnique": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -864,15 +768,11 @@
|
||||||
"sessions_table_user_id_users_table_id_fk": {
|
"sessions_table_user_id_users_table_id_fk": {
|
||||||
"name": "sessions_table_user_id_users_table_id_fk",
|
"name": "sessions_table_user_id_users_table_id_fk",
|
||||||
"tableFrom": "sessions_table",
|
"tableFrom": "sessions_table",
|
||||||
|
"columnsFrom": ["user_id"],
|
||||||
"tableTo": "users_table",
|
"tableTo": "users_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"user_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
|
|
@ -914,16 +814,12 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"twoFactor_secret_idx": {
|
"twoFactor_secret_idx": {
|
||||||
"name": "twoFactor_secret_idx",
|
"name": "twoFactor_secret_idx",
|
||||||
"columns": [
|
"columns": ["secret"],
|
||||||
"secret"
|
|
||||||
],
|
|
||||||
"isUnique": false
|
"isUnique": false
|
||||||
},
|
},
|
||||||
"twoFactor_userId_idx": {
|
"twoFactor_userId_idx": {
|
||||||
"name": "twoFactor_userId_idx",
|
"name": "twoFactor_userId_idx",
|
||||||
"columns": [
|
"columns": ["user_id"],
|
||||||
"user_id"
|
|
||||||
],
|
|
||||||
"isUnique": false
|
"isUnique": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -931,15 +827,11 @@
|
||||||
"two_factor_user_id_users_table_id_fk": {
|
"two_factor_user_id_users_table_id_fk": {
|
||||||
"name": "two_factor_user_id_users_table_id_fk",
|
"name": "two_factor_user_id_users_table_id_fk",
|
||||||
"tableFrom": "two_factor",
|
"tableFrom": "two_factor",
|
||||||
|
"columnsFrom": ["user_id"],
|
||||||
"tableTo": "users_table",
|
"tableTo": "users_table",
|
||||||
"columnsFrom": [
|
"columnsTo": ["id"],
|
||||||
"user_id"
|
"onUpdate": "no action",
|
||||||
],
|
"onDelete": "cascade"
|
||||||
"columnsTo": [
|
|
||||||
"id"
|
|
||||||
],
|
|
||||||
"onDelete": "cascade",
|
|
||||||
"onUpdate": "no action"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"compositePrimaryKeys": {},
|
"compositePrimaryKeys": {},
|
||||||
|
|
@ -1042,16 +934,12 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"users_table_username_unique": {
|
"users_table_username_unique": {
|
||||||
"name": "users_table_username_unique",
|
"name": "users_table_username_unique",
|
||||||
"columns": [
|
"columns": ["username"],
|
||||||
"username"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
},
|
},
|
||||||
"users_table_email_unique": {
|
"users_table_email_unique": {
|
||||||
"name": "users_table_email_unique",
|
"name": "users_table_email_unique",
|
||||||
"columns": [
|
"columns": ["email"],
|
||||||
"email"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1111,9 +999,7 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"verification_identifier_idx": {
|
"verification_identifier_idx": {
|
||||||
"name": "verification_identifier_idx",
|
"name": "verification_identifier_idx",
|
||||||
"columns": [
|
"columns": ["identifier"],
|
||||||
"identifier"
|
|
||||||
],
|
|
||||||
"isUnique": false
|
"isUnique": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1211,16 +1097,12 @@
|
||||||
"indexes": {
|
"indexes": {
|
||||||
"volumes_table_short_id_unique": {
|
"volumes_table_short_id_unique": {
|
||||||
"name": "volumes_table_short_id_unique",
|
"name": "volumes_table_short_id_unique",
|
||||||
"columns": [
|
"columns": ["short_id"],
|
||||||
"short_id"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
},
|
},
|
||||||
"volumes_table_name_unique": {
|
"volumes_table_name_unique": {
|
||||||
"name": "volumes_table_name_unique",
|
"name": "volumes_table_name_unique",
|
||||||
"columns": [
|
"columns": ["name"],
|
||||||
"name"
|
|
||||||
],
|
|
||||||
"isUnique": true
|
"isUnique": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -1233,9 +1115,9 @@
|
||||||
"views": {},
|
"views": {},
|
||||||
"enums": {},
|
"enums": {},
|
||||||
"_meta": {
|
"_meta": {
|
||||||
|
"columns": {},
|
||||||
"schemas": {},
|
"schemas": {},
|
||||||
"tables": {},
|
"tables": {}
|
||||||
"columns": {}
|
|
||||||
},
|
},
|
||||||
"internal": {
|
"internal": {
|
||||||
"indexes": {}
|
"indexes": {}
|
||||||
|
|
|
||||||
|
|
@ -229,8 +229,8 @@
|
||||||
{
|
{
|
||||||
"idx": 32,
|
"idx": 32,
|
||||||
"version": "6",
|
"version": "6",
|
||||||
"when": 1768040838612,
|
"when": 1768136755563,
|
||||||
"tag": "0032_outstanding_ultron",
|
"tag": "0032_lowercase-email",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue