MyVideos48
Table "tvshowsource"
Previous topic Chapter index Next topic

System:

Fields
Field Data type PK FK Not Null Default Collate Check On Conflict
idSource integer            
strName text            
strPath text            
strLastScan text     '1900/01/01'      
strLanguage text     'en-US'      
iOrdering integer     0      
bExclude bool     0      
iEpisodeSorting integer     0      
bSingle bool     0      

Indexes
Index Fields Primary Unique
UniqueTVShowSourcePath strPath  

Foreign keys
      There are no foreign keys for table "tvshowsource"

Checks
      There are no checks for table "tvshowsource"

Triggers
Trigger Enabled Events Type When expression
delete_tvshowsource DELETE After  

References
      There are no references for table "tvshowsource"

Definition:
CREATE TABLE tvshowsource (
  idSource         integer PRIMARY KEY AUTOINCREMENT,
  strName          text NOT NULL,
  strPath          text NOT NULL,
  strLastScan      text NOT NULL DEFAULT '1900/01/01',
  strLanguage      text NOT NULL DEFAULT 'en-US',
  iOrdering        integer NOT NULL DEFAULT 0,
  bExclude         bool NOT NULL DEFAULT 0,
  iEpisodeSorting  integer NOT NULL DEFAULT 0,
  bSingle          bool NOT NULL DEFAULT 0
);

CREATE UNIQUE INDEX UniqueTVShowSourcePath
  ON tvshowsource
  (strPath);

CREATE TRIGGER delete_tvshowsource
  AFTER DELETE
  ON tvshowsource
BEGIN
		DELETE FROM tvshow WHERE idSource=old.idSource;
END;


Previous topic Chapter index Next topic
Generated by ""SQLite Maestro Professional"" at 08.07.2021 23:49:20