• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ERXMigrationTable.newColumn does not set default value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXMigrationTable.newColumn does not set default value


  • Subject: ERXMigrationTable.newColumn does not set default value
  • From: Helmut Schottmüller <email@hidden>
  • Date: Wed, 9 Apr 2008 19:04:12 +0200

Hi,

I tried to update an existing Model (PostGreSQL) by adding a TEXT field which shouldn't be NULL.
In the upgrade method I used


table.newColumn("responsible", java.sql.Types.LONGVARCHAR, 0, 0, 0, false, "", "default");

to fill the new field with a default value "default" to deal with the already existing datasets.
But I always get an org.postgresql.util.PSQLException: ERROR: column "responsible" contains null values.


Any hints what I did wrong?

Regards,
Helmut

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ERXMigrationTable.newColumn does not set default value
      • From: Mike Schrag <email@hidden>
  • Prev by Date: Re: Leaving WebObjects
  • Next by Date: Fwd: Leaving WebObjects
  • Previous by thread: Re: migrations with booleans and postgresql
  • Next by thread: Re: ERXMigrationTable.newColumn does not set default value
  • Index(es):
    • Date
    • Thread