Fixed indexes on Threads (Threads_IsAnnouncement_LastPostId_idx originally used IsAnnouncement and FirstPostId)

main
Inga 🏳‍🌈 13 years ago
parent e5bfaa061a
commit df4094087b
  1. 2
      Builder/IISMainHandler/build.txt
  2. 1
      FLocal.Patcher.Common/FLocal.Patcher.Common.csproj
  3. 36
      FLocal.Patcher.Common/Resources/Patch_00001_threadsindexes.xml

@ -67,6 +67,7 @@
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Patch_00000_cleaninstall.xml" />
<EmbeddedResource Include="Resources\Patch_00001_threadsindexes.xml" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8" ?>
<patch xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\..\Patcher\Resources\IPatch.xsd">
<version>
<number>1</number>
<author>threadsindexes</author>
</version>
<strictCommandSet>
<command>
<sql>
<installSql>
<query>DROP INDEX "Threads_FirstPostId_idx"</query>
<query>CREATE INDEX "Threads_FirstPostId_idx" on "Threads"("FirstPostId" asc)</query>
</installSql>
<uninstallSql/>
</sql>
</command>
<command>
<sql>
<installSql>
<query>DROP INDEX "Threads_LastPostId_idx"</query>
<query>CREATE INDEX "Threads_LastPostId_idx" on "Threads"("LastPostId" desc)</query>
</installSql>
<uninstallSql/>
</sql>
</command>
<command>
<sql>
<installSql>
<query>DROP INDEX "Threads_IsAnnouncement_LastPostId_idx"</query>
<query>CREATE INDEX "Threads_IsAnnouncement_LastPostId_idx" on "Threads"("IsAnnouncement" desc, "LastPostId" desc)</query>
</installSql>
<uninstallSql/>
</sql>
</command>
</strictCommandSet>
</patch>
Loading…
Cancel
Save