source: admin/Database/alterbd.sql @ 803bc36

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 803bc36 was f6ce34f, checked in by adv <adv@…>, 14 years ago

branch engine 1.0: gestor de arranque remoto gestiona oginitrd.img y ogvmlinuz

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1512 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100644
File size: 4.3 KB
Line 
1SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
2
3--
4-- Base de datos: `ogBDAdmin`
5--
6
7ALTER TABLE `ordenadores`ADD `arranque` VARCHAR( 30 ) NOT NULL DEFAULT '1',
8ADD `netiface` enum('eth0','eth1','eth2') DEFAULT 'eth0',
9ADD `netdriver` VARCHAR( 30 ) NOT NULL DEFAULT 'generic';
10
11
12
13
14
15ALTER TABLE `aulas` ADD `router` VARCHAR( 30 ),
16ADD `netmask` VARCHAR( 30 ),
17ADD `dns` VARCHAR (30),
18ADD `modp2p` enum('seeder','peer','leecher') DEFAULT 'seeder',
19ADD `timep2p` INT(11) NOT NULL DEFAULT '60';
20
21
22
23
24
25
26CREATE TABLE IF NOT EXISTS `itemboot` (
27  `label` varchar(50) collate utf8_spanish_ci NOT NULL,
28  `kernel` varchar(100) collate utf8_spanish_ci NOT NULL,
29  `append` varchar(500) collate utf8_spanish_ci NOT NULL,
30  PRIMARY KEY  (`label`)
31) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
32
33
34
35INSERT INTO `itemboot` (`label`, `kernel`, `append`) VALUES
36('1', 'KERNEL syslinux/chain.c32', 'APPEND hd0'),
37('1_localboot', 'LOCALBOOT 0', ' '),
38('11', 'KERNEL syslinux/chain.c32', 'APPEND hd0 1'),
39('12', 'KERNEL syslinux/chain.c32', 'APPEND hd0 2'),
40('ogClientUser', 'KERNEL ogclient/ogvmlinuz', 'APPEND initrd=ogclient/oginitrd.img ro boot=oginit vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb  ogactiveadmin=false'),
41('ogClientAdmin', 'KERNEL ogclient/ogvmlinuz', 'APPEND initrd=ogclient/oginitrd.img ro boot=oginit vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true'),
42('ogInitrdUser', 'KERNEL linux', 'APPEND initrd=initrd.gz ip=dhcp ro vga=788 irqpoll acpi=on boot=user '),
43('ogInitrdAdmin', 'KERNEL linux', 'APPEND initrd=initrd.gz ip=dhcp ro vga=788 irqpoll acpi=on boot=admin ');
44
45
46
47
48CREATE TABLE IF NOT EXISTS `menuboot` (
49  `label` varchar(50) collate utf8_spanish_ci NOT NULL,
50  `prompt` int(11) NOT NULL,
51  `timeout` int(30) default NULL,
52  `description` varchar(50) collate utf8_spanish_ci NOT NULL,
53  PRIMARY KEY  (`label`)
54) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
55
56
57
58INSERT INTO `menuboot` (`label`, `prompt`, `timeout`, `description`) VALUES
59('1', 0, 10, 'mbr 1hd'),
60('11', 0, 10, '1hd 1particion'),
61('12', 0, 10, '1hd 2particion'),
62('pxe', 0, 10, 'og client - user'),
63('pxeADMIN', 0, 10, 'OgClient - admin');
64
65
66CREATE TABLE IF NOT EXISTS `menuboot_itemboot` (
67  `labelmenu` varchar(100) NOT NULL,
68  `labelitem` varchar(100) NOT NULL,
69  `default` tinyint(10) NOT NULL
70) ENGINE=MyISAM DEFAULT CHARSET=latin1;
71
72
73INSERT INTO `menuboot_itemboot` (`labelmenu`, `labelitem`, `default`) VALUES
74('0', '0', 0),
75('11', '11', 0),
76('12', '12', 0),
77('1', '1', 0),
78('pxe', 'ogClientUser', 0),
79('pxeADMIN', 'ogClientAdmin', 0);
80
81
82
83--
84-- Estructura de tabla para la tabla `asistentes`
85--
86
87CREATE TABLE IF NOT EXISTS `asistentes` (
88  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
89  `descripcion` varchar(250) NOT NULL DEFAULT '',
90  `pagina` varchar(256) NOT NULL,
91  `gestor` varchar(256) NOT NULL,
92  `funcion` varchar(64) NOT NULL,
93  `urlimg` varchar(250) DEFAULT NULL,
94  `aplicambito` tinyint(4) DEFAULT NULL,
95  `visuparametros` varchar(250) DEFAULT NULL,
96  `parametros` varchar(250) DEFAULT NULL,
97  `comentarios` text,
98  `activo` tinyint(1) NOT NULL,
99  PRIMARY KEY (`idcomando`)
100) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
101
102
103INSERT INTO `asistentes` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`) VALUES
104('1', 'Asistente Clonacion Particiones Remotas', '../asistentes/AsistenteCloneRemotePartition.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'),
105('2', 'Asistente "Deploy" de Imagenes', '../asistentes/AsistenteDeployImage.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'),
106('3', 'Asistente "UpdateCache" con Imagenes', '../asistentes/AsistenteUpdateCache.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'),
107('4', 'Asistente Restauracion de Imagenes', '../asistentes/AsistenteRestoreImage.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'),
108('5', 'Asistente Particionado', '../asistentes/AsistenteParticionado.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1');
109
110
111
Note: See TracBrowser for help on using the repository browser.