source: admin/Database/ogAdmBD.sql @ 6d356fe

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 6d356fe was 7a9f3be, checked in by ramon <ramongomez@…>, 13 years ago

Versión 1.0.3, #499: Integrar versión 1.0.3 en rama principal.

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

  • Property mode set to 100644
File size: 34.9 KB
Line 
1-- phpMyAdmin SQL Dump
2-- version 3.2.2.1deb1
3-- http://www.phpmyadmin.net
4--
5-- Servidor: localhost
6-- Tiempo de generación: 20-09-2010 a las 22:43:50
7-- Versión del servidor: 5.1.37
8-- Versión de PHP: 5.2.10-2ubuntu6.4
9
10SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
11
12--
13-- Base de datos: `ogAdmBD`
14--
15
16-- --------------------------------------------------------
17
18--
19-- Estructura de tabla para la tabla `acciones`
20--
21
22CREATE TABLE IF NOT EXISTS `acciones` (
23  `idaccion` int(11) NOT NULL AUTO_INCREMENT,
24  `tipoaccion` smallint(6) NOT NULL,
25  `idtipoaccion` int(11) NOT NULL,
26  `descriaccion` varchar(250) NOT NULL,
27  `idordenador` int(11) NOT NULL,
28  `ip` varchar(50) NOT NULL,
29  `sesion` int(11) NOT NULL,
30  `idcomando` int(11) NOT NULL,
31  `parametros` text,
32  `fechahorareg` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
33  `fechahorafin` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
34  `estado` tinyint(1) NOT NULL DEFAULT '0',
35  `resultado` tinyint(1) NOT NULL DEFAULT '0',
36  `descrinotificacion` varchar(256) DEFAULT NULL,
37  `ambito` smallint(6) NOT NULL DEFAULT '0',
38  `idambito` int(11) NOT NULL DEFAULT '0',
39  `restrambito` text NOT NULL,
40  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
41  `idtarea` int(11) NOT NULL DEFAULT '0',
42  `idcentro` int(11) NOT NULL DEFAULT '0',
43  `idprogramacion` int(11) NOT NULL DEFAULT '0',
44  PRIMARY KEY (`idaccion`)
45) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
46
47-- --------------------------------------------------------
48
49--
50-- Estructura de tabla para la tabla `acciones_menus`
51--
52
53CREATE TABLE IF NOT EXISTS `acciones_menus` (
54  `idaccionmenu` int(11) NOT NULL AUTO_INCREMENT,
55  `tipoaccion` tinyint(4) NOT NULL DEFAULT '0',
56  `idtipoaccion` int(11) NOT NULL DEFAULT '0',
57  `idmenu` int(11) NOT NULL DEFAULT '0',
58  `tipoitem` tinyint(4) DEFAULT NULL,
59  `idurlimg` int(11) DEFAULT NULL,
60  `descripitem` varchar(250) DEFAULT NULL,
61  `orden` tinyint(4) DEFAULT NULL,
62  PRIMARY KEY (`idaccionmenu`)
63) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
64
65-- --------------------------------------------------------
66
67--
68-- Estructura de tabla para la tabla `administradores_centros`
69--
70
71CREATE TABLE IF NOT EXISTS `administradores_centros` (
72  `idadministradorcentro` int(11) NOT NULL AUTO_INCREMENT,
73  `idusuario` int(11) NOT NULL DEFAULT '0',
74  `idcentro` int(11) NOT NULL DEFAULT '0',
75  PRIMARY KEY (`idadministradorcentro`)
76) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
77
78INSERT INTO `administradores_centros` (`idadministradorcentro`, `idusuario`, `idcentro`) VALUES
79(1, 1, 1);
80
81-- --------------------------------------------------------
82
83--
84-- Estructura de tabla para la tabla `aulas`
85--
86
87CREATE TABLE IF NOT EXISTS `aulas` (
88  `idaula` int(11) NOT NULL AUTO_INCREMENT,
89  `nombreaula` varchar(100) NOT NULL DEFAULT '',
90  `idcentro` int(11) NOT NULL DEFAULT '0',
91  `urlfoto` varchar(250) DEFAULT NULL,
92  `cuadro_y` char(3) DEFAULT NULL,
93  `cuadro_x` char(3) DEFAULT NULL,
94  `cagnon` tinyint(1) DEFAULT NULL,
95  `pizarra` tinyint(1) DEFAULT NULL,
96  `grupoid` int(11) DEFAULT NULL,
97  `ubicacion` varchar(255) DEFAULT NULL,
98  `comentarios` text,
99  `puestos` tinyint(4) DEFAULT NULL,
100  `horaresevini` tinyint(4) DEFAULT NULL,
101  `horaresevfin` tinyint(4) DEFAULT NULL,
102  `modomul` tinyint(4) NOT NULL,
103  `ipmul` varchar(16) NOT NULL,
104  `pormul` int(11) NOT NULL,
105  `velmul` smallint(6) NOT NULL DEFAULT '70',
106  `router` VARCHAR( 30 ),
107  `netmask` VARCHAR( 30 ),
108  `dns` VARCHAR (30),
109  `modp2p` enum('seeder','peer','leecher') DEFAULT 'peer',
110  `timep2p` INT(11) NOT NULL DEFAULT '60',
111  PRIMARY KEY (`idaula`)
112) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
113
114
115
116--
117-- Estructura de tabla para la tabla `asistentes`
118--
119
120CREATE TABLE IF NOT EXISTS `asistentes` (
121  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
122  `descripcion` varchar(250) NOT NULL DEFAULT '',
123  `pagina` varchar(256) NOT NULL,
124  `gestor` varchar(256) NOT NULL,
125  `funcion` varchar(64) NOT NULL,
126  `urlimg` varchar(250) DEFAULT NULL,
127  `aplicambito` tinyint(4) DEFAULT NULL,
128  `visuparametros` varchar(250) DEFAULT NULL,
129  `parametros` varchar(250) DEFAULT NULL,
130  `comentarios` text,
131  `activo` tinyint(1) NOT NULL,
132  PRIMARY KEY ( `idcomando` , `descripcion` )
133) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
134
135
136INSERT INTO `asistentes` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`) VALUES
137('8', 'Asistente Clonacion Particiones Remotas', '../asistentes/AsistenteCloneRemotePartition.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'),
138('8', 'Asistente "Deploy" de Imagenes', '../asistentes/AsistenteDeployImage.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1'),
139('8', 'Asistente "UpdateCache" con Imagenes', '../asistentes/AsistenteUpdateCache.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'),
140('8', 'Asistente Restauracion de Imagenes', '../asistentes/AsistenteRestoreImage.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '0'),
141('8', 'Asistente Particionado', '../asistentes/AsistenteParticionado.php', '../asistentes/gestores/gestor_Comandos.php', 'EjecutarScript', ' ', '31', 'iph;tis;dcr;dsp', 'nfn;iph;tis;dcr;scp', ' ', '1');
142
143
144
145-- --------------------------------------------------------
146
147--
148-- Estructura de tabla para la tabla `campus`
149--
150
151CREATE TABLE IF NOT EXISTS `campus` (
152  `idcampus` int(11) NOT NULL AUTO_INCREMENT,
153  `nombrecampus` varchar(100) NOT NULL DEFAULT '',
154  `iduniversidad` int(11) DEFAULT NULL,
155  `urlmapa` varchar(255) DEFAULT NULL,
156  `cuadro_y` tinyint(3) DEFAULT NULL,
157  `cuadro_x` tinyint(3) DEFAULT NULL,
158  PRIMARY KEY (`idcampus`)
159) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
160
161--
162-- Volcar la base de datos para la tabla `campus`
163--
164
165
166-- --------------------------------------------------------
167
168--
169-- Estructura de tabla para la tabla `centros`
170--
171
172CREATE TABLE IF NOT EXISTS `centros` (
173  `idcentro` int(11) NOT NULL AUTO_INCREMENT,
174  `nombrecentro` varchar(100) NOT NULL DEFAULT '',
175  `identidad` int(11) DEFAULT NULL,
176  `comentarios` text,
177  PRIMARY KEY (`idcentro`)
178) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
179
180
181        --
182        -- Volcar la base de datos para la tabla `centros`
183        --
184        INSERT INTO `centros` (`idcentro`,`nombrecentro`,`identidad`,`comentarios`) VALUES
185         (1,'Unidad organizativa (Default)',1,'Esta Unidad Organizativa se crea automáticamente en el proceso de instalación de OpenGNSys');
186         
187       
188-- --------------------------------------------------------
189
190--
191-- Estructura de tabla para la tabla `comandos`
192--
193
194CREATE TABLE IF NOT EXISTS `comandos` (
195  `idcomando` int(11) NOT NULL AUTO_INCREMENT,
196  `descripcion` varchar(250) NOT NULL DEFAULT '',
197  `pagina` varchar(256) NOT NULL,
198  `gestor` varchar(256) NOT NULL,
199  `funcion` varchar(64) NOT NULL,
200  `urlimg` varchar(250) DEFAULT NULL,
201  `aplicambito` tinyint(4) DEFAULT NULL,
202  `visuparametros` varchar(250) DEFAULT NULL,
203  `parametros` varchar(250) DEFAULT NULL,
204  `comentarios` text,
205  `activo` tinyint(1) NOT NULL,
206  PRIMARY KEY (`idcomando`)
207) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
208
209--
210-- Volcar la base de datos para la tabla `comandos`
211--
212
213INSERT INTO `comandos` (`idcomando`, `descripcion`, `pagina`, `gestor`, `funcion`, `urlimg`, `aplicambito`, `visuparametros`, `parametros`, `comentarios`, `activo`) VALUES
214(1, 'Arrancar', '../comandos/Arrancar.php', '../comandos/gestores/gestor_Comandos.php', 'Arrancar', '', 31, '', 'nfn;iph;mac', '', 1),
215(2, 'Apagar', '../comandos/Apagar.php', '../comandos/gestores/gestor_Comandos.php', 'Apagar', '', 31, '', 'nfn;iph;mac', '', 1),
216(3, 'Restaurar Imagen', '../comandos/RestaurarImagen.php', '../comandos/gestores/gestor_Comandos.php', 'RestaurarImagen', '', 28, 'dsk;par;idi;nci;ipr;ptc', 'nfn;iph;mac;dsk;par;idi;nci;ipr;ifs;ptc', '', 1),
217(4, 'Crear Imagen', '../comandos/CrearImagen.php', '../comandos/gestores/gestor_Comandos.php', 'CrearImagen', '', 16, 'dsk;par;idi;nci;ipr;cpt', 'nfn;iph;mac;dsk;par;idi;nci;ipr;cpt;', '', 1),
218(5, 'Reiniciar', '../comandos/Reiniciar.php', '../comandos/gestores/gestor_Comandos.php', 'Reiniciar', '', 31, '', 'nfn;iph;mac;', '', 1),
219(6, 'Inventario Hardware', '../comandos/InventarioHardware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioHardware', '', 16, '', 'nfn;iph;mac;', '', 1),
220(7, 'Inventario Software', '../comandos/InventarioSoftware.php', '../comandos/gestores/gestor_Comandos.php', 'InventarioSoftware', '', 16, 'par', 'nfn;iph;mac;par', '', 1),
221(8, 'Ejecutar Script', '../comandos/EjecutarScripts.php', '../comandos/gestores/gestor_Comandos.php', 'EjecutarScript', '', 31, 'iph;tis;dcr;scp', 'nfn;iph;tis;dcr;scp', '', 1),
222(9, 'Iniciar Sesion', '../comandos/IniciarSesion.php', '../comandos/gestores/gestor_Comandos.php', 'IniciarSesion', '', 31, 'par', 'nfn;iph;par', '', 1),
223(10, 'Particionar y Formatear', '../comandos/Configurar.php', '../comandos/gestores/gestor_Comandos.php', 'Configurar', '', 28, 'dsk;cfg;', 'nfn;iph;mac;dsk;cfg;par;cpt;sfi;tam;ope', '', 0);
224
225
226
227-- --------------------------------------------------------
228
229--
230-- Estructura de tabla para la tabla `entidades`
231--
232
233CREATE TABLE IF NOT EXISTS `entidades` (
234  `identidad` int(11) NOT NULL AUTO_INCREMENT,
235  `nombreentidad` varchar(200) NOT NULL DEFAULT '',
236  `comentarios` text,
237  `iduniversidad` int(11) DEFAULT NULL,
238  `grupoid` int(11) DEFAULT NULL,
239  PRIMARY KEY (`identidad`)
240) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
241
242--
243-- Volcar la base de datos para la tabla `entidades`
244--
245
246INSERT INTO `entidades` (`identidad`, `nombreentidad`, `comentarios`, `iduniversidad`, `grupoid`) VALUES
247(1, 'Entidad (Default)', 'Esta Entidad se crea automáticamente en el proceso de instalación de OpenGNSys', 1, 0);
248
249-- --------------------------------------------------------
250
251--
252-- Estructura de tabla para la tabla `entornos`
253--
254
255CREATE TABLE IF NOT EXISTS `entornos` (
256  `identorno` int(11) NOT NULL AUTO_INCREMENT,
257  `ipserveradm` varchar(50) NOT NULL,
258  `portserveradm` int(20) NOT NULL,
259  `protoclonacion` varchar(50) NOT NULL,
260  PRIMARY KEY (`identorno`)
261) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
262
263--
264-- Volcar la base de datos para la tabla `entornos`
265--
266
267INSERT INTO `entornos` (`identorno`, `ipserveradm`, `portserveradm`, `protoclonacion`) VALUES
268(1, 'SERVERIP', 2008, 'UNICAST');
269
270-- --------------------------------------------------------
271
272--
273-- Estructura de tabla para la tabla `estatus`
274--
275
276CREATE TABLE IF NOT EXISTS `estatus` (
277  `idestatus` int(11) NOT NULL AUTO_INCREMENT,
278  `descripcion` varchar(250) NOT NULL DEFAULT '',
279  PRIMARY KEY (`idestatus`)
280) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
281
282--
283-- Volcar la base de datos para la tabla `estatus`
284--
285
286INSERT INTO `estatus` (`idestatus`, `descripcion`) VALUES
287(1, 'P.D.I. ( Profesor)'),
288(2, 'P.A.S.'),
289(3, 'Doctor'),
290(4, 'Alumno'),
291(5, 'Otros');
292
293-- --------------------------------------------------------
294
295--
296-- Estructura de tabla para la tabla `grupos`
297--
298
299CREATE TABLE IF NOT EXISTS `grupos` (
300  `idgrupo` int(11) NOT NULL AUTO_INCREMENT,
301  `nombregrupo` varchar(250) NOT NULL DEFAULT '',
302  `grupoid` int(11) NOT NULL DEFAULT '0',
303  `tipo` tinyint(4) NOT NULL DEFAULT '0',
304  `idcentro` int(11) NOT NULL DEFAULT '0',
305  `iduniversidad` int(11) DEFAULT NULL,
306  `comentarios` text,
307  PRIMARY KEY (`idgrupo`)
308) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
309
310-- --------------------------------------------------------
311
312--
313-- Estructura de tabla para la tabla `gruposordenadores`
314--
315
316CREATE TABLE IF NOT EXISTS `gruposordenadores` (
317  `idgrupo` int(11) NOT NULL AUTO_INCREMENT,
318  `nombregrupoordenador` varchar(250) NOT NULL DEFAULT '',
319  `idaula` int(11) NOT NULL DEFAULT '0',
320  `grupoid` int(11) DEFAULT NULL,
321  `comentarios` text,
322  PRIMARY KEY (`idgrupo`)
323) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
324
325-- --------------------------------------------------------
326
327--
328-- Estructura de tabla para la tabla `hardwares`
329--
330
331CREATE TABLE IF NOT EXISTS `hardwares` (
332  `idhardware` int(11) NOT NULL AUTO_INCREMENT,
333  `idtipohardware` int(11) NOT NULL DEFAULT '0',
334  `descripcion` varchar(250) NOT NULL DEFAULT '',
335  `idcentro` int(11) NOT NULL DEFAULT '0',
336  `grupoid` int(11) DEFAULT NULL,
337  PRIMARY KEY (`idhardware`)
338) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
339
340
341-- --------------------------------------------------------
342
343--
344-- Estructura de tabla para la tabla `iconos`
345--
346
347CREATE TABLE IF NOT EXISTS `iconos` (
348  `idicono` int(11) NOT NULL AUTO_INCREMENT,
349  `urlicono` varchar(200) DEFAULT NULL,
350  `idtipoicono` int(11) DEFAULT NULL,
351  `descripcion` varchar(250) DEFAULT NULL,
352  PRIMARY KEY (`idicono`)
353) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
354
355--
356-- Volcar la base de datos para la tabla `iconos`
357--
358
359INSERT INTO `iconos` (`idicono`, `urlicono`, `idtipoicono`, `descripcion`) VALUES
360(1, 'vga.gif', 1, 'Tarjeta gráfica'),
361(2, 'nic.gif', 1, 'Tarjeta de Red'),
362(3, 'placabase.gif', 1, 'Placas base'),
363(4, 'tsonido.gif', 1, 'Tarjeta de sonido'),
364(5, 'camweb.gif', 1, 'Cámara web'),
365(6, 'logoXP.png', 2, 'Logo Windows XP'),
366(7, 'logolinux.png', 2, 'Logo General de Linux'),
367(8, 'particionar.png', 2, 'Particionar'),
368(9, 'ordenadoroff.png', 2, 'Ordenador apagado'),
369(10, 'ordenadoron.png', 2, 'Ordenador encendido'),
370(11, 'usb.gif', 1, 'Mi icono usb'),
371(12, 'ide.gif', 1, 'Controladores IDE'),
372(13, 'dvdcd.gif', 1, 'Lectoras y grabadoras de DVD'),
373(14, 'audio.gif', 1, 'Dispositivos de audio');
374
375-- --------------------------------------------------------
376
377--
378-- Estructura de tabla para la tabla `idiomas`
379--
380
381CREATE TABLE IF NOT EXISTS `idiomas` (
382  `ididioma` int(11) NOT NULL AUTO_INCREMENT,
383  `descripcion` varchar(100) DEFAULT NULL,
384  `nemonico` char(3) DEFAULT NULL,
385  PRIMARY KEY (`ididioma`)
386) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
387
388--
389-- Volcar la base de datos para la tabla `idiomas`
390--
391
392INSERT INTO `idiomas` (`ididioma`, `descripcion`, `nemonico`) VALUES
393(1, 'Español', 'esp'),
394(2, 'English', 'eng'),
395(3, 'Català', 'cat');
396
397-- --------------------------------------------------------
398
399--
400-- Estructura de tabla para la tabla `imagenes`
401--
402
403CREATE TABLE IF NOT EXISTS `imagenes` (
404  `idimagen` int(11) NOT NULL AUTO_INCREMENT,
405  `nombreca` varchar(50) NOT NULL,
406  `descripcion` varchar(250) NOT NULL DEFAULT '',
407  `idperfilsoft` int(11) DEFAULT NULL,
408  `idcentro` int(11) DEFAULT NULL,
409  `comentarios` text,
410  `grupoid` int(11) DEFAULT NULL,
411  `idrepositorio` int(11) NOT NULL,
412  `numpar` smallint(6) NOT NULL,
413  `codpar` smallint(6) NOT NULL,
414  PRIMARY KEY (`idimagen`)
415) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
416
417-- --------------------------------------------------------
418
419--
420-- Estructura de tabla para la tabla `menus`
421--
422
423CREATE TABLE IF NOT EXISTS `menus` (
424  `idmenu` int(11) NOT NULL AUTO_INCREMENT,
425  `descripcion` varchar(250) NOT NULL DEFAULT '',
426  `idcentro` int(11) NOT NULL DEFAULT '0',
427  `idurlimg` int(11) NOT NULL DEFAULT '0',
428  `titulo` varchar(250) DEFAULT NULL,
429  `coorx` int(11) DEFAULT NULL,
430  `coory` int(11) DEFAULT NULL,
431  `modalidad` tinyint(4) DEFAULT NULL,
432  `scoorx` int(11) DEFAULT NULL,
433  `scoory` int(11) DEFAULT NULL,
434  `smodalidad` tinyint(4) DEFAULT NULL,
435  `comentarios` text,
436  `grupoid` int(11) NOT NULL DEFAULT '0',
437  `htmlmenupub` varchar(250) DEFAULT NULL,
438  `htmlmenupri` varchar(250) DEFAULT NULL,
439  `resolucion` tinyint(4) DEFAULT NULL,
440  PRIMARY KEY (`idmenu`)
441) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
442
443-- --------------------------------------------------------
444
445--
446-- Estructura de tabla para la tabla `nombresos`
447--
448
449CREATE TABLE IF NOT EXISTS `nombresos` (
450  `idnombreso` smallint(11) NOT NULL AUTO_INCREMENT,
451  `nombreso` varchar(250) NOT NULL,
452  `idtiposo` int(11) DEFAULT '0',
453  PRIMARY KEY (`idnombreso`)
454) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
455
456-- --------------------------------------------------------
457
458--
459-- Estructura de tabla para la tabla `ordenadores`
460--
461
462CREATE TABLE IF NOT EXISTS `ordenadores` (
463  `idordenador` int(11) NOT NULL AUTO_INCREMENT,
464  `nombreordenador` varchar(100) DEFAULT NULL,
465  `ip` varchar(16) NOT NULL,
466  `mac` varchar(12) DEFAULT NULL,
467  `idaula` int(11) DEFAULT NULL,
468  `idperfilhard` int(11) DEFAULT NULL,
469  `idrepositorio` int(11) DEFAULT NULL,
470  `grupoid` int(11) DEFAULT NULL,
471  `idmenu` int(11) DEFAULT NULL,
472  `cache` int(11) DEFAULT NULL,
473  `router` varchar(16) NOT NULL,
474  `mascara` varchar(16) NOT NULL,
475  `idproautoexec` int(11) NOT NULL,
476  `arranque` VARCHAR( 30 ) NOT NULL DEFAULT '1',
477  `netiface` enum('eth0','eth1','eth2') DEFAULT 'eth0',
478  `netdriver` VARCHAR( 30 ) NOT NULL DEFAULT 'generic',
479  PRIMARY KEY (`idordenador`)
480) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
481
482
483
484-- --------------------------------------------------------
485
486--
487-- Estructura de tabla para la tabla `ordenadores_particiones`
488--
489
490CREATE TABLE IF NOT EXISTS `ordenadores_particiones` (
491  `idordenador` int(11) NOT NULL,
492  `numpar` tinyint(4) NOT NULL,
493  `codpar` smallint(11) NOT NULL,
494  `tamano` int(11) NOT NULL,
495  `idsistemafichero` smallint(11) NOT NULL,
496  `idnombreso` smallint(11) NOT NULL,
497  `idimagen` int(11) NOT NULL,
498  `idperfilsoft` int(11) NOT NULL,
499  UNIQUE KEY `idordenadornumpar` (`idordenador`,`numpar`)
500) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
501
502-- --------------------------------------------------------
503
504--
505-- Estructura de tabla para la tabla `parametros`
506--
507
508CREATE TABLE IF NOT EXISTS `parametros` (
509  `idparametro` int(11) NOT NULL AUTO_INCREMENT,
510  `nemonico` char(3) NOT NULL,
511  `descripcion` text NOT NULL,
512  `nomidentificador` varchar(64) NOT NULL,
513  `nomtabla` varchar(64) NOT NULL,
514  `nomliteral` varchar(64) NOT NULL,
515  `tipopa` tinyint(1) DEFAULT '0',
516  `visual` tinyint(4) NOT NULL DEFAULT '0',
517  PRIMARY KEY (`idparametro`)
518) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=31 ;
519
520--
521-- Volcar la base de datos para la tabla `parametros`
522--
523
524INSERT INTO `parametros` (`idparametro`, `nemonico`, `descripcion`, `nomidentificador`, `nomtabla`, `nomliteral`, `tipopa`, `visual`) VALUES
525(1, 'nfn', 'Nombre de la función o script a ejecutar en el cliente y que implementa el comando. Es posible que también els ervidor debo ejecutar la misma función como ocurre en el comando "Arrancar" y que implementa el comportamiento del comando en el servidor', '', '', '', 0, 0),
526(2, 'iph', 'Dirección ip de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
527(3, 'ido', 'Identificadores de los ordenadores a los que se envía el comando', '', '', '', 0, 0),
528(4, 'mac', 'Direcciones macs de los clientes a los que se le envía el comando', '', '', '', 0, 0),
529(5, 'idc', 'Unidad organizativa', 'idcentro', 'centros', '', 1, 0),
530(6, 'ida', 'Aula', 'idaula', 'aulas', 'nombreaula', 1, 0),
531(18, 'cfg', 'Configuración', '', '', '', 2, 1),
532(7, 'dsk', 'Disco', '', '', '', 0, 1),
533(8, 'par', 'Partición', '', '', '', 0, 1),
534(9, 'ifh', 'Perfil Hardware', 'idperfilhard', 'perfileshard', 'descripcion', 1, 1),
535(10, 'ifs', 'Perfil Software', 'idperfilsoft', 'perfilessoft', 'descripcion', 1, 1),
536(11, 'idi', 'Imagen', 'idimagen', 'imagenes', 'descripcion', 1, 1),
537(12, 'nci', 'Nombre canonico', '', '', '', 0, 1),
538(13, 'scp', 'Código a ejecutar en formato script', '', '', '', 0, 0),
539(14, 'npc', 'Nombre del cliente', '', '', '', NULL, 0),
540(15, 'che', 'Tamaño de la cache del cliente', '', '', '', NULL, 0),
541(16, 'exe', 'Identificador del procedimiento que será el que ejecute el cliente al arrancar (Autoexec)', '', '', '', 0, 0),
542(17, 'res', 'Respuesta del comando: Puede tomar los valores 1 o 2 en el caso de que la respuesta sea correcta o que haya un error al ejecutarse.', '', '', '', 0, 0),
543(19, 'ipr', 'Repositorio', 'ip', 'repositorios', 'nombrerepositorio', 1, 1),
544(20, 'cpt', 'Tipo partición', 'codpar', 'tipospar', 'tipopar', 1, 1),
545(21, 'sfi', 'Sistema de fichero', 'idsistemafichero', 'sistemasficheros', 'nemonico', 1, 0),
546(22, 'tam', 'Tamaño', '', '', '', 0, 0),
547(23, 'ope', 'Operación', ';', '', 'Sin operación;Formatear;Ocultar;Mostrar', 3, 1),
548(24, 'nfl', 'Nombre del fichero que se envía o se recibe', '', '', '', 0, 0),
549(25, 'hrd', 'Nombre del archivo de inventario hardware enviado por la red', '', '', '', 0, 0),
550(26, 'sft', 'Nombre del archivo de inventario software enviado por la red', '', '', '', 0, 0),
551(27, 'tpc', 'Tipo de cliente', '', '', '', 0, 0),
552(28, 'scp', 'Código script', '', '', '', 4, 1),
553(30, 'ptc', 'Protocolo de clonación', ';', '', ';Unicast;Multicast;Torrent', 1, 1);
554
555-- --------------------------------------------------------
556
557--
558-- Estructura de tabla para la tabla `perfileshard`
559--
560
561CREATE TABLE IF NOT EXISTS `perfileshard` (
562  `idperfilhard` int(11) NOT NULL AUTO_INCREMENT,
563  `descripcion` varchar(250) NOT NULL DEFAULT '',
564  `comentarios` text,
565  `grupoid` int(11) DEFAULT NULL,
566  `idcentro` int(11) NOT NULL,
567  PRIMARY KEY (`idperfilhard`)
568) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
569
570
571-- --------------------------------------------------------
572
573--
574-- Estructura de tabla para la tabla `perfileshard_hardwares`
575--
576
577CREATE TABLE IF NOT EXISTS `perfileshard_hardwares` (
578  `idperfilhard` int(11) NOT NULL DEFAULT '0',
579  `idhardware` int(11) NOT NULL DEFAULT '0',
580  KEY `idperfilhard` (`idperfilhard`)
581) ENGINE=MyISAM DEFAULT CHARSET=utf8;
582
583-- --------------------------------------------------------
584
585--
586-- Estructura de tabla para la tabla `perfilessoft`
587--
588
589CREATE TABLE IF NOT EXISTS `perfilessoft` (
590  `idperfilsoft` int(11) NOT NULL AUTO_INCREMENT,
591  `descripcion` varchar(250) NOT NULL DEFAULT '',
592  `comentarios` text,
593  `grupoid` int(11) DEFAULT NULL,
594  `idcentro` int(11) NOT NULL,
595  PRIMARY KEY (`idperfilsoft`)
596) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
597
598-- --------------------------------------------------------
599
600--
601-- Estructura de tabla para la tabla `perfilessoft_softwares`
602--
603
604CREATE TABLE IF NOT EXISTS `perfilessoft_softwares` (
605  `idperfilsoft` int(11) NOT NULL DEFAULT '0',
606  `idsoftware` int(11) NOT NULL DEFAULT '0'
607) ENGINE=MyISAM DEFAULT CHARSET=utf8;
608
609-- --------------------------------------------------------
610
611--
612-- Estructura de tabla para la tabla `plataformas`
613--
614
615CREATE TABLE IF NOT EXISTS `plataformas` (
616  `idplataforma` int(11) NOT NULL AUTO_INCREMENT,
617  `plataforma` varchar(250) NOT NULL,
618  PRIMARY KEY (`idplataforma`)
619) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=18 ;
620
621--
622-- Volcar la base de datos para la tabla `plataformas`
623--
624
625INSERT INTO `plataformas` (`idplataforma`, `plataforma`) VALUES
626(1, 'MsDos'),
627(2, 'Windows'),
628(3, 'Linux'),
629(4, 'Mac'),
630(5, 'OS');
631
632-- --------------------------------------------------------
633
634--
635-- Estructura de tabla para la tabla `procedimientos`
636--
637
638CREATE TABLE IF NOT EXISTS `procedimientos` (
639  `idprocedimiento` int(11) NOT NULL AUTO_INCREMENT,
640  `descripcion` varchar(250) NOT NULL DEFAULT '',
641  `urlimg` varchar(250) DEFAULT NULL,
642  `idcentro` int(11) NOT NULL DEFAULT '0',
643  `comentarios` text,
644  `grupoid` int(11) DEFAULT '0',
645  PRIMARY KEY (`idprocedimiento`)
646) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
647
648-- --------------------------------------------------------
649
650--
651-- Estructura de tabla para la tabla `procedimientos_acciones`
652--
653
654CREATE TABLE IF NOT EXISTS `procedimientos_acciones` (
655  `idprocedimientoaccion` int(11) NOT NULL AUTO_INCREMENT,
656  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
657  `orden` smallint(4) DEFAULT NULL,
658  `idcomando` int(11) NOT NULL DEFAULT '0',
659  `parametros` text,
660  `procedimientoid` int(11) NOT NULL,
661  PRIMARY KEY (`idprocedimientoaccion`)
662) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
663
664-- --------------------------------------------------------
665
666--
667-- Estructura de tabla para la tabla `programaciones`
668--
669
670CREATE TABLE IF NOT EXISTS `programaciones` (
671  `idprogramacion` int(11) NOT NULL AUTO_INCREMENT,
672  `tipoaccion` int(11) DEFAULT NULL,
673  `identificador` int(11) DEFAULT NULL,
674  `nombrebloque` varchar(255) DEFAULT NULL,
675  `annos` tinyint(4) DEFAULT NULL,
676  `meses` smallint(4) DEFAULT NULL,
677  `diario` int(11) DEFAULT NULL,
678  `dias` tinyint(4) DEFAULT NULL,
679  `semanas` tinyint(4) DEFAULT NULL,
680  `horas` smallint(4) DEFAULT NULL,
681  `ampm` tinyint(1) DEFAULT NULL,
682  `minutos` tinyint(4) DEFAULT NULL,
683  `segundos` tinyint(4) DEFAULT NULL,
684  `horasini` smallint(4) DEFAULT NULL,
685  `ampmini` tinyint(1) DEFAULT NULL,
686  `minutosini` tinyint(4) DEFAULT NULL,
687  `horasfin` smallint(4) DEFAULT NULL,
688  `ampmfin` tinyint(1) DEFAULT NULL,
689  `minutosfin` tinyint(4) DEFAULT NULL,
690  `suspendida` tinyint(1) DEFAULT NULL,
691  `sesion` int(11) NOT NULL,
692  PRIMARY KEY (`idprogramacion`)
693) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
694
695-- --------------------------------------------------------
696
697--
698-- Estructura de tabla para la tabla `repositorios`
699--
700
701CREATE TABLE IF NOT EXISTS `repositorios` (
702  `idrepositorio` int(11) NOT NULL AUTO_INCREMENT,
703  `nombrerepositorio` varchar(250) NOT NULL,
704  `ip` varchar(15) NOT NULL DEFAULT '',
705  `passguor` varchar(50) NOT NULL DEFAULT '',
706  `pathrepoconf` varchar(250) NOT NULL,
707  `pathrepod` varchar(250) NOT NULL,
708  `pathpxe` varchar(250) NOT NULL,
709  `idcentro` int(11) DEFAULT NULL,
710  `grupoid` int(11) DEFAULT NULL,
711  `comentarios` text,
712  `puertorepo` int(11) NOT NULL,
713  PRIMARY KEY (`idrepositorio`)
714) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
715
716INSERT INTO `repositorios` (`idrepositorio`,`nombrerepositorio`,`ip`,`passguor`,`pathrepoconf`,`pathrepod`,`pathpxe`,`idcentro`,`grupoid`,`comentarios`,`puertorepo`) VALUES
717 (1,'Repositorio (Default)','SERVERIP','','','/opt/opengnsys/admin','/opt/opengnsys/tftpboot/pxelinux.cfg',1,0,'',2002);
718
719
720-- --------------------------------------------------------
721
722--
723-- Estructura de tabla para la tabla `sistemasficheros`
724--
725
726CREATE TABLE IF NOT EXISTS `sistemasficheros` (
727  `idsistemafichero` smallint(11) NOT NULL AUTO_INCREMENT,
728  `descripcion` varchar(50) NOT NULL DEFAULT '',
729  `nemonico` varchar(16) DEFAULT NULL,
730  `codpar` smallint(6) NOT NULL,
731  PRIMARY KEY (`idsistemafichero`)
732) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
733
734-- --------------------------------------------------------
735
736--
737-- Estructura de tabla para la tabla `softwares`
738--
739
740CREATE TABLE IF NOT EXISTS `softwares` (
741  `idsoftware` int(11) NOT NULL AUTO_INCREMENT,
742  `idtiposoftware` int(11) NOT NULL DEFAULT '0',
743  `descripcion` varchar(250) NOT NULL DEFAULT '',
744  `idcentro` int(11) NOT NULL DEFAULT '0',
745  `urlimg` varchar(250) DEFAULT NULL,
746  `idtiposo` int(11) DEFAULT NULL,
747  `grupoid` int(11) DEFAULT NULL,
748  PRIMARY KEY (`idsoftware`)
749) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
750
751-- --------------------------------------------------------
752
753--
754-- Estructura de tabla para la tabla `tareas`
755--
756
757CREATE TABLE IF NOT EXISTS `tareas` (
758  `idtarea` int(11) NOT NULL AUTO_INCREMENT,
759  `descripcion` varchar(250) NOT NULL DEFAULT '',
760  `urlimg` varchar(250) DEFAULT NULL,
761  `idcentro` int(11) NOT NULL DEFAULT '0',
762  `ambito` smallint(6) NOT NULL DEFAULT '0',
763  `idambito` int(11) NOT NULL DEFAULT '0',
764  `restrambito` text NOT NULL,
765  `comentarios` text,
766  `grupoid` int(11) DEFAULT '0',
767  PRIMARY KEY (`idtarea`)
768) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
769
770-- --------------------------------------------------------
771
772--
773-- Estructura de tabla para la tabla `tareas_acciones`
774--
775
776CREATE TABLE IF NOT EXISTS `tareas_acciones` (
777  `idtareaaccion` int(11) NOT NULL AUTO_INCREMENT,
778  `idtarea` int(11) NOT NULL DEFAULT '0',
779  `orden` smallint(6) NOT NULL DEFAULT '0',
780  `idprocedimiento` int(11) NOT NULL DEFAULT '0',
781  `tareaid` int(11) DEFAULT '0',
782  PRIMARY KEY (`idtareaaccion`)
783) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
784
785-- --------------------------------------------------------
786
787--
788-- Estructura de tabla para la tabla `tipohardwares`
789--
790
791CREATE TABLE IF NOT EXISTS `tipohardwares` (
792  `idtipohardware` int(11) NOT NULL AUTO_INCREMENT,
793  `descripcion` varchar(250) NOT NULL DEFAULT '',
794  `urlimg` varchar(250) NOT NULL DEFAULT '',
795  `nemonico` char(3) NOT NULL,
796  `pci` tinyint(1) NOT NULL,
797  PRIMARY KEY (`idtipohardware`)
798) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=17 ;
799
800--
801-- Volcar la base de datos para la tabla `tipohardwares`
802--
803
804INSERT INTO `tipohardwares` (`idtipohardware`, `descripcion`, `urlimg`, `nemonico`, `pci`) VALUES
805(1, 'Placas', '../images/iconos/placabase.gif', 'boa', 0),
806(2, 'Dispositivos Multimedia', '../images/iconos/tsonido.gif', 'mul', 0),
807(3, 'Tarjetas de Red', '../images/iconos/nic.gif', 'net', 0),
808(4, 'Microprocesadores', '../images/iconos/micro.gif', 'cpu', 0),
809(5, 'Memorias', '../images/iconos/confihard.gif', 'mem', 0),
810(7, 'Tarjetas gráficas', '../images/iconos/vga.gif', 'vga', 0),
811(8, 'Discos', '../images/iconos/discoduro.gif', 'dis', 0),
812(9, 'Dispositivos de sonido', '../images/iconos/audio.gif', 'aud', 0),
813(10, 'Marca y modelo del equipo', '../images/iconos/confihard.gif', 'mod', 0),
814(11, 'Modelo y version de la bios', '../images/iconos/confihard.gif', 'bio', 0),
815(12, 'Modelo de grabadora o  grabadora de CD/DVD', '../images/iconos/dvdcd.gif', 'cdr', 0),
816(13, 'Controladores IDE', '../images/iconos/ide.gif', 'ide', 0),
817(14, 'Controladores FireWire', '../images/iconos/confihard.gif', 'fir', 0),
818(15, 'Controladores USB', '../images/iconos/usb.gif', 'usb', 0),
819(16, 'Bus del Sistema', '../images/iconos/confihard.gif', 'bus', 0);
820
821-- --------------------------------------------------------
822
823--
824-- Estructura de tabla para la tabla `tiposoftwares`
825--
826
827CREATE TABLE IF NOT EXISTS `tiposoftwares` (
828  `idtiposoftware` int(11) NOT NULL AUTO_INCREMENT,
829  `descripcion` varchar(250) NOT NULL DEFAULT '',
830  `urlimg` varchar(250) NOT NULL DEFAULT '',
831  PRIMARY KEY (`idtiposoftware`)
832) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
833
834--
835-- Volcar la base de datos para la tabla `tiposoftwares`
836--
837
838INSERT INTO `tiposoftwares` (`idtiposoftware`, `descripcion`, `urlimg`) VALUES
839(1, 'Sistemas Operativos', '../images/iconos/so.gif'),
840(2, 'Aplicaciones', '../images/iconos/aplicaciones.gif'),
841(3, 'Archivos', '../images/iconos/archivos.gif');
842
843-- --------------------------------------------------------
844
845--
846-- Estructura de tabla para la tabla `tiposos`
847--
848
849CREATE TABLE IF NOT EXISTS `tiposos` (
850  `idtiposo` int(11) NOT NULL AUTO_INCREMENT,
851  `tiposo` varchar(250) NOT NULL,
852  `idplataforma` int(11) NOT NULL,
853  PRIMARY KEY (`idtiposo`)
854) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;
855
856--
857-- Volcar la base de datos para la tabla `tiposos`
858--
859
860INSERT INTO `tiposos` (`idtiposo`, `tiposo`, `idplataforma`) VALUES
861(1, 'MsDos 6.0', 1),
862(2, 'Windows 98', 2),
863(3, 'Linux Ubuntu', 3),
864(4, 'Mac', 0),
865(5, 'OS', 0),
866(17, 'Windows XP', 2),
867(18, 'Windows Vista', 2),
868(19, 'Linux Red Hat', 3),
869(20, 'Windows 7', 2);
870
871-- --------------------------------------------------------
872
873--
874-- Estructura de tabla para la tabla `tipospar`
875--
876
877CREATE TABLE IF NOT EXISTS `tipospar` (
878  `codpar` smallint(4) NOT NULL,
879  `tipopar` varchar(250) NOT NULL,
880  `clonable` tinyint(4) NOT NULL,
881  UNIQUE KEY `codpar` (`codpar`)
882) ENGINE=MyISAM DEFAULT CHARSET=utf8;
883
884--
885-- Volcar la base de datos para la tabla `tipospar`
886--
887
888INSERT INTO `tipospar` (`codpar`, `tipopar`, `clonable`) VALUES
889(0, 'EMPTY', 0),
890(1, 'FAT12', 1),
891(5, 'EXTENDED', 0),
892(7, 'NTFS', 1),
893(11, 'FAT32', 1),
894(17, 'HFAT12', 1),
895(22, 'HFAT16', 1),
896(23, 'HNTFS', 1),
897(27, 'HFAT32', 1),
898(130, 'LINUX-SWAP', 0),
899(131, 'LINUX', 1),
900(142, 'LINUX-LVM', 1),
901(191, 'SOLARIS', 1),
902(202, 'CACHE', 0),
903(253, 'LINUX-RAID', 1);
904
905-- --------------------------------------------------------
906
907--
908-- Estructura de tabla para la tabla `universidades`
909--
910
911CREATE TABLE IF NOT EXISTS `universidades` (
912  `iduniversidad` int(11) NOT NULL AUTO_INCREMENT,
913  `nombreuniversidad` varchar(200) NOT NULL DEFAULT '',
914  `comentarios` text,
915  PRIMARY KEY (`iduniversidad`)
916) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
917
918--
919-- Volcar la base de datos para la tabla `universidades`
920--
921
922INSERT INTO `universidades` (`iduniversidad`, `nombreuniversidad`, `comentarios`) VALUES
923(1, 'Universidad default...', 'Esta Universidad se crea automáticamentese en el proceso de instalación de OpenGNSys');
924
925-- --------------------------------------------------------
926
927--
928-- Estructura de tabla para la tabla `urlimagesitems`
929--
930
931CREATE TABLE IF NOT EXISTS `urlimagesitems` (
932  `idurlimagesitems` int(11) NOT NULL AUTO_INCREMENT,
933  `descripcion` varchar(250) NOT NULL DEFAULT '',
934  PRIMARY KEY (`idurlimagesitems`)
935) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
936
937--
938-- Volcar la base de datos para la tabla `urlimagesitems`
939--
940
941
942-- --------------------------------------------------------
943
944--
945-- Estructura de tabla para la tabla `usuarios`
946--
947
948CREATE TABLE IF NOT EXISTS `usuarios` (
949  `idusuario` int(11) NOT NULL AUTO_INCREMENT,
950  `usuario` varchar(50) NOT NULL DEFAULT '',
951  `pasguor` varchar(50) NOT NULL DEFAULT '',
952  `nombre` varchar(200) DEFAULT NULL,
953  `email` varchar(200) DEFAULT NULL,
954  `ididioma` int(11) DEFAULT NULL,
955  `idtipousuario` tinyint(4) DEFAULT NULL,
956  PRIMARY KEY (`idusuario`)
957) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
958
959--
960-- Volcar la base de datos para la tabla `usuarios`
961--
962
963INSERT INTO `usuarios` (`idusuario`, `usuario`, `pasguor`, `nombre`, `email`, `ididioma`, `idtipousuario`) VALUES
964(1, 'DBUSER', 'DBPASSWORD', 'Usuario de la base de datos MySql', '', 1, 1);
965
966
967CREATE TABLE IF NOT EXISTS `itemboot` (
968  `label` varchar(50) collate utf8_spanish_ci NOT NULL,
969  `kernel` varchar(100) collate utf8_spanish_ci NOT NULL,
970  `append` varchar(500) collate utf8_spanish_ci NOT NULL,
971  PRIMARY KEY  (`label`)
972) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
973
974
975
976INSERT INTO `itemboot` (`label`, `kernel`, `append`) VALUES
977('1', 'KERNEL syslinux/chain.c32', 'APPEND hd0'),
978('1_localboot', 'LOCALBOOT 0', ' '),
979('11', 'KERNEL syslinux/chain.c32', 'APPEND hd0 1'),
980('12', 'KERNEL syslinux/chain.c32', 'APPEND hd0 2'),
981('ogClientUser', 'KERNEL ogclient/ogvmlinuz', 'APPEND initrd=ogclient/oginitrd.img ro boot=oginit vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false'),
982('ogClientAdmin', 'KERNEL ogclient/ogvmlinuz', 'APPEND initrd=ogclient/oginitrd.img ro boot=oginit vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=true ogdebug=true'),
983('ogInitrdUser', 'KERNEL linux', 'APPEND initrd=initrd.gz ip=dhcp ro vga=788 irqpoll acpi=on boot=user '),
984('ogInitrdAdmin', 'KERNEL linux', 'APPEND initrd=initrd.gz ip=dhcp ro vga=788 irqpoll acpi=on boot=admin ');
985
986
987
988
989CREATE TABLE IF NOT EXISTS `menuboot` (
990  `label` varchar(50) collate utf8_spanish_ci NOT NULL,
991  `prompt` int(11) NOT NULL,
992  `timeout` int(30) default NULL,
993  `description` varchar(50) collate utf8_spanish_ci NOT NULL,
994  PRIMARY KEY  (`label`)
995) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
996
997
998
999INSERT INTO `menuboot` (`label`, `prompt`, `timeout`, `description`) VALUES
1000('1', 0, 10, 'mbr 1hd'),
1001('11', 0, 10, '1hd 1particion'),
1002('12', 0, 10, '1hd 2particion'),
1003('pxe', 0, 10, 'og client - user'),
1004('pxeADMIN', 0, 10, 'OgClient - admin');
1005
1006
1007CREATE TABLE IF NOT EXISTS `menuboot_itemboot` (
1008  `labelmenu` varchar(100) NOT NULL,
1009  `labelitem` varchar(100) NOT NULL,
1010  `default` tinyint(10) NOT NULL
1011) ENGINE=MyISAM DEFAULT CHARSET=latin1;
1012
1013
1014INSERT INTO `menuboot_itemboot` (`labelmenu`, `labelitem`, `default`) VALUES
1015('0', '0', 0),
1016('11', '11', 0),
1017('12', '12', 0),
1018('1', '1', 0),
1019('pxe', 'ogClientUser', 0),
1020('pxeADMIN', 'ogClientAdmin', 0);
1021
Note: See TracBrowser for help on using the repository browser.