Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ALTER TABLE [dbo].[cache] ADD [expires] [datetime] NULL
  2. GO
  3. ALTER TABLE [dbo].[cache_shared] ADD [expires] [datetime] NULL
  4. GO
  5. ALTER TABLE [dbo].[cache_index] ADD [expires] [datetime] NULL
  6. GO
  7. ALTER TABLE [dbo].[cache_thread] ADD [expires] [datetime] NULL
  8. GO
  9. ALTER TABLE [dbo].[cache_messages] ADD [expires] [datetime] NULL
  10. GO
  11. UPDATE [dbo].[cache] SET [expires] = DATEADD(second, 604800, [created])
  12. GO
  13. UPDATE [dbo].[cache_shared] SET [expires] = DATEADD(second, 604800, [created])
  14. GO
  15. UPDATE [dbo].[cache_index] SET [expires] = DATEADD(second, 604800, [changed])
  16. GO
  17. UPDATE [dbo].[cache_thread] SET [expires] = DATEADD(second, 604800, [changed])
  18. GO
  19. UPDATE [dbo].[cache_messages] SET [expires] = DATEADD(second, 604800, [changed])
  20. GO
  21. DROP INDEX [IX_cache_created]
  22. GO
  23. DROP INDEX [IX_cache_shared_created]
  24. GO
  25. ALTER TABLE [dbo].[cache_index] DROP COLUMN [changed]
  26. GO
  27. ALTER TABLE [dbo].[cache_thread] DROP COLUMN [changed]
  28. GO
  29. ALTER TABLE [dbo].[cache_messages] DROP COLUMN [changed]
  30. GO
  31. CREATE INDEX [IX_cache_expires] ON [dbo].[cache]([expires]) ON [PRIMARY]
  32. GO
  33. CREATE INDEX [IX_cache_shared_expires] ON [dbo].[cache_shared]([expires]) ON [PRIMARY]
  34. GO
  35. CREATE INDEX [IX_cache_index_expires] ON [dbo].[cache_index]([expires]) ON [PRIMARY]
  36. GO
  37. CREATE INDEX [IX_cache_thread_expires] ON [dbo].[cache_thread]([expires]) ON [PRIMARY]
  38. GO
  39. CREATE INDEX [IX_cache_messages_expires] ON [dbo].[cache_messages]([expires]) ON [PRIMARY]
  40. GO