Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: MTIME problem setting to NOT NULL  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
MTIME problem setting to NOT NULL
« on: October 10, 2005, 12:37:59 am »

While transfering my database I encountered a problem with my new phpmyadmin.

While using:

Code: [Select]
ALTER TABLE `cpg131_pictures` ADD `mtime` TIMESTAMP NOT NULL AFTER `hits` ;
I get the restult

Field    type                 atrr                   Null              default            Extra
mtime timestamp(14)                           YES             NULL

So it seems NOT NULL is not supported ???

Could this cause a problem in the future?




 
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: MTIME problem setting to NOT NULL
« Reply #1 on: October 10, 2005, 01:18:28 am »

I would suggest manually edit your Pictures table so that the Mtime field looks like:


Field                :    mtime
Type               :    timestamp
Collation           :
Attributes        :    ON UPDATE CURRENT_TIMESTAMP
Null                 :    No
Default            :    CURRENT_TIMESTAMP
Extra               :


Dennis
Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: MTIME problem setting to NOT NULL
« Reply #2 on: October 10, 2005, 02:11:12 pm »

Well uhmmm..... thats the point I always do such things manually but it doenst accept the settings

Original on my old server the statement was

`mtime` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

But my new host (same version phpmyadmin) doesn't accept the CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP so I checked the original setup script which said  mtime timestamp(14) NOT NULL,

But will try severals things today to make it somehow correct, my concern at the moment is if this will cause a problem if I really cant change it

« Last Edit: October 10, 2005, 03:54:41 pm by xplicit »
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: MTIME problem setting to NOT NULL
« Reply #3 on: October 10, 2005, 02:17:05 pm »

the new phpmyadmin has a dropdown in export - 'SQL export compatibility' -> try setting it to MYSQL40

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: MTIME problem setting to NOT NULL
« Reply #4 on: October 10, 2005, 03:54:22 pm »

Ok seems I got to live with it :)

Removed the complete picture table, exported my old one with compatiblility MYSQL40 but get same result while importing this at my new host.

I guesss I have to live with it :)

Will change my testing server to see what the effect will with the "wrong" settings
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: MTIME problem setting to NOT NULL
« Reply #5 on: October 10, 2005, 04:11:03 pm »

try to remove   
Code: [Select]
AFTER `hits`
Pages: [1]   Go Up
 

Page created in 0.045 seconds with 19 queries.