diff --git a/SQL/1_tables/0 tblTemplate.txt b/SQL/1_tables/0 tblTemplate.txt deleted file mode 100644 index 06438ed..0000000 Binary files a/SQL/1_tables/0 tblTemplate.txt and /dev/null differ diff --git a/SQL/1_tables/tblAlignments.sql b/SQL/1_tables/tblAlignments.sql deleted file mode 100644 index 39e3542..0000000 --- a/SQL/1_tables/tblAlignments.sql +++ /dev/null @@ -1,54 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblAlignments.sql - * - * Aufgabe: Tabelle tblAlignments anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblAlignments')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblAlignments>' - - -- drop table tblAlignments - create table tblAlignments ( - - -- Primaerschluessel - constraint [PK_tblAlignments] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [description] nvarchar(250) NOT NULL - - ) - - -- Alle 9 Alignments einfügen - insert into tblAlignments ([description]) - values (N'Lawful Good'), (N'Neutral Good'), (N'Chaotic Good'), (N'Lawful Neutral'), (N'Neutral'), (N'Chaotic Neutral'), (N'Lawful Evil'), (N'Neutral Evil'), (N'Chaotic Evil') - - if not exists (select * from sys.tables where object_id = object_id ('tblAlignments')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblAlignments' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblAlignments') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblAlignments add nSeqDataXLink bigint null' - alter table tblAlignments add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/1_tables/tblArmors.sql b/SQL/1_tables/tblArmors.sql deleted file mode 100644 index a2c7431..0000000 --- a/SQL/1_tables/tblArmors.sql +++ /dev/null @@ -1,68 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblArmors.sql - * - * Aufgabe: Tabelle tblArmors anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblArmors')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblArmors>' - - -- drop table tblArmors - create table tblArmors ( - - -- Primaerschluessel - constraint [PK_tblArmors] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Allgemeine Parameter - -- ---------------------------------------------------------------------- - , [created] DateTime NOT NULL - , [lastModified] DateTime NOT NULL - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [name] nvarchar(250) NOT NULL - , [category] nvarchar(250) NOT NULL - , [cost] int NOT NULL - , [currency] nvarchar(250) NOT NULL - , [armorbonus] int NOT NULL - , [maxDexBonus] int NOT NULL - , [ArmorCheckPenalty] int NOT NULL - , [ArcaneSpellFailureChance] int NOT NULL - , [speed30] int NOT NULL - , [speed20] int NOT NULL - , [weight] int NOT NULL - , [hasMetal] bit NOT NULL - , [special] nvarchar(max) NOT NULL - - ) - - if not exists (select * from sys.tables where object_id = object_id ('tblArmors')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblArmors' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblArmors') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblArmors add nSeqDataXLink bigint null' - alter table tblArmors add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/1_tables/tblCharacter.sql b/SQL/1_tables/tblCharacter.sql deleted file mode 100644 index 32bebb1..0000000 --- a/SQL/1_tables/tblCharacter.sql +++ /dev/null @@ -1,104 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblCharacter.sql - * - * Aufgabe: Tabelle tblCharacter anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblCharacter')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblCharacter>' - - -- drop table tblCharacter - create table tblCharacter ( - - -- Primaerschluessel - constraint [PK_tblCharacter] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Allgemeine Parameter - -- ---------------------------------------------------------------------- - , [created] DateTime NOT NULL - , [lastModified] DateTime NOT NULL - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [playerLink] int NOT NULL - , [groupLink] int NOT NULL - , [classLink] int NOT NULL - , [raceLink] int NOT NULL - , [alignmentLink] int NOT NULL - , [deityLink] int NOT NULL - , [sizeLink] int NOT NULL - , [name] nvarchar(250) NOT NULL - , [level] int NOT NULL - , [age] int NOT NULL - , [gender] nvarchar(250) NOT NULL - , [height] decimal NOT NULL - , [weight] decimal NOT NULL - , [eyes] nvarchar(250) NOT NULL - , [hair] nvarchar(250) NOT NULL - , [skin] nvarchar(250) NOT NULL - , [strength] int NOT NULL - , [dexterity] int NOT NULL - , [constitution] int NOT NULL - , [intelligence] int NOT NULL - , [wisdom] int NOT NULL - , [charisma] int NOT NULL - , [strengthtemp] int NULL - , [dexteritytemp] int NULL - , [constitutiontemp] int NULL - , [intelligencetemp] int NULL - , [wisdomtemp] int NULL - , [charismatemp] int NULL - , [fortitude] int NOT NULL - , [reflex] int NOT NULL - , [will] int NOT NULL - , [baseAttack] int NOT NULL - , [hp] int NOT NULL - , [tempHp] int NOT NULL - , [nonLethalDmg] int NOT NULL - , [speed] int NOT NULL - , [dmgReduction] int NOT NULL - , [spellResistance] int NOT NULL - , [miscInitiative] int NULL - , [miscArmor] int NULL - , [miscFortitude] int NULL - , [miscReflex] int NULL - , [miscWill] int NULL - , [miscGrapple] int NULL - , [exp] int NOT NULL - , [copper] int NOT NULL - , [silver] int NOT NULL - , [gold] int NOT NULL - , [platin] int NOT NULL - , - ) - - if not exists (select * from sys.tables where object_id = object_id ('tblCharacter')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblCharacter' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblCharacter') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblCharacter add nSeqDataXLink bigint null' - alter table tblCharacter add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/1_tables/tblDeities.sql b/SQL/1_tables/tblDeities.sql deleted file mode 100644 index 44bd955..0000000 --- a/SQL/1_tables/tblDeities.sql +++ /dev/null @@ -1,62 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblDeities.sql - * - * Aufgabe: Tabelle tblDeities anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblDeities')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblDeities>' - - -- drop table tblDeities - create table tblDeities ( - - -- Primaerschluessel - constraint [PK_tblDeities] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Allgemeine Parameter - -- ---------------------------------------------------------------------- - , [created] DateTime NOT NULL - , [lastModified] DateTime NOT NULL - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [name] nvarchar(250) NOT NULL - , [alignmentLink] int NOT NULL - , [portfolio] nvarchar(250) NOT NULL - , [description] nvarchar(max) NOT NULL - , [favoredWeaponLink] int NOT NULL - - - - ) - - if not exists (select * from sys.tables where object_id = object_id ('tblDeities')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblDeities' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblDeities') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblDeities add nSeqDataXLink bigint null' - alter table tblDeities add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/1_tables/tblDeity2Domain.sql b/SQL/1_tables/tblDeity2Domain.sql deleted file mode 100644 index d65d9fd..0000000 --- a/SQL/1_tables/tblDeity2Domain.sql +++ /dev/null @@ -1,57 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblDeity2Domain.sql - * - * Aufgabe: Tabelle tblDeity2Domain anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblDeity2Domain')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblDeity2Domain>' - - -- drop table tblDeity2Domain - create table tblDeity2Domain ( - - -- Primaerschluessel - constraint [PK_tblDeity2Domain] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Allgemeine Parameter - -- ---------------------------------------------------------------------- - , [created] DateTime NOT NULL - , [lastModified] DateTime NOT NULL - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [deityLink] int NOT NULL - , [domainLink] int NOT NULL - - ) - - if not exists (select * from sys.tables where object_id = object_id ('tblDeity2Domain')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblDeity2Domain' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblDeity2Domain') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblDeity2Domain add nSeqDataXLink bigint null' - alter table tblDeity2Domain add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/1_tables/tblDomains.sql b/SQL/1_tables/tblDomains.sql deleted file mode 100644 index 2118dd4..0000000 --- a/SQL/1_tables/tblDomains.sql +++ /dev/null @@ -1,57 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblDomains.sql - * - * Aufgabe: Tabelle tblDomains anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblDomains')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblDomains>' - - -- drop table tblDomains - create table tblDomains ( - - -- Primaerschluessel - constraint [PK_tblDomains] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Allgemeine Parameter - -- ---------------------------------------------------------------------- - , [created] DateTime NOT NULL - , [lastModified] DateTime NOT NULL - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [name] nvarchar(250) NOT NULL - , [grantedPower] nvarchar(250) NOT NULL - - ) - - if not exists (select * from sys.tables where object_id = object_id ('tblDomains')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblDomains' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblDomains') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblDomains add nSeqDataXLink bigint null' - alter table tblDomains add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/1_tables/tblWeapons.sql b/SQL/1_tables/tblWeapons.sql deleted file mode 100644 index b930eab..0000000 --- a/SQL/1_tables/tblWeapons.sql +++ /dev/null @@ -1,67 +0,0 @@ -/* ************************************************************************* * - * - * Datei: tblWeapons.sql - * - * Aufgabe: Tabelle tblWeapons anlegen - * - * Aenderungen: - * 2021-09-23, MWN, erstellt. - * - * ************************************************************************* */ - -if not exists (select * from sys.tables where object_id = object_id (N'tblWeapons')) begin - - -- Protokollausgabe - print 'Anlegen der Tabelle <' + db_name() + '.dbo.tblWeapons>' - - -- drop table tblWeapons - create table tblWeapons ( - - -- Primaerschluessel - constraint [PK_tblWeapons] primary key ([key]) - , [key] int identity(1, 1) not null - - -- ---------------------------------------------------------------------- - -- Allgemeine Parameter - -- ---------------------------------------------------------------------- - , [created] DateTime NOT NULL - , [lastModified] DateTime NOT NULL - - -- ---------------------------------------------------------------------- - -- Parameter - -- ---------------------------------------------------------------------- - , [name] nvarchar(250) NOT NULL - , [category] nvarchar(250) NOT NULL - , [cost] int NOT NULL - , [currency] nvarchar(250) NOT NULL - , [dmgSmall] nvarchar(250) NOT NULL - , [dmgMedium] nvarchar(250) NOT NULL - , [critrange] nvarchar(250) NOT NULL - , [crit] int NOT NULL - , [range] nvarchar(250) NOT NULL - , [weight] int NOT NULL - , [damagetype] nvarchar(250) NOT NULL - , [special] nvarchar(250) NOT NULL - - ) - - if not exists (select * from sys.tables where object_id = object_id ('tblWeapons')) begin - print '' - print '************************************' - print 'Fehler beim Erstellen der Tabelle tblWeapons' - print '************************************' - print '' - end - -end /*else begin -- [if not exists (Tabelle)...] - - -- Hinzufuegen einer Spalte - if not exists (select * from syscolumns where name = 'nSeqDataXLink' and id = object_id('tblWeapons') and objectproperty(id, N'IsUserTable') = 1) begin - print 'alter table tblWeapons add nSeqDataXLink bigint null' - alter table tblWeapons add nSeqDataXLink bigint null - end - -end -- [if not exists (Tabelle)...]*/ -go - --- :EOF: diff --git a/SQL/insert/InsertAlignments.sql b/SQL/insert/InsertAlignments.sql deleted file mode 100644 index e69de29..0000000