mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Correct previous database version initializing strings.
This commit is contained in:
@@ -45,121 +45,101 @@ namespace Cicm.Database.Schemas.Sql
|
||||
|
||||
public static readonly string Companies = V11.Companies;
|
||||
|
||||
public static readonly string Computers =
|
||||
"CREATE TABLE `computers` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(10) NOT NULL DEFAULT '',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd2` int(11) DEFAULT NULL,\n" +
|
||||
"`hdd3` int(11) DEFAULT NULL,\n" +
|
||||
"`disk1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap1` char(25) NOT NULL DEFAULT '0',\n" +
|
||||
"`disk2` int(11) DEFAULT NULL,\n" +
|
||||
"`cap2` char(25) DEFAULT NULL,\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_computers_company` (`company`),\n" +
|
||||
"KEY `idx_computers_year` (`year`),\n" +
|
||||
"KEY `idx_computers_model` (`model`),\n" +
|
||||
"KEY `idx_computers_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_computers_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_computers_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_computers_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_computers_bits` (`bits`),\n" +
|
||||
"KEY `idx_computers_ram` (`ram`),\n" +
|
||||
"KEY `idx_computers_rom` (`rom`),\n" +
|
||||
"KEY `idx_computers_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_computers_vram` (`vram`),\n" +
|
||||
"KEY `idx_computers_colors` (`colors`),\n" +
|
||||
"KEY `idx_computers_res` (`res`),\n" +
|
||||
"KEY `idx_computers_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_computers_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_computers_hdd1` (`hdd1`),\n" +
|
||||
"KEY `idx_computers_hdd2` (`hdd2`),\n" +
|
||||
"KEY `idx_computers_hdd3` (`hdd3`),\n" +
|
||||
"KEY `idx_computers_disk1` (`disk1`),\n" +
|
||||
"KEY `idx_computers_disk2` (`disk2`),\n" +
|
||||
"KEY `idx_computers_cap1` (`cap1`),\n" +
|
||||
"KEY `idx_computers_cap2` (`cap2`),\n" +
|
||||
"CONSTRAINT `fk_computers_company` FOREIGN KEY (`company`) REFERENCES `companies` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_cpu1` FOREIGN KEY (`cpu1`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_cpu2` FOREIGN KEY (`cpu2`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_disk1` FOREIGN KEY (`disk1`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_disk2` FOREIGN KEY (`disk2`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_gpu` FOREIGN KEY (`gpu`) REFERENCES `gpus` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_hdd1` FOREIGN KEY (`hdd1`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_hdd2` FOREIGN KEY (`hdd2`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_hdd3` FOREIGN KEY (`hdd3`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_music_synth` FOREIGN KEY (`music_synth`) REFERENCES `music_synths` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_sound_synth` FOREIGN KEY (`sound_synth`) REFERENCES `sound_synths` (`id`))";
|
||||
public static readonly string Computers = "CREATE TABLE `computers` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(10) NOT NULL DEFAULT '',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd2` int(11) DEFAULT NULL,\n" +
|
||||
"`hdd3` int(11) DEFAULT NULL,\n" +
|
||||
"`disk1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap1` char(25) NOT NULL DEFAULT '0',\n" +
|
||||
"`disk2` int(11) DEFAULT NULL,\n" +
|
||||
"`cap2` char(25) DEFAULT NULL,\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_computers_company` (`company`),\n" +
|
||||
"KEY `idx_computers_year` (`year`),\n" +
|
||||
"KEY `idx_computers_model` (`model`),\n" +
|
||||
"KEY `idx_computers_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_computers_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_computers_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_computers_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_computers_bits` (`bits`),\n" +
|
||||
"KEY `idx_computers_ram` (`ram`),\n" +
|
||||
"KEY `idx_computers_rom` (`rom`),\n" +
|
||||
"KEY `idx_computers_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_computers_vram` (`vram`),\n" +
|
||||
"KEY `idx_computers_colors` (`colors`),\n" +
|
||||
"KEY `idx_computers_res` (`res`),\n" +
|
||||
"KEY `idx_computers_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_computers_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_computers_hdd1` (`hdd1`),\n" +
|
||||
"KEY `idx_computers_hdd2` (`hdd2`),\n" +
|
||||
"KEY `idx_computers_hdd3` (`hdd3`),\n" +
|
||||
"KEY `idx_computers_disk1` (`disk1`),\n" +
|
||||
"KEY `idx_computers_disk2` (`disk2`),\n" +
|
||||
"KEY `idx_computers_cap1` (`cap1`),\n" +
|
||||
"KEY `idx_computers_cap2` (`cap2`))";
|
||||
|
||||
public static readonly string Consoles =
|
||||
"CREATE TABLE `consoles` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(11) NOT NULL DEFAULT '',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`palette` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`schannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`mchannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`format` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_consoles_company` (`company`),\n" +
|
||||
"KEY `idx_consoles_year` (`year`),\n" +
|
||||
"KEY `idx_consoles_model` (`model`),\n" +
|
||||
"KEY `idx_consoles_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_consoles_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_consoles_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_consoles_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_consoles_bits` (`bits`),\n" +
|
||||
"KEY `idx_consoles_ram` (`ram`),\n" +
|
||||
"KEY `idx_consoles_rom` (`rom`),\n" +
|
||||
"KEY `idx_consoles_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_consoles_vram` (`vram`),\n" +
|
||||
"KEY `idx_consoles_colors` (`colors`),\n" +
|
||||
"KEY `idx_consoles_res` (`res`),\n" +
|
||||
"KEY `idx_consoles_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_consoles_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_consoles_palette` (`palette`),\n" +
|
||||
"KEY `idx_consoles_format` (`format`),\n" +
|
||||
"KEY `idx_consoles_cap` (`cap`),\n" +
|
||||
"CONSTRAINT `fk_consoles_company` FOREIGN KEY (`company`) REFERENCES `companies` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_cpu1` FOREIGN KEY (`cpu1`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_cpu2` FOREIGN KEY (`cpu2`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_format` FOREIGN KEY (`format`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_gpu` FOREIGN KEY (`gpu`) REFERENCES `gpus` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_music_synth` FOREIGN KEY (`music_synth`) REFERENCES `music_synths` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_sound_synth` FOREIGN KEY (`sound_synth`) REFERENCES `sound_synths` (`id`));";
|
||||
public static readonly string Consoles = "CREATE TABLE `consoles` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(11) NOT NULL DEFAULT '',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`palette` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`schannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`mchannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`format` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_consoles_company` (`company`),\n" +
|
||||
"KEY `idx_consoles_year` (`year`),\n" +
|
||||
"KEY `idx_consoles_model` (`model`),\n" +
|
||||
"KEY `idx_consoles_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_consoles_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_consoles_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_consoles_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_consoles_bits` (`bits`),\n" +
|
||||
"KEY `idx_consoles_ram` (`ram`),\n" +
|
||||
"KEY `idx_consoles_rom` (`rom`),\n" +
|
||||
"KEY `idx_consoles_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_consoles_vram` (`vram`),\n" +
|
||||
"KEY `idx_consoles_colors` (`colors`),\n" +
|
||||
"KEY `idx_consoles_res` (`res`),\n" +
|
||||
"KEY `idx_consoles_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_consoles_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_consoles_palette` (`palette`),\n" +
|
||||
"KEY `idx_consoles_format` (`format`),\n" +
|
||||
"KEY `idx_consoles_cap` (`cap`));";
|
||||
|
||||
public static readonly string DiskFormats = V11.DiskFormats;
|
||||
|
||||
|
||||
@@ -45,121 +45,101 @@ namespace Cicm.Database.Schemas.Sql
|
||||
|
||||
public static readonly string Companies = V12.Companies;
|
||||
|
||||
public static readonly string Computers =
|
||||
"CREATE TABLE `computers` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(10) NOT NULL DEFAULT '',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd2` int(11) DEFAULT NULL,\n" +
|
||||
"`hdd3` int(11) DEFAULT NULL,\n" +
|
||||
"`disk1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap1` char(25) NOT NULL DEFAULT '0',\n" +
|
||||
"`disk2` int(11) DEFAULT NULL,\n" +
|
||||
"`cap2` char(25) DEFAULT NULL,\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_computers_company` (`company`),\n" +
|
||||
"KEY `idx_computers_year` (`year`),\n" +
|
||||
"KEY `idx_computers_model` (`model`),\n" +
|
||||
"KEY `idx_computers_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_computers_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_computers_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_computers_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_computers_bits` (`bits`),\n" +
|
||||
"KEY `idx_computers_ram` (`ram`),\n" +
|
||||
"KEY `idx_computers_rom` (`rom`),\n" +
|
||||
"KEY `idx_computers_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_computers_vram` (`vram`),\n" +
|
||||
"KEY `idx_computers_colors` (`colors`),\n" +
|
||||
"KEY `idx_computers_res` (`res`),\n" +
|
||||
"KEY `idx_computers_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_computers_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_computers_hdd1` (`hdd1`),\n" +
|
||||
"KEY `idx_computers_hdd2` (`hdd2`),\n" +
|
||||
"KEY `idx_computers_hdd3` (`hdd3`),\n" +
|
||||
"KEY `idx_computers_disk1` (`disk1`),\n" +
|
||||
"KEY `idx_computers_disk2` (`disk2`),\n" +
|
||||
"KEY `idx_computers_cap1` (`cap1`),\n" +
|
||||
"KEY `idx_computers_cap2` (`cap2`),\n" +
|
||||
"CONSTRAINT `fk_computers_company` FOREIGN KEY (`company`) REFERENCES `companies` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_cpu1` FOREIGN KEY (`cpu1`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_cpu2` FOREIGN KEY (`cpu2`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_disk1` FOREIGN KEY (`disk1`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_disk2` FOREIGN KEY (`disk2`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_gpu` FOREIGN KEY (`gpu`) REFERENCES `gpus` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_hdd1` FOREIGN KEY (`hdd1`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_hdd2` FOREIGN KEY (`hdd2`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_hdd3` FOREIGN KEY (`hdd3`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_computers_music_synth` FOREIGN KEY (`music_synth`) REFERENCES `sound_synths` (`id`) ON UPDATE CASCADE,\n" +
|
||||
"CONSTRAINT `fk_computers_sound_synth` FOREIGN KEY (`sound_synth`) REFERENCES `sound_synths` (`id`));";
|
||||
public static readonly string Computers = "CREATE TABLE `computers` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(10) NOT NULL DEFAULT '',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_channels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`hdd2` int(11) DEFAULT NULL,\n" +
|
||||
"`hdd3` int(11) DEFAULT NULL,\n" +
|
||||
"`disk1` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap1` char(25) NOT NULL DEFAULT '0',\n" +
|
||||
"`disk2` int(11) DEFAULT NULL,\n" +
|
||||
"`cap2` char(25) DEFAULT NULL,\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_computers_company` (`company`),\n" +
|
||||
"KEY `idx_computers_year` (`year`),\n" +
|
||||
"KEY `idx_computers_model` (`model`),\n" +
|
||||
"KEY `idx_computers_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_computers_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_computers_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_computers_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_computers_bits` (`bits`),\n" +
|
||||
"KEY `idx_computers_ram` (`ram`),\n" +
|
||||
"KEY `idx_computers_rom` (`rom`),\n" +
|
||||
"KEY `idx_computers_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_computers_vram` (`vram`),\n" +
|
||||
"KEY `idx_computers_colors` (`colors`),\n" +
|
||||
"KEY `idx_computers_res` (`res`),\n" +
|
||||
"KEY `idx_computers_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_computers_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_computers_hdd1` (`hdd1`),\n" +
|
||||
"KEY `idx_computers_hdd2` (`hdd2`),\n" +
|
||||
"KEY `idx_computers_hdd3` (`hdd3`),\n" +
|
||||
"KEY `idx_computers_disk1` (`disk1`),\n" +
|
||||
"KEY `idx_computers_disk2` (`disk2`),\n" +
|
||||
"KEY `idx_computers_cap1` (`cap1`),\n" +
|
||||
"KEY `idx_computers_cap2` (`cap2`));";
|
||||
|
||||
public static readonly string Consoles =
|
||||
"CREATE TABLE `consoles` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(11) NOT NULL DEFAULT '',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`palette` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`schannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`mchannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`format` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_consoles_company` (`company`),\n" +
|
||||
"KEY `idx_consoles_year` (`year`),\n" +
|
||||
"KEY `idx_consoles_model` (`model`),\n" +
|
||||
"KEY `idx_consoles_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_consoles_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_consoles_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_consoles_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_consoles_bits` (`bits`),\n" +
|
||||
"KEY `idx_consoles_ram` (`ram`),\n" +
|
||||
"KEY `idx_consoles_rom` (`rom`),\n" +
|
||||
"KEY `idx_consoles_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_consoles_vram` (`vram`),\n" +
|
||||
"KEY `idx_consoles_colors` (`colors`),\n" +
|
||||
"KEY `idx_consoles_res` (`res`),\n" +
|
||||
"KEY `idx_consoles_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_consoles_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_consoles_palette` (`palette`),\n" +
|
||||
"KEY `idx_consoles_format` (`format`),\n" +
|
||||
"KEY `idx_consoles_cap` (`cap`),\n" +
|
||||
"CONSTRAINT `fk_consoles_company` FOREIGN KEY (`company`) REFERENCES `companies` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_cpu1` FOREIGN KEY (`cpu1`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_cpu2` FOREIGN KEY (`cpu2`) REFERENCES `processors` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_format` FOREIGN KEY (`format`) REFERENCES `disk_formats` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_gpu` FOREIGN KEY (`gpu`) REFERENCES `gpus` (`id`),\n" +
|
||||
"CONSTRAINT `fk_consoles_music_synth` FOREIGN KEY (`music_synth`) REFERENCES `sound_synths` (`id`) ON UPDATE CASCADE,\n" +
|
||||
"CONSTRAINT `fk_consoles_sound_synth` FOREIGN KEY (`sound_synth`) REFERENCES `sound_synths` (`id`));";
|
||||
public static readonly string Consoles = "CREATE TABLE `consoles` (\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,\n" +
|
||||
"`bits` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`res` char(11) NOT NULL DEFAULT '',\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`palette` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`schannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`mchannels` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`format` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"`cap` int(11) NOT NULL DEFAULT '0',\n" +
|
||||
"PRIMARY KEY (`id`),\n" +
|
||||
"KEY `idx_consoles_company` (`company`),\n" +
|
||||
"KEY `idx_consoles_year` (`year`),\n" +
|
||||
"KEY `idx_consoles_model` (`model`),\n" +
|
||||
"KEY `idx_consoles_cpu1` (`cpu1`),\n" +
|
||||
"KEY `idx_consoles_cpu2` (`cpu2`),\n" +
|
||||
"KEY `idx_consoles_mhz1` (`mhz1`),\n" +
|
||||
"KEY `idx_consoles_mhz2` (`mhz2`),\n" +
|
||||
"KEY `idx_consoles_bits` (`bits`),\n" +
|
||||
"KEY `idx_consoles_ram` (`ram`),\n" +
|
||||
"KEY `idx_consoles_rom` (`rom`),\n" +
|
||||
"KEY `idx_consoles_gpu` (`gpu`),\n" +
|
||||
"KEY `idx_consoles_vram` (`vram`),\n" +
|
||||
"KEY `idx_consoles_colors` (`colors`),\n" +
|
||||
"KEY `idx_consoles_res` (`res`),\n" +
|
||||
"KEY `idx_consoles_sound_synth` (`sound_synth`),\n" +
|
||||
"KEY `idx_consoles_music_synth` (`music_synth`),\n" +
|
||||
"KEY `idx_consoles_palette` (`palette`),\n" +
|
||||
"KEY `idx_consoles_format` (`format`),\n" +
|
||||
"KEY `idx_consoles_cap` (`cap`));";
|
||||
|
||||
public static readonly string DiskFormats = V12.DiskFormats;
|
||||
|
||||
@@ -204,9 +184,27 @@ namespace Cicm.Database.Schemas.Sql
|
||||
"KEY `idx_sound_synths_type` (`type`),\n" +
|
||||
"CONSTRAINT `fk_sound_synths_company` FOREIGN KEY (`company`) REFERENCES `companies` (`id`) ON UPDATE CASCADE);";
|
||||
|
||||
public static readonly string ComputersForeignKeys = V12.ComputersForeignKeys;
|
||||
public static readonly string ComputersForeignKeys =
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_company (company) REFERENCES companies (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_cpu1 (cpu1) REFERENCES processors (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_cpu2 (cpu2) REFERENCES processors (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_gpu (gpu) REFERENCES gpus (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_sound_synth (sound_synth) REFERENCES sound_synths (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_music_synth (music_synth) REFERENCES sound_synths (id) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_hdd1 (hdd1) REFERENCES disk_formats (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_hdd2 (hdd2) REFERENCES disk_formats (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_hdd3 (hdd3) REFERENCES disk_formats (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_disk1 (disk1) REFERENCES disk_formats (id);\n" +
|
||||
"ALTER TABLE computers ADD FOREIGN KEY fk_computers_disk2 (disk2) REFERENCES disk_formats (id);";
|
||||
|
||||
public static readonly string ConsolesForeignKeys = V12.ConsolesForeignKeys;
|
||||
public static readonly string ConsolesForeignKeys =
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_company (company) REFERENCES companies (id);\n" +
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_cpu1 (cpu1) REFERENCES processors (id);\n" +
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_cpu2 (cpu2) REFERENCES processors (id);\n" +
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_gpu (gpu) REFERENCES gpus (id);\n" +
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_sound_synth (sound_synth) REFERENCES sound_synths (id);\n" +
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_music_synth (music_synth) REFERENCES sound_synths (id) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE consoles ADD FOREIGN KEY fk_consoles_format (format) REFERENCES disk_formats (id);";
|
||||
|
||||
public static readonly string Iso3166Numeric = V12.Iso3166Numeric;
|
||||
|
||||
|
||||
@@ -46,56 +46,56 @@ namespace Cicm.Database.Schemas.Sql
|
||||
public static readonly string Companies = V13.Companies;
|
||||
|
||||
public static readonly string Machines = "CREATE TABLE `machines` (;\n" +
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,;\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',;\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,;\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,;\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,;\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,;\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,;\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`res` char(10) NOT NULL DEFAULT '',;\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`sound_channels` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`music_channels` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`hdd1` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`hdd2` int(11) DEFAULT NULL,;\n" +
|
||||
"`hdd3` int(11) DEFAULT NULL,;\n" +
|
||||
"`disk1` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`cap1` char(25) NOT NULL DEFAULT '0',;\n" +
|
||||
"`disk2` int(11) DEFAULT NULL,;\n" +
|
||||
"`cap2` char(25) DEFAULT NULL,;\n" +
|
||||
"`type` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"PRIMARY KEY (`id`),;\n" +
|
||||
"KEY `idx_machines_company` (`company`),;\n" +
|
||||
"KEY `idx_machines_year` (`year`),;\n" +
|
||||
"KEY `idx_machines_model` (`model`),;\n" +
|
||||
"KEY `idx_machines_cpu1` (`cpu1`),;\n" +
|
||||
"KEY `idx_machines_cpu2` (`cpu2`),;\n" +
|
||||
"KEY `idx_machines_mhz1` (`mhz1`),;\n" +
|
||||
"KEY `idx_machines_mhz2` (`mhz2`),;\n" +
|
||||
"KEY `idx_machines_ram` (`ram`),;\n" +
|
||||
"KEY `idx_machines_rom` (`rom`),;\n" +
|
||||
"KEY `idx_machines_gpu` (`gpu`),;\n" +
|
||||
"KEY `idx_machines_vram` (`vram`),;\n" +
|
||||
"KEY `idx_machines_colors` (`colors`),;\n" +
|
||||
"KEY `idx_machines_res` (`res`),;\n" +
|
||||
"KEY `idx_machines_sound_synth` (`sound_synth`),;\n" +
|
||||
"KEY `idx_machines_music_synth` (`music_synth`),;\n" +
|
||||
"KEY `idx_machines_hdd1` (`hdd1`),;\n" +
|
||||
"KEY `idx_machines_hdd2` (`hdd2`),;\n" +
|
||||
"KEY `idx_machines_hdd3` (`hdd3`),;\n" +
|
||||
"KEY `idx_machines_disk1` (`disk1`),;\n" +
|
||||
"KEY `idx_machines_disk2` (`disk2`),;\n" +
|
||||
"KEY `idx_machines_cap1` (`cap1`),;\n" +
|
||||
"KEY `idx_machines_cap2` (`cap2`),;\n" +
|
||||
"KEY `idx_machines_type` (`type`));";
|
||||
"`id` int(11) NOT NULL AUTO_INCREMENT,;\n" +
|
||||
"`company` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`year` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`model` char(50) NOT NULL DEFAULT '',;\n" +
|
||||
"`cpu1` int(11) DEFAULT NULL,;\n" +
|
||||
"`mhz1` int(11) DEFAULT NULL,;\n" +
|
||||
"`cpu2` int(11) DEFAULT NULL,;\n" +
|
||||
"`mhz2` decimal(11,2) DEFAULT NULL,;\n" +
|
||||
"`ram` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`rom` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`gpu` int(11) DEFAULT NULL,;\n" +
|
||||
"`vram` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`colors` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`res` char(10) NOT NULL DEFAULT '',;\n" +
|
||||
"`sound_synth` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`music_synth` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`sound_channels` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`music_channels` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`hdd1` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`hdd2` int(11) DEFAULT NULL,;\n" +
|
||||
"`hdd3` int(11) DEFAULT NULL,;\n" +
|
||||
"`disk1` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"`cap1` char(25) NOT NULL DEFAULT '0',;\n" +
|
||||
"`disk2` int(11) DEFAULT NULL,;\n" +
|
||||
"`cap2` char(25) DEFAULT NULL,;\n" +
|
||||
"`type` int(11) NOT NULL DEFAULT '0',;\n" +
|
||||
"PRIMARY KEY (`id`),;\n" +
|
||||
"KEY `idx_machines_company` (`company`),;\n" +
|
||||
"KEY `idx_machines_year` (`year`),;\n" +
|
||||
"KEY `idx_machines_model` (`model`),;\n" +
|
||||
"KEY `idx_machines_cpu1` (`cpu1`),;\n" +
|
||||
"KEY `idx_machines_cpu2` (`cpu2`),;\n" +
|
||||
"KEY `idx_machines_mhz1` (`mhz1`),;\n" +
|
||||
"KEY `idx_machines_mhz2` (`mhz2`),;\n" +
|
||||
"KEY `idx_machines_ram` (`ram`),;\n" +
|
||||
"KEY `idx_machines_rom` (`rom`),;\n" +
|
||||
"KEY `idx_machines_gpu` (`gpu`),;\n" +
|
||||
"KEY `idx_machines_vram` (`vram`),;\n" +
|
||||
"KEY `idx_machines_colors` (`colors`),;\n" +
|
||||
"KEY `idx_machines_res` (`res`),;\n" +
|
||||
"KEY `idx_machines_sound_synth` (`sound_synth`),;\n" +
|
||||
"KEY `idx_machines_music_synth` (`music_synth`),;\n" +
|
||||
"KEY `idx_machines_hdd1` (`hdd1`),;\n" +
|
||||
"KEY `idx_machines_hdd2` (`hdd2`),;\n" +
|
||||
"KEY `idx_machines_hdd3` (`hdd3`),;\n" +
|
||||
"KEY `idx_machines_disk1` (`disk1`),;\n" +
|
||||
"KEY `idx_machines_disk2` (`disk2`),;\n" +
|
||||
"KEY `idx_machines_cap1` (`cap1`),;\n" +
|
||||
"KEY `idx_machines_cap2` (`cap2`),;\n" +
|
||||
"KEY `idx_machines_type` (`type`));";
|
||||
|
||||
public static readonly string DiskFormats = V13.DiskFormats;
|
||||
|
||||
@@ -117,13 +117,13 @@ namespace Cicm.Database.Schemas.Sql
|
||||
|
||||
public static readonly string SoundSynths = V13.SoundSynths;
|
||||
|
||||
public static readonly string MachinesForeignKeys = V13.ComputersForeignKeys;
|
||||
public static readonly string CompaniesForeignKeys = V13.CompaniesForeignKeys;
|
||||
|
||||
public static readonly string Iso3166Numeric = V13.Iso3166Numeric;
|
||||
|
||||
public static readonly string Iso3166NumericValues = V13.Iso3166NumericValues;
|
||||
|
||||
public static readonly string CompaniesForeignKeys =
|
||||
public static readonly string MachinesForeignKeys =
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_company` (company) REFERENCES `companies` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_cpu1` (cpu1) REFERENCES `processors` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_cpu2` (cpu2) REFERENCES `processors` (`id`) ON UPDATE CASCADE;\n" +
|
||||
|
||||
@@ -109,7 +109,16 @@ namespace Cicm.Database.Schemas.Sql
|
||||
|
||||
public static readonly string SoundSynths = V14.SoundSynths;
|
||||
|
||||
public static readonly string MachinesForeignKeys = V14.MachinesForeignKeys;
|
||||
public static readonly string MachinesForeignKeys =
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_company` (company) REFERENCES `companies` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_disk1` (disk1) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_disk2` (disk2) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_gpu` (gpu) REFERENCES `gpus` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd1` (hdd1) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd2` (hdd2) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd3` (hdd3) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_music_synth` (music_synth) REFERENCES `sound_synths` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_sound_synth` (sound_synth) REFERENCES `sound_synths` (`id`) ON UPDATE CASCADE;";
|
||||
|
||||
public static readonly string Iso3166Numeric = V14.Iso3166Numeric;
|
||||
|
||||
|
||||
@@ -107,7 +107,15 @@ namespace Cicm.Database.Schemas.Sql
|
||||
|
||||
public static readonly string SoundSynths = V15.SoundSynths;
|
||||
|
||||
public static readonly string MachinesForeignKeys = V15.MachinesForeignKeys;
|
||||
public static readonly string MachinesForeignKeys =
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_company` (company) REFERENCES `companies` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_disk1` (disk1) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_disk2` (disk2) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd1` (hdd1) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd2` (hdd2) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd3` (hdd3) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_music_synth` (music_synth) REFERENCES `sound_synths` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_sound_synth` (sound_synth) REFERENCES `sound_synths` (`id`) ON UPDATE CASCADE;";
|
||||
|
||||
public static readonly string Iso3166Numeric = V15.Iso3166Numeric;
|
||||
|
||||
|
||||
@@ -101,7 +101,13 @@ namespace Cicm.Database.Schemas.Sql
|
||||
|
||||
public static readonly string SoundSynths = V16.SoundSynths;
|
||||
|
||||
public static readonly string MachinesForeignKeys = V16.MachinesForeignKeys;
|
||||
public static readonly string MachinesForeignKeys =
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_company` (company) REFERENCES `companies` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_disk1` (disk1) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_disk2` (disk2) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd1` (hdd1) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd2` (hdd2) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;\n" +
|
||||
"ALTER TABLE `machines` ADD FOREIGN KEY `fk_machines_hdd3` (hdd3) REFERENCES `disk_formats` (`id`) ON UPDATE CASCADE;";
|
||||
|
||||
public static readonly string Iso3166Numeric = V16.Iso3166Numeric;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user