File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ impl fmt::Display for MigrationCompletionCriterion {
81
81
// migrations unless explicitly dropping support.
82
82
// Add a user name next to the version when you make a change to highlight merge
83
83
// conflicts.
84
- pub const DATABASE_VERSION : DatabaseVersion = 116 ; // lee
84
+ pub const DATABASE_VERSION : DatabaseVersion = 117 ; // nipunn
85
85
86
86
pub struct MigrationWorker < RT : Runtime > {
87
87
rt : RT ,
@@ -379,6 +379,19 @@ impl<RT: Runtime> MigrationWorker<RT> {
379
379
116 => MigrationCompletionCriterion :: LogLine (
380
380
format ! ( "Created system table: {}" , * CANONICAL_URLS_TABLE ) . into ( ) ,
381
381
) ,
382
+ 117 => {
383
+ let backend_serving_record_table: TableName = "_backend_serving_record"
384
+ . parse ( )
385
+ . expect ( "Invalid built-in backend_serving_record table" ) ;
386
+ let mut tx = self . db . begin_system ( ) . await ?;
387
+ TableModel :: new ( & mut tx)
388
+ . delete_active_table ( TableNamespace :: Global , backend_serving_record_table)
389
+ . await ?;
390
+ self . db
391
+ . commit_with_write_source ( tx, "migration_117" )
392
+ . await ?;
393
+ MigrationCompletionCriterion :: MigrationComplete ( to_version)
394
+ } ,
382
395
// NOTE: Make sure to increase DATABASE_VERSION when adding new migrations.
383
396
_ => anyhow:: bail!( "Version did not define a migration! {}" , to_version) ,
384
397
} ;
You can’t perform that action at this time.
0 commit comments