Browse Source

ids left untouched

ignazio-bovo 3 years ago
parent
commit
727e34375b
1 changed files with 0 additions and 18 deletions
  1. 0 18
      runtime-modules/content/src/lib.rs

+ 0 - 18
runtime-modules/content/src/lib.rs

@@ -1409,24 +1409,6 @@ impl<T: Trait> Module<T> {
     }
 }
 
-// Some initial config for the module on runtime upgrade
-impl<T: Trait> Module<T> {
-    pub fn on_runtime_upgrade() {
-        // all ids start at 1
-        <NextChannelCategoryId<T>>::put(T::ChannelCategoryId::one());
-        <NextVideoCategoryId<T>>::put(T::VideoCategoryId::one());
-        <NextVideoId<T>>::put(T::VideoId::one());
-        <NextChannelId<T>>::put(T::ChannelId::one());
-        <NextPlaylistId<T>>::put(T::PlaylistId::one());
-        <NextSeriesId<T>>::put(T::SeriesId::one());
-        <NextPersonId<T>>::put(T::PersonId::one());
-        <NextChannelOwnershipTransferRequestId<T>>::put(T::ChannelOwnershipTransferRequestId::one());
-
-        // VideoById map is cleared
-        <VideoById<T>>::remove_all();
-    }
-}
-
 decl_event!(
     pub enum Event<T>
     where