phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: news_admin/setup setup.inc.php,1.9,1.10 tables_c


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: news_admin/setup setup.inc.php,1.9,1.10 tables_current.inc.php,1.3,1.4 tables_update.inc.php,1.1,1.2
Date: Mon, 02 Jun 2003 23:15:14 -0400

Update of /cvsroot/phpgroupware/news_admin/setup
In directory subversions:/tmp/cvs-serv13424/setup

Modified Files:
        setup.inc.php tables_current.inc.php tables_update.inc.php 
Log Message:
ACL
configurable RSS exports
clean up


Index: setup.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/news_admin/setup/setup.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** setup.inc.php       23 Oct 2002 20:47:31 -0000      1.9
--- setup.inc.php       3 Jun 2003 03:15:12 -0000       1.10
***************
*** 14,35 ****
        /* Basic information about this app */
        $setup_info['news_admin']['name']      = 'news_admin';
!       $setup_info['news_admin']['version']   = '0.8.1.002';
        $setup_info['news_admin']['app_order'] = 4;
        $setup_info['news_admin']['enable']    = 1;
  
        /* The tables this app creates */
!       $setup_info['news_admin']['tables']    = array(
!               'phpgw_news'
!       );
  
        /* The hooks this app includes, needed for hooks registration */
        $setup_info['news_admin']['hooks'][] = 'admin';
        $setup_info['news_admin']['hooks'][] = 'home';
-       $setup_info['news_admin']['hooks'][] = 'website_mid';
  
        /* Dependencies for this app to work */
        $setup_info['news_admin']['depends'][] = array(
                 'appname' => 'phpgwapi',
!                'versions' => Array('0.9.13', '0.9.14','0.9.15')
        );
  ?>
--- 14,33 ----
        /* Basic information about this app */
        $setup_info['news_admin']['name']      = 'news_admin';
!       //$setup_info['news_admin']['title']     = 'News Admin';
!       $setup_info['news_admin']['version']   = '0.9.14.501';
        $setup_info['news_admin']['app_order'] = 4;
        $setup_info['news_admin']['enable']    = 1;
  
        /* The tables this app creates */
!       $setup_info['news_admin']['tables']    = array('phpgw_news');
  
        /* The hooks this app includes, needed for hooks registration */
        $setup_info['news_admin']['hooks'][] = 'admin';
        $setup_info['news_admin']['hooks'][] = 'home';
  
        /* Dependencies for this app to work */
        $setup_info['news_admin']['depends'][] = array(
                 'appname' => 'phpgwapi',
!                'versions' => Array('0.9.13', '0.9.14', '0.9.15')
        );
  ?>

Index: tables_current.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/news_admin/setup/tables_current.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** tables_current.inc.php      18 Jul 2001 05:06:39 -0000      1.3
--- tables_current.inc.php      3 Jun 2003 03:15:12 -0000       1.4
***************
*** 21,36 ****
                        'fd' => array(
                                'news_id' => array('type' => 'auto','nullable' 
=> False),
!                               'news_date' => array('type' => 'int', 
'precision' => 4,'nullable' => True),
!                               'news_subject' => array('type' => 'varchar', 
'precision' => 255,'nullable' => True),
!                               'news_submittedby' => array('type' => 
'varchar', 'precision' => 255,'nullable' => True),
                                'news_content' => array('type' => 
'blob','nullable' => True),
!                               'news_status' => array('type' => 'varchar', 
'precision' => 16,'nullable' => True),
!                               'news_cat' => array('type' => 'int', 
'precision' => 4,'nullable' => True)
                        ),
                        'pk' => array('news_id'),
                        'fk' => array(),
                        'ix' => array(),
                        'uc' => array()
!               )
        );
  ?>
--- 21,55 ----
                        'fd' => array(
                                'news_id' => array('type' => 'auto','nullable' 
=> False),
!                               'news_date' => array('type' => 
'int','precision' => '4','nullable' => True),
!                               'news_subject' => array('type' => 
'varchar','precision' => '255','nullable' => True),
!                               'news_submittedby' => array('type' => 
'varchar','precision' => '255','nullable' => True),
                                'news_content' => array('type' => 
'blob','nullable' => True),
!                               'news_status' => array('type' => 
'varchar','precision' => '16','nullable' => True),
!                               'news_cat' => array('type' => 'int','precision' 
=> '4','nullable' => True),
!                               'news_teaser' => array('type' => 
'varchar','precision' => '255','nullable' => True)
                        ),
                        'pk' => array('news_id'),
                        'fk' => array(),
+                       'ix' => array('news_date','news_subject'),
+                       'uc' => array()
+               ),
+               'phpgw_news_export' => array(
+                       'fd' => array(
+                               'cat_id' => array('type' => 'int','precision' 
=> '4','nullable' => False),
+                               //export_types: 0 no export, 1 rss091, 2 rss1, 
3 rss2
+                               'export_type' => array('type' => 
'int','precision' => '2','nullable' => True),
+                               'export_itemsyntax' => array('type' => 
'int','precision' => '2','nullable' => True),
+                               'export_title' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_link' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_description' => array('type' => 'text', 
'nullable' => True),
+                               'export_img_title' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_img_url' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_img_link' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                       ),
+                       'pk' => array('cat_id'),
+                       'fk' => array(),
                        'ix' => array(),
                        'uc' => array()
!               ),
        );
  ?>

Index: tables_update.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/news_admin/setup/tables_update.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** tables_update.inc.php       1 Jul 2001 18:40:55 -0000       1.1
--- tables_update.inc.php       3 Jun 2003 03:15:12 -0000       1.2
***************
*** 48,50 ****
--- 48,90 ----
  
  
+ 
+ 
+       $test[] = '0.8.1.002';
+       function news_admin_upgrade0_8_1_002()
+       {
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_news','news_teaser',array(
+                       'type' => 'varchar',
+                       'precision' => '255',
+                       'nullable' => True
+               ));
+ 
+ 
+               $GLOBALS['setup_info']['news_admin']['currentver'] = 
'0.9.14.500';
+               return $GLOBALS['setup_info']['news_admin']['currentver'];
+       }
+ 
+       $test[] = '0.9.14.500';
+       function news_admin_upgrade0_9_14_500()
+       {
+               
$GLOBALS['phpgw_setup']->oProc->CreateTable('phpgw_news_export',array(
+                       'fd' => array(
+                               'cat_id' => array('type' => 'int','precision' 
=> '4','nullable' => False),
+                               'export_type' => array('type' => 
'int','precision' => '2','nullable' => True),
+                               'export_itemsyntax' => array('type' => 
'int','precision' => '2','nullable' => True),
+                               'export_title' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_link' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_description' => array('type' => 'text', 
'nullable' => True),
+                               'export_img_title' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_img_url' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                               'export_img_link' => array('type' => 
'varchar','precision' => '255','nullable' => True),
+                       ),
+                       'pk' => array('cat_id'),
+                       'fk' => array(),
+                       'ix' => array(),
+                       'uc' => array()
+               ));
+ 
+               $GLOBALS['setup_info']['news_admin']['currentver'] = 
'0.9.14.501';
+               return $GLOBALS['setup_info']['news_admin']['currentver'];
+       }
  ?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]