source: sipp/0.3-stable-modules/entes_detail_workflow/entes_detail_workflow.install @ e51826a

0.3-stable
Last change on this file since e51826a was 5f5e921, checked in by José Gregorio Puentes <jpuentes@…>, 9 años ago

se creo una vista para listar los comentarios realizados a los campos, asi como se mejoro este proceso

  • Propiedad mode establecida a 100644
File size: 4.0 KB
Línea 
1<?php
2  /**
3  * Modulo para la gestión de los detalles de comentarios en workflow
4  * Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana
5  * @file entes_detail_workflow.install
6  * Drupal part Module to code ente planificador module
7  * Copyright 2011 Sistema Automatizado para la Planificación Estratégico-Situacional en la Administración Pública Venezolana (CENDITEL)
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
22  *
23  * @author Cenditel Merida - Msc. Juan Vizcarrondo
24  * @date 2015-05-21 // (a&#241;o-mes-dia)
25  * @version 0.2 // (0.1)
26  *
27  */
28/*
29 * Implementation of hook_install()
30 */
31function entes_detail_workflow_install() {
32  // Notify content module when this module is uninstalled.
33  drupal_install_schema('entes_detail_workflow');
34}
35
36/*
37 * Implementation of hook_uninstall()
38 */
39function entes_detail_workflow_uninstall() {
40  drupal_uninstall_schema('entes_detail_workflow');
41  db_query("DELETE FROM {variable} WHERE name LIKE '%s'", 'entes_detail_workflow_r%');
42}
43
44/*
45 * Implementation of hook_schema
46 */
47function entes_detail_workflow_schema() {
48  $schema['entes_detail_workflow'] = array(
49    'description' => 'proyectos reformula.',
50    'fields' => array(
51      'id' => array(
52        'description' => 'id de la entidad a que se le hace el woirkflow.',
53        'type' => 'int',
54        'unsigned' => TRUE,
55        'not null' => TRUE,
56        'default' => 0,
57      ),
58      'vid' => array(
59        'description' => 'vid de la version de la entidad a que se le hace el woirkflow.',
60        'type' => 'int',
61        'unsigned' => TRUE,
62        'not null' => FALSE,
63        'default' => 0,
64      ),
65      'sid' => array(
66        'description' => 'El id del del cambio de workflow.',
67        'type' => 'int',
68        'unsigned' => TRUE,
69        'not null' => TRUE,
70        'default' => 0,
71      ),
72      'active' => array(
73        'description' => 'El id del del cambio de workflow.',
74        'type' => 'int',
75        'unsigned' => TRUE,
76        'not null' => FALSE,
77        'default' => 0,
78      ),
79      'time' => array(
80        'description' => 'El id del del cambio de workflow.',
81        'type' => 'int',
82        'unsigned' => TRUE,
83        'not null' => FALSE,
84        'default' => 0,
85      ),
86      'tipo' => array(
87        'type' => 'varchar',
88        'description' => 'El tipo de entidad.',
89        'length' => 255,
90        'not null' => FALSE,
91        'default' => ''
92      ),
93      'field_name' => array(
94        'type' => 'varchar',
95        'description' => 'El tipo de entidad.',
96        'length' => 255,
97        'not null' => TRUE,
98        'default' => ''
99      ),
100      'hid' => array(
101        'description' => 'El id del historico del worflow.',
102        'type' => 'int',
103        'unsigned' => TRUE,
104        'not null' => FALSE,
105        'default' => 0,
106      ),
107      'comentario' => array(
108        'type' => 'text',
109        'size' => 'big',
110        'not null' => FALSE,
111        'default' => ''
112      ),
113    ),
114    'indexes' => array(
115      'id' => array('id'),
116      'sid' => array('sid'),
117      'tipo' => array('tipo'),
118      'field_name' => array('field_name'),
119      'id_sid' => array('id', 'sid'),
120      'id_tipo' => array('id', 'tipo'),
121      'id_field_name' => array('id', 'field_name'),
122      'id_active_field_name' => array('id', 'active'),
123    ),
124  );
125  return $schema;
126}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.