Skip to Content.
Sympa Menu

devel - Re: [sympa-users] [sympa-developpers] [sympa-commits] sympa[12015] branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm : [-dev] Restoring previous key for stat_counter_table.

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] [sympa-developpers] [sympa-commits] sympa[12015] branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm : [-dev] Restoring previous key for stat_counter_table.
  • Date: Wed, 04 Mar 2015 14:10:56 +0100

Well, I attempted to install the lmatest beta on a production server today and had to roll back to previous version. The upgrade part regarding archive access parameters is buggy and made the upgrader to crash.

I have an idea what it can be.

I'll have a look at it soon.

Regards,

David

Le 04/03/15 12:22, David Verdin a écrit :
address@concealed">

Le 04/03/15 12:07, IKEDA Soji a écrit :
Hi,
[-dev] Restoring previous key for stat_counter_table. The composed primary key proposed breaks upgrade for previous install, which don't necessary match the constraints defined by this key.
            
I suppose it won't work anyway, because this column won't allow Null.
How about making it auto-increment?
Yes, it is the solution.
I didn't notice and dumbly tagged the beta 7...

I can still update our own servers until we tag beta 8...

Regards,

David
Regards,
--- Soji
2015/03/04 18:33、address@concealed のメッセージ:

sympa[12015] branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm: [-dev] Restoring previous key for stat_counter_table.
Revision
12015
Author
david.verdin
Date
2015-03-04 10:33:56 +0100 (mer. 04 mars 2015)

Log Message

[-dev] Restoring previous key for stat_counter_table. The composed primary key proposed breaks upgrade for previous install, which don't necessary match the constraints defined by this key.

Modified Paths

  • branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm

Diff

Modified: branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm (12014 => 12015)


--- branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm	2015-03-04 08:33:06 UTC (rev 12014)
+++ branches/sympa-6.2-branch/src/lib/Sympa/DatabaseDescription.pm	2015-03-04 09:33:56 UTC (rev 12015)
@@ -734,18 +734,17 @@
     },
     'stat_counter_table' => {
         'fields' => {
-            #'id_counter' => {
-            #    'struct'   => 'bigint(20)',
-            #    'doc'      => '',
-            #    'order'    => 1,
-            #    'primary'  => 1,
-            #    'not_null' => 1,
-            #},
+            'id_counter' => {
+                'struct'   => 'bigint(20)',
+                'doc'      => '',
+                'order'    => 1,
+                'primary'  => 1,
+                'not_null' => 1,
+            },
             'beginning_date_counter' => {
                 'struct'   => 'int(11)',
                 'doc'      => '',
                 'order'    => 2,
-                'primary'  => 1,
                 'not_null' => 1,
             },
             'end_date_counter' => {
@@ -756,21 +755,18 @@
             'data_counter' => {
                 'struct'   => 'varchar(50)',
                 'doc'      => '',
-                'primary'  => 1,
                 'not_null' => 1,
                 'order'    => 3,
             },
             'robot_counter' => {
                 'struct'   => $robot_struct,
                 'doc'      => '',
-                'primary'  => 1,
                 'not_null' => 1,
                 'order'    => 4,
             },
             'list_counter' => {
                 'struct'  => $list_struct,
                 'doc'     => '',
-                'primary' => 1,
                 'order'   => 5,
             },
             #'variation_counter' => {

--
A bug in Sympa? Quick! To the bug tracker!

 
David Verdin
Études et projets applicatifs
 

Tél : +33 2 23 23 69 71
Fax : +33 2 23 23 71 21
 

www.renater.fr
RENATER
263 Avenue du Gal Leclerc
35042 Rennes Cedex




--
A bug in Sympa? Quick! To the bug tracker!

 
David Verdin
Études et projets applicatifs
 
Tél : +33 2 23 23 69 71
Fax : +33 2 23 23 71 21
 
www.renater.fr
RENATER
263 Avenue du Gal Leclerc
35042 Rennes Cedex



Attachment: png3bjE96uQuv.png
Description: PNG image

PNG image

Attachment: smime.p7s
Description: Signature cryptographique S/MIME




Archive powered by MHonArc 2.6.19+.

Top of Page