source: admin/Database/alterbd.sql @ cbe1fdf

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 cbe1fdf was cbe1fdf, checked in by adv <adv@…>, 14 years ago

version 1.0 -- integracion BD -- ticket:302

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

  • Property mode set to 100644
File size: 3.8 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/vmlinuz-2.6.32-21-generic-pae', 'APPEND initrd=ogclient/initrd.img-2.6.32-21-generic-pae ro boot=oginit vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb engine=testing ogactiveadmin=false'),
41('ogClientAdmin', 'KERNEL ogclient/vmlinuz-2.6.32-21-generic-pae', 'APPEND initrd=ogclient/initrd.img-2.6.32-21-generic-pae ro boot=oginit vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb engine=testing 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
82INSERT INTO `ogAdmBD`.`comandos` (
83`idcomando` ,
84`descripcion` ,
85`pagina` ,
86`gestor` ,
87`funcion` ,
88`urlimg` ,
89`aplicambito` ,
90`visuparametros` ,
91`parametros` ,
92`comentarios` ,
93`activo`
94)
95VALUES
96('11', 'Asistente Clonacion Particiones Remotas', '../comandos/AsistenteCloneRemotePartition.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'),
97('12', 'Asistente "Deploy" de Imagenes', '../comandos/AsistenteDeployImage.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'),
98('13', 'Asistente "UpdateCache" con Imagenes', '../comandos/AsistenteUpdateCache.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'),
99('14', 'Asistente Restauracion de Imagenes', '../comandos/AsistenteRestoreImage.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'),
100('15', 'Asistente Particionado', '../comandos/AsistenteParticionado.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1');
101
102
103
Note: See TracBrowser for help on using the repository browser.