mirror of
https://github.com/shiroyashik/doggy-watch.git
synced 2025-12-06 04:21:13 +03:00
Add TELEGRAM_API_URL support, improve error handling in video metadata retrieval and fixing migration rollback
Some checks are pending
Docker Push / docker (push) Waiting to run
Some checks are pending
Docker Push / docker (push) Waiting to run
This commit is contained in:
parent
655e195c91
commit
fa125b47fb
7 changed files with 319 additions and 214 deletions
|
|
@ -108,22 +108,22 @@ impl MigrationTrait for Migration {
|
|||
}
|
||||
|
||||
async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> {
|
||||
// Videos
|
||||
// Actions
|
||||
manager
|
||||
.drop_table(Table::drop().table(Videos::Table).to_owned())
|
||||
.drop_table(Table::drop().table(Actions::Table).to_owned())
|
||||
.await?;
|
||||
// Requests
|
||||
manager
|
||||
.drop_table(Table::drop().table(Requests::Table).to_owned())
|
||||
.await?;
|
||||
// Actions
|
||||
manager
|
||||
.drop_table(Table::drop().table(Actions::Table).to_owned())
|
||||
.await?;
|
||||
// Archived
|
||||
manager
|
||||
.drop_table(Table::drop().table(Archived::Table).to_owned())
|
||||
.await?;
|
||||
// Videos
|
||||
manager
|
||||
.drop_table(Table::drop().table(Videos::Table).to_owned())
|
||||
.await?;
|
||||
// Moderators
|
||||
manager
|
||||
.drop_table(Table::drop().table(Moderators::Table).to_owned())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue