Skip to content

Commit

Permalink
MP1-5219: Chore: Move SQL to Folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan committed May 29, 2024
1 parent 61dce49 commit d671f22
Show file tree
Hide file tree
Showing 58 changed files with 1,906 additions and 1,897 deletions.
4 changes: 2 additions & 2 deletions TvEngine3/TVLibrary/SetupTv/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#region Copyright (C) 2005-2011 Team MediaPortal
#region Copyright (C) 2005-2024 Team MediaPortal

// Copyright (C) 2005-2011 Team MediaPortal
// Copyright (C) 2005-2024 Team MediaPortal
// http://www.team-mediaportal.com
//
// MediaPortal is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "Card"
ADD COLUMN "preload" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=39;
USE %TvLibrary%;

ALTER TABLE "Card"
ADD COLUMN "preload" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=39;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use %TvLibrary%
GO

ALTER TABLE Card
ADD preload bit NOT NULL CONSTRAINT DF_Card_preload DEFAULT ((0))
GO

UPDATE Version SET versionNumber=39
GO
use %TvLibrary%
GO

ALTER TABLE Card
ADD preload bit NOT NULL CONSTRAINT DF_Card_preload DEFAULT ((0))
GO

UPDATE Version SET versionNumber=39
GO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "Card"
ADD COLUMN "CAM" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=40;
USE %TvLibrary%;

ALTER TABLE "Card"
ADD COLUMN "CAM" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=40;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use %TvLibrary%
GO

ALTER TABLE Card
ADD CAM bit NOT NULL CONSTRAINT DF_Card_CAM DEFAULT ((0))
GO

UPDATE Version SET versionNumber=40
GO
use %TvLibrary%
GO

ALTER TABLE Card
ADD CAM bit NOT NULL CONSTRAINT DF_Card_CAM DEFAULT ((0))
GO

UPDATE Version SET versionNumber=40
GO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "TuningDetail"
ADD COLUMN "audioSource" int(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=41;
USE %TvLibrary%;

ALTER TABLE "TuningDetail"
ADD COLUMN "audioSource" int(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=41;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use %TvLibrary%
GO

ALTER TABLE TuningDetail
ADD audioSource int NOT NULL CONSTRAINT DF_TuningDetail_audioSource DEFAULT ((1))
GO

UPDATE Version SET versionNumber=41
GO
use %TvLibrary%
GO

ALTER TABLE TuningDetail
ADD audioSource int NOT NULL CONSTRAINT DF_TuningDetail_audioSource DEFAULT ((1))
GO

UPDATE Version SET versionNumber=41
GO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "TuningDetail"
ADD COLUMN "isVCRSignal" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=42;
USE %TvLibrary%;

ALTER TABLE "TuningDetail"
ADD COLUMN "isVCRSignal" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=42;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use %TvLibrary%
GO

ALTER TABLE TuningDetail
ADD isVCRSignal bit NOT NULL CONSTRAINT DF_TuningDetail_isVCRSignal DEFAULT ((0))
GO

UPDATE Version SET versionNumber=42
GO
use %TvLibrary%
GO

ALTER TABLE TuningDetail
ADD isVCRSignal bit NOT NULL CONSTRAINT DF_TuningDetail_isVCRSignal DEFAULT ((0))
GO

UPDATE Version SET versionNumber=42
GO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "Schedule"
ADD COLUMN "series" bit(1) NOT NULL;

USE %TvLibrary%;

ALTER TABLE "Schedule"
ADD COLUMN "series" bit(1) NOT NULL;

UPDATE "Version" SET "versionNumber"=43;
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use %TvLibrary%
GO

ALTER TABLE Schedule
ADD series bit NOT NULL CONSTRAINT DF_Schedule_series DEFAULT ((0))
GO

UPDATE Version SET versionNumber=43
GO
use %TvLibrary%
GO

ALTER TABLE Schedule
ADD series bit NOT NULL CONSTRAINT DF_Schedule_series DEFAULT ((0))
GO

UPDATE Version SET versionNumber=43
GO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
USE %TvLibrary%;

ALTER TABLE "Program"
ADD COLUMN "episodeName" text NOT NULL,
ADD COLUMN "episodePart" text NOT NULL;

USE %TvLibrary%;

ALTER TABLE "Program"
ADD COLUMN "episodeName" text NOT NULL,
ADD COLUMN "episodePart" text NOT NULL;

UPDATE "Version" SET "versionNumber"=44;
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use %TvLibrary%
GO

ALTER TABLE Program
ADD episodeName varchar(MAX) NOT NULL CONSTRAINT [DF_Program_EpisodeName] DEFAULT '',
episodePart varchar(MAX) NOT NULL CONSTRAINT [DF_Program_EpisodePart] DEFAULT ''
GO

UPDATE Version SET versionNumber=44
GO
use %TvLibrary%
GO

ALTER TABLE Program
ADD episodeName varchar(MAX) NOT NULL CONSTRAINT [DF_Program_EpisodeName] DEFAULT '',
episodePart varchar(MAX) NOT NULL CONSTRAINT [DF_Program_EpisodePart] DEFAULT ''
GO

UPDATE Version SET versionNumber=44
GO
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
USE %TvLibrary%;

ALTER TABLE "Recording"
MODIFY COLUMN "fileName" VARCHAR(255) NOT NULL,
ADD INDEX "IDX_Recording_Filename"("fileName");

ALTER TABLE "Program"
ADD INDEX "IDX_Program_Notify"("notify");

USE %TvLibrary%;

ALTER TABLE "Recording"
MODIFY COLUMN "fileName" VARCHAR(255) NOT NULL,
ADD INDEX "IDX_Recording_Filename"("fileName");

ALTER TABLE "Program"
ADD INDEX "IDX_Program_Notify"("notify");

UPDATE "Version" SET "versionNumber"=45;
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use %TvLibrary%
GO

ALTER TABLE Recording
ALTER COLUMN fileName VARCHAR(260) NOT NULL
GO

CREATE INDEX IDX_Recording_Filename ON Recording(fileName)
GO
CREATE INDEX IDX_Program_Notify ON Program(notify)
GO

UPDATE Version SET versionNumber=45
GO
use %TvLibrary%
GO

ALTER TABLE Recording
ALTER COLUMN fileName VARCHAR(260) NOT NULL
GO

CREATE INDEX IDX_Recording_Filename ON Recording(fileName)
GO
CREATE INDEX IDX_Program_Notify ON Program(notify)
GO

UPDATE Version SET versionNumber=45
GO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "Recording"
ADD COLUMN "episodeName" text NOT NULL;

USE %TvLibrary%;

ALTER TABLE "Recording"
ADD COLUMN "episodeName" text NOT NULL;

UPDATE "Version" SET "versionNumber"=46;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use %TvLibrary%
GO

ALTER TABLE Recording
ADD episodeName varchar(MAX) NOT NULL CONSTRAINT [DF_Recording_EpisodeName] DEFAULT ''

UPDATE Version SET versionNumber=46
GO
use %TvLibrary%
GO

ALTER TABLE Recording
ADD episodeName varchar(MAX) NOT NULL CONSTRAINT [DF_Recording_EpisodeName] DEFAULT ''

UPDATE Version SET versionNumber=46
GO
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
USE %TvLibrary%;

ALTER TABLE "Recording"
ADD COLUMN "seriesNum" VARCHAR(200) NOT NULL,
ADD COLUMN "episodeNum" VARCHAR(200) NOT NULL,
ADD COLUMN "episodePart" TEXT NOT NULL;

UPDATE "Version" SET "versionNumber"=47;
USE %TvLibrary%;

ALTER TABLE "Recording"
ADD COLUMN "seriesNum" VARCHAR(200) NOT NULL,
ADD COLUMN "episodeNum" VARCHAR(200) NOT NULL,
ADD COLUMN "episodePart" TEXT NOT NULL;

UPDATE "Version" SET "versionNumber"=47;
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use %TvLibrary%
GO

ALTER TABLE Recording
ADD seriesNum varchar(200) NOT NULL CONSTRAINT [DF_Recording_SeriesNum] DEFAULT '',
episodeNum varchar(200) NOT NULL CONSTRAINT [DF_Recording_EpisodeNum] DEFAULT '',
episodePart varchar(MAX) NOT NULL CONSTRAINT [DF_Recording_EpisodePart] DEFAULT ''

UPDATE Version SET versionNumber=47
GO
use %TvLibrary%
GO

ALTER TABLE Recording
ADD seriesNum varchar(200) NOT NULL CONSTRAINT [DF_Recording_SeriesNum] DEFAULT '',
episodeNum varchar(200) NOT NULL CONSTRAINT [DF_Recording_EpisodeNum] DEFAULT '',
episodePart varchar(MAX) NOT NULL CONSTRAINT [DF_Recording_EpisodePart] DEFAULT ''

UPDATE Version SET versionNumber=47
GO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
USE %TvLibrary%;

ALTER TABLE "Server"
ADD COLUMN "rtspPort" INT NOT NULL DEFAULT 554;

UPDATE "Version" SET "versionNumber"=48;
USE %TvLibrary%;

ALTER TABLE "Server"
ADD COLUMN "rtspPort" INT NOT NULL DEFAULT 554;

UPDATE "Version" SET "versionNumber"=48;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use %TvLibrary%
GO

ALTER TABLE Server
ADD rtspPort int NOT NULL CONSTRAINT [DF_Server_RtspPort] DEFAULT 554

UPDATE Version SET versionNumber=48
GO
use %TvLibrary%
GO

ALTER TABLE Server
ADD rtspPort int NOT NULL CONSTRAINT [DF_Server_RtspPort] DEFAULT 554

UPDATE Version SET versionNumber=48
GO
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
USE %TvLibrary%;

ALTER TABLE "Recording" ADD COLUMN "isRecording" BIT NOT NULL DEFAULT 0;
ALTER TABLE "Recording" ADD COLUMN "idSchedule" INT NOT NULL DEFAULT 0;

ALTER TABLE "Program" ADD COLUMN "state" INT NOT NULL DEFAULT 0;
UPDATE "Program" SET state=1 WHERE notify=1;
ALTER TABLE "Program" DROP COLUMN "notify";
ALTER TABLE "Program" ADD INDEX IDX_Program_State(state);

ALTER TABLE "Schedule" ADD COLUMN "idParentSchedule" INT NOT NULL DEFAULT 0;

UPDATE Version SET versionNumber=49;
USE %TvLibrary%;

ALTER TABLE "Recording" ADD COLUMN "isRecording" BIT NOT NULL DEFAULT 0;
ALTER TABLE "Recording" ADD COLUMN "idSchedule" INT NOT NULL DEFAULT 0;

ALTER TABLE "Program" ADD COLUMN "state" INT NOT NULL DEFAULT 0;
UPDATE "Program" SET state=1 WHERE notify=1;
ALTER TABLE "Program" DROP COLUMN "notify";
ALTER TABLE "Program" ADD INDEX IDX_Program_State(state);

ALTER TABLE "Schedule" ADD COLUMN "idParentSchedule" INT NOT NULL DEFAULT 0;

UPDATE Version SET versionNumber=49;
Loading

0 comments on commit d671f22

Please sign in to comment.