MyVideos48
Table "sets"
Previous topic Chapter index Next topic

System:

Fields
Field Data type PK FK Not Null Default Collate Check On Conflict
idSet integer            
NfoPath text              
TMDBColID text              
Plot text              
Title text              
New bool     0      
Mark bool     0      
Lock bool     0      
SortMethod integer     0      
Language text              

Indexes
      There are no indexes for table "sets"

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

Checks
      There are no checks for table "sets"

Triggers
Trigger Enabled Events Type When expression
delete_set DELETE After  

References
      There are no references for table "sets"

Definition:
CREATE TABLE sets (
  idSet       integer PRIMARY KEY AUTOINCREMENT,
  NfoPath     text,
  TMDBColID   text,
  Plot        text,
  Title       text,
  "New"       bool NOT NULL DEFAULT 0,
  Mark        bool NOT NULL DEFAULT 0,
  Lock        bool NOT NULL DEFAULT 0,
  SortMethod  integer NOT NULL DEFAULT 0,
  Language    text
);

CREATE TRIGGER delete_set
  AFTER DELETE
  ON sets
BEGIN
        DELETE FROM art WHERE media_id=old.idSet AND media_type='set';
        DELETE FROM uniqueid WHERE media_id=old.idSet AND media_type='set';
        END;


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