From 308e5745d79857ddce55dfe441dfb2732e9b2670 Mon Sep 17 00:00:00 2001 From: pb Date: Wed, 19 Jan 2011 02:03:40 +0000 Subject: [PATCH] Moving oldaddress to simpleaddress and 1. part of refactoring. git-svn-id: https://svn.libreccm.org/ccm/trunk@688 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms-types-simpleaddress/.svnignore | 1 + ccm-cms-types-simpleaddress/application.xml | 24 ++ .../doc/iso-country.txt | 241 +++++++++++++ .../doc/make-insert.pl | 18 + .../com/arsdigita/content-types/Address.pdl | 57 +++ .../default/insert-iso-countries.sql | 259 ++++++++++++++ .../default/upgrade/address-upgrade-1.sql | 17 + .../oracle-se-create.sql | 22 ++ .../oracle-se/upgrade/address-upgrade-2.sql | 24 ++ .../postgres-create.sql | 24 ++ .../postgres/upgrade/address-upgrade-2.sql | 50 +++ .../upgrade/oracle-se-1.sql | 20 ++ .../upgrade/oracle-se-2.sql | 20 ++ .../upgrade/postgres-1.sql | 22 ++ .../upgrade/postgres-2.sql | 22 ++ .../cms/contenttypes/SimpleAddress.xml | 29 ++ .../src/ccm-cms-types-simpleaddress.config | 5 + .../src/ccm-cms-types-simpleaddress.load | 16 + .../src/ccm-cms-types-simpleaddress.upgrade | 5 + .../cms/contenttypes/IsoCountry.java | 113 ++++++ .../cms/contenttypes/SimpleAddress.java | 230 ++++++++++++ ...eAddressAddressConfig_parameter.properties | 9 + .../cms/contenttypes/SimpleAddressConfig.java | 55 +++ .../SimpleAddressInitializer.java | 77 ++++ .../cms/contenttypes/SimpleAddressLoader.java | 43 +++ .../SimpleAddressResources.properties | 18 + .../SimpleAddressResources_de.properties | 22 ++ .../ui/SimpleAddressPropertiesStep.java | 153 ++++++++ .../ui/SimpleAddressPropertyForm.java | 328 ++++++++++++++++++ .../util/SimpleAddressGlobalizationUtil.java | 53 +++ .../util/SimpleAddressResourceBundle.java | 41 +++ .../arsdigita/cms/contenttypes/Address.xsl | 111 ++++++ 32 files changed, 2129 insertions(+) create mode 100755 ccm-cms-types-simpleaddress/.svnignore create mode 100755 ccm-cms-types-simpleaddress/application.xml create mode 100755 ccm-cms-types-simpleaddress/doc/iso-country.txt create mode 100755 ccm-cms-types-simpleaddress/doc/make-insert.pl create mode 100755 ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/Address.pdl create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/insert-iso-countries.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/upgrade/address-upgrade-1.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se-create.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se/upgrade/address-upgrade-2.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres-create.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres/upgrade/address-upgrade-2.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-1.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-2.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-1.sql create mode 100755 ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-2.sql create mode 100755 ccm-cms-types-simpleaddress/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SimpleAddress.xml create mode 100755 ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.config create mode 100755 ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.load create mode 100644 ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.upgrade create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/IsoCountry.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddress.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressAddressConfig_parameter.properties create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressConfig.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressInitializer.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressLoader.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressResources.properties create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/SimpleAddressResources_de.properties create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/ui/SimpleAddressPropertiesStep.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/ui/SimpleAddressPropertyForm.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/util/SimpleAddressGlobalizationUtil.java create mode 100755 ccm-cms-types-simpleaddress/src/com/arsdigita/cms/contenttypes/util/SimpleAddressResourceBundle.java create mode 100755 ccm-cms-types-simpleaddress/web/static/content-types/com/arsdigita/cms/contenttypes/Address.xsl diff --git a/ccm-cms-types-simpleaddress/.svnignore b/ccm-cms-types-simpleaddress/.svnignore new file mode 100755 index 000000000..378eac25d --- /dev/null +++ b/ccm-cms-types-simpleaddress/.svnignore @@ -0,0 +1 @@ +build diff --git a/ccm-cms-types-simpleaddress/application.xml b/ccm-cms-types-simpleaddress/application.xml new file mode 100755 index 000000000..a8d818f31 --- /dev/null +++ b/ccm-cms-types-simpleaddress/application.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + The old Address Content Type for the Red Hat CCM CMS. + + diff --git a/ccm-cms-types-simpleaddress/doc/iso-country.txt b/ccm-cms-types-simpleaddress/doc/iso-country.txt new file mode 100755 index 000000000..98ad84776 --- /dev/null +++ b/ccm-cms-types-simpleaddress/doc/iso-country.txt @@ -0,0 +1,241 @@ +This list states the country names (official short names in English) in alphabetical order as given in ISO 3166-1 and the corresponding ISO 3166-1-alpha-2 code elements. The list is updated whenever a change to the official code list in ISO 3166-1 is effected by the ISO 3166/MA. It lists 239 official short names and code elements. One line of text contains one entry. A country name and its code element are separated by a semicolon (;). + +AFGHANISTAN;AF +ALBANIA;AL +ALGERIA;DZ +AMERICAN SAMOA;AS +ANDORRA;AD +ANGOLA;AO +ANGUILLA;AI +ANTARCTICA;AQ +ANTIGUA AND BARBUDA;AG +ARGENTINA;AR +ARMENIA;AM +ARUBA;AW +AUSTRALIA;AU +AUSTRIA;AT +AZERBAIJAN;AZ +BAHAMAS;BS +BAHRAIN;BH +BANGLADESH;BD +BARBADOS;BB +BELARUS;BY +BELGIUM;BE +BELIZE;BZ +BENIN;BJ +BERMUDA;BM +BHUTAN;BT +BOLIVIA;BO +BOSNIA AND HERZEGOVINA;BA +BOTSWANA;BW +BOUVET ISLAND;BV +BRAZIL;BR +BRITISH INDIAN OCEAN TERRITORY;IO +BRUNEI DARUSSALAM;BN +BULGARIA;BG +BURKINA FASO;BF +BURUNDI;BI +CAMBODIA;KH +CAMEROON;CM +CANADA;CA +CAPE VERDE;CV +CAYMAN ISLANDS;KY +CENTRAL AFRICAN REPUBLIC;CF +CHAD;TD +CHILE;CL +CHINA;CN +CHRISTMAS ISLAND;CX +COCOS (KEELING) ISLANDS;CC +COLOMBIA;CO +COMOROS;KM +CONGO;CG +CONGO, THE DEMOCRATIC REPUBLIC OF THE;CD +COOK ISLANDS;CK +COSTA RICA;CR +COTE D'IVOIRE;CI +CROATIA;HR +CUBA;CU +CYPRUS;CY +CZECH REPUBLIC;CZ +DENMARK;DK +DJIBOUTI;DJ +DOMINICA;DM +DOMINICAN REPUBLIC;DO +ECUADOR;EC +EGYPT;EG +EL SALVADOR;SV +EQUATORIAL GUINEA;GQ +ERITREA;ER +ESTONIA;EE +ETHIOPIA;ET +FALKLAND ISLANDS (MALVINAS);FK +FAROE ISLANDS;FO +FIJI;FJ +FINLAND;FI +FRANCE;FR +FRENCH GUIANA;GF +FRENCH POLYNESIA;PF +FRENCH SOUTHERN TERRITORIES;TF +GABON;GA +GAMBIA;GM +GEORGIA;GE +GERMANY;DE +GHANA;GH +GIBRALTAR;GI +GREECE;GR +GREENLAND;GL +GRENADA;GD +GUADELOUPE;GP +GUAM;GU +GUATEMALA;GT +GUINEA;GN +GUINEA-BISSAU;GW +GUYANA;GY +HAITI;HT +HEARD ISLAND AND MCDONALD ISLANDS;HM +HOLY SEE (VATICAN CITY STATE);VA +HONDURAS;HN +HONG KONG;HK +HUNGARY;HU +ICELAND;IS +INDIA;IN +INDONESIA;ID +IRAN, ISLAMIC REPUBLIC OF;IR +IRAQ;IQ +IRELAND;IE +ISRAEL;IL +ITALY;IT +JAMAICA;JM +JAPAN;JP +JORDAN;JO +KAZAKHSTAN;KZ +KENYA;KE +KIRIBATI;KI +KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF;KP +KOREA, REPUBLIC OF;KR +KUWAIT;KW +KYRGYZSTAN;KG +LAO PEOPLE'S DEMOCRATIC REPUBLIC;LA +LATVIA;LV +LEBANON;LB +LESOTHO;LS +LIBERIA;LR +LIBYAN ARAB JAMAHIRIYA;LY +LIECHTENSTEIN;LI +LITHUANIA;LT +LUXEMBOURG;LU +MACAO;MO +MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF;MK +MADAGASCAR;MG +MALAWI;MW +MALAYSIA;MY +MALDIVES;MV +MALI;ML +MALTA;MT +MARSHALL ISLANDS;MH +MARTINIQUE;MQ +MAURITANIA;MR +MAURITIUS;MU +MAYOTTE;YT +MEXICO;MX +MICRONESIA, FEDERATED STATES OF;FM +MOLDOVA, REPUBLIC OF;MD +MONACO;MC +MONGOLIA;MN +MONTSERRAT;MS +MOROCCO;MA +MOZAMBIQUE;MZ +MYANMAR;MM +NAMIBIA;NA +NAURU;NR +NEPAL;NP +NETHERLANDS;NL +NETHERLANDS ANTILLES;AN +NEW CALEDONIA;NC +NEW ZEALAND;NZ +NICARAGUA;NI +NIGER;NE +NIGERIA;NG +NIUE;NU +NORFOLK ISLAND;NF +NORTHERN MARIANA ISLANDS;MP +NORWAY;NO +OMAN;OM +PAKISTAN;PK +PALAU;PW +PALESTINIAN TERRITORY, OCCUPIED;PS +PANAMA;PA +PAPUA NEW GUINEA;PG +PARAGUAY;PY +PERU;PE +PHILIPPINES;PH +PITCAIRN;PN +POLAND;PL +PORTUGAL;PT +PUERTO RICO;PR +QATAR;QA +REUNION;RE +ROMANIA;RO +RUSSIAN FEDERATION;RU +RWANDA;RW +SAINT HELENA;SH +SAINT KITTS AND NEVIS;KN +SAINT LUCIA;LC +SAINT PIERRE AND MIQUELON;PM +SAINT VINCENT AND THE GRENADINES;VC +SAMOA;WS +SAN MARINO;SM +SAO TOME AND PRINCIPE;ST +SAUDI ARABIA;SA +SENEGAL;SN +SEYCHELLES;SC +SIERRA LEONE;SL +SINGAPORE;SG +SLOVAKIA;SK +SLOVENIA;SI +SOLOMON ISLANDS;SB +SOMALIA;SO +SOUTH AFRICA;ZA +SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS;GS +SPAIN;ES +SRI LANKA;LK +SUDAN;SD +SURINAME;SR +SVALBARD AND JAN MAYEN;SJ +SWAZILAND;SZ +SWEDEN;SE +SWITZERLAND;CH +SYRIAN ARAB REPUBLIC;SY +TAIWAN, PROVINCE OF CHINA;TW +TAJIKISTAN;TJ +TANZANIA, UNITED REPUBLIC OF;TZ +THAILAND;TH +TIMOR-LESTE;TL +TOGO;TG +TOKELAU;TK +TONGA;TO +TRINIDAD AND TOBAGO;TT +TUNISIA;TN +TURKEY;TR +TURKMENISTAN;TM +TURKS AND CAICOS ISLANDS;TC +TUVALU;TV +UGANDA;UG +UKRAINE;UA +UNITED ARAB EMIRATES;AE +UNITED KINGDOM;GB +UNITED STATES;US +UNITED STATES MINOR OUTLYING ISLANDS;UM +URUGUAY;UY +UZBEKISTAN;UZ +VANUATU;VU +VENEZUELA;VE +VIET NAM;VN +VIRGIN ISLANDS, BRITISH;VG +VIRGIN ISLANDS, U.S.;VI +WALLIS AND FUTUNA;WF +WESTERN SAHARA;EH +YEMEN;YE +YUGOSLAVIA;YU +ZAMBIA;ZM +ZIMBABWE;ZW diff --git a/ccm-cms-types-simpleaddress/doc/make-insert.pl b/ccm-cms-types-simpleaddress/doc/make-insert.pl new file mode 100755 index 000000000..df146912e --- /dev/null +++ b/ccm-cms-types-simpleaddress/doc/make-insert.pl @@ -0,0 +1,18 @@ +#!/usr/bin/perl -wT + +print "-- Autogenerated by content-types/doc/make-insert.pl\n"; + +while () { + if (/(.*);(\w\w)/) { + my $code = $2; + my $name = lc($1); + $name =~ s/\b(\w)/uc($1)/gex; + $name =~ s/The/the/gx; + $name =~ s/Of/of/gx; + $name =~ s/And/and/gx; + $name =~ s/'/''/gx; + print "insert into iso_countries (iso_code, country_name) values ('$code', '$name');\n"; + } +} + +print "-- End\n"; diff --git a/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/Address.pdl b/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/Address.pdl new file mode 100755 index 000000000..dde037e42 --- /dev/null +++ b/ccm-cms-types-simpleaddress/pdl/com/arsdigita/content-types/Address.pdl @@ -0,0 +1,57 @@ +// +// Copyright (C) 2002-2004 Red Hat Inc. All Rights Reserved. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public License +// as published by the Free Software Foundation; either version 2.1 of +// the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// $Id: Address.pdl 1597 2007-07-10 16:27:26Z p_boy $ +// $DateTime: 2004/08/17 23:15:09 $ +model com.arsdigita.cms.contenttypes; + +import com.arsdigita.cms.ContentPage; + +// mapping table for mapping iso country code to country name +object type IsoCountry { + // The country iso code + String[1..1] isoCode = iso_countries.iso_code CHAR(2); + // The country name + String[1..1] countryName = iso_countries.country_name VARCHAR(100); + + object key (isoCode); +} + +// a simple content type to hold generic address information +object type Address extends ContentPage { + // The street address, flexible enough to handle different formats + String[0..1] address = ct_addresses.address VARCHAR(1000); + // The country iso code + IsoCountry[0..1] isoCountryCode = join ct_addresses.iso_country_code + to iso_countries.iso_code; + // The postal code + String[0..1] postalCode = ct_addresses.postal_code VARCHAR(20); + // The phone number + String[0..1] phone = ct_addresses.phone VARCHAR(20); + // The mobile phone number + String[0..1] mobile = ct_addresses.mobile VARCHAR(20); + // The fax phone number + String[0..1] fax = ct_addresses.fax VARCHAR(20); + // The email address + String[0..1] email = ct_addresses.email VARCHAR(75); + // Notes about the address and address owner + String[0..1] notes = ct_addresses.notes CLOB; + // URI for the address + String[0..1] uri = ct_addresses.uri VARCHAR(250); + + reference key (ct_addresses.address_id); +} diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/insert-iso-countries.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/insert-iso-countries.sql new file mode 100755 index 000000000..c9489f749 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/insert-iso-countries.sql @@ -0,0 +1,259 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: insert-iso-countries.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +insert into iso_countries (iso_code, country_name) values ('AF', 'Afghanistan'); +insert into iso_countries (iso_code, country_name) values ('AL', 'Albania'); +insert into iso_countries (iso_code, country_name) values ('DZ', 'Algeria'); +insert into iso_countries (iso_code, country_name) values ('AS', 'American Samoa'); +insert into iso_countries (iso_code, country_name) values ('AD', 'andorra'); +insert into iso_countries (iso_code, country_name) values ('AO', 'Angola'); +insert into iso_countries (iso_code, country_name) values ('AI', 'Anguilla'); +insert into iso_countries (iso_code, country_name) values ('AQ', 'Antarctica'); +insert into iso_countries (iso_code, country_name) values ('AG', 'Antigua and Barbuda'); +insert into iso_countries (iso_code, country_name) values ('AR', 'Argentina'); +insert into iso_countries (iso_code, country_name) values ('AM', 'Armenia'); +insert into iso_countries (iso_code, country_name) values ('AW', 'Aruba'); +insert into iso_countries (iso_code, country_name) values ('AU', 'Australia'); +insert into iso_countries (iso_code, country_name) values ('AT', 'Austria'); +insert into iso_countries (iso_code, country_name) values ('AZ', 'Azerbaijan'); +insert into iso_countries (iso_code, country_name) values ('BS', 'Bahamas'); +insert into iso_countries (iso_code, country_name) values ('BH', 'Bahrain'); +insert into iso_countries (iso_code, country_name) values ('BD', 'Bangladesh'); +insert into iso_countries (iso_code, country_name) values ('BB', 'Barbados'); +insert into iso_countries (iso_code, country_name) values ('BY', 'Belarus'); +insert into iso_countries (iso_code, country_name) values ('BE', 'Belgium'); +insert into iso_countries (iso_code, country_name) values ('BZ', 'Belize'); +insert into iso_countries (iso_code, country_name) values ('BJ', 'Benin'); +insert into iso_countries (iso_code, country_name) values ('BM', 'Bermuda'); +insert into iso_countries (iso_code, country_name) values ('BT', 'Bhutan'); +insert into iso_countries (iso_code, country_name) values ('BO', 'Bolivia'); +insert into iso_countries (iso_code, country_name) values ('BA', 'Bosnia and Herzegovina'); +insert into iso_countries (iso_code, country_name) values ('BW', 'Botswana'); +insert into iso_countries (iso_code, country_name) values ('BV', 'Bouvet Island'); +insert into iso_countries (iso_code, country_name) values ('BR', 'Brazil'); +insert into iso_countries (iso_code, country_name) values ('IO', 'British Indian Ocean Territory'); +insert into iso_countries (iso_code, country_name) values ('BN', 'Brunei Darussalam'); +insert into iso_countries (iso_code, country_name) values ('BG', 'Bulgaria'); +insert into iso_countries (iso_code, country_name) values ('BF', 'Burkina Faso'); +insert into iso_countries (iso_code, country_name) values ('BI', 'Burundi'); +insert into iso_countries (iso_code, country_name) values ('KH', 'Cambodia'); +insert into iso_countries (iso_code, country_name) values ('CM', 'Cameroon'); +insert into iso_countries (iso_code, country_name) values ('CA', 'Canada'); +insert into iso_countries (iso_code, country_name) values ('CV', 'Cape Verde'); +insert into iso_countries (iso_code, country_name) values ('KY', 'Cayman Islands'); +insert into iso_countries (iso_code, country_name) values ('CF', 'Central African Republic'); +insert into iso_countries (iso_code, country_name) values ('TD', 'Chad'); +insert into iso_countries (iso_code, country_name) values ('CL', 'Chile'); +insert into iso_countries (iso_code, country_name) values ('CN', 'China'); +insert into iso_countries (iso_code, country_name) values ('CX', 'Christmas Island'); +insert into iso_countries (iso_code, country_name) values ('CC', 'Cocos (Keeling) Islands'); +insert into iso_countries (iso_code, country_name) values ('CO', 'Colombia'); +insert into iso_countries (iso_code, country_name) values ('KM', 'Comoros'); +insert into iso_countries (iso_code, country_name) values ('CG', 'Congo'); +insert into iso_countries (iso_code, country_name) values ('CD', 'Congo, the Democratic Republic of the'); +insert into iso_countries (iso_code, country_name) values ('CK', 'Cook Islands'); +insert into iso_countries (iso_code, country_name) values ('CR', 'Costa Rica'); +insert into iso_countries (iso_code, country_name) values ('CI', 'Cote D''Ivoire'); +insert into iso_countries (iso_code, country_name) values ('HR', 'Croatia'); +insert into iso_countries (iso_code, country_name) values ('CU', 'Cuba'); +insert into iso_countries (iso_code, country_name) values ('CY', 'Cyprus'); +insert into iso_countries (iso_code, country_name) values ('CZ', 'Czech Republic'); +insert into iso_countries (iso_code, country_name) values ('DK', 'Denmark'); +insert into iso_countries (iso_code, country_name) values ('DJ', 'Djibouti'); +insert into iso_countries (iso_code, country_name) values ('DM', 'Dominica'); +insert into iso_countries (iso_code, country_name) values ('DO', 'Dominican Republic'); +insert into iso_countries (iso_code, country_name) values ('EC', 'Ecuador'); +insert into iso_countries (iso_code, country_name) values ('EG', 'Egypt'); +insert into iso_countries (iso_code, country_name) values ('SV', 'El Salvador'); +insert into iso_countries (iso_code, country_name) values ('GQ', 'Equatorial Guinea'); +insert into iso_countries (iso_code, country_name) values ('ER', 'Eritrea'); +insert into iso_countries (iso_code, country_name) values ('EE', 'Estonia'); +insert into iso_countries (iso_code, country_name) values ('ET', 'Ethiopia'); +insert into iso_countries (iso_code, country_name) values ('FK', 'Falkland Islands (Malvinas)'); +insert into iso_countries (iso_code, country_name) values ('FO', 'Faroe Islands'); +insert into iso_countries (iso_code, country_name) values ('FJ', 'Fiji'); +insert into iso_countries (iso_code, country_name) values ('FI', 'Finland'); +insert into iso_countries (iso_code, country_name) values ('FR', 'France'); +insert into iso_countries (iso_code, country_name) values ('GF', 'French Guiana'); +insert into iso_countries (iso_code, country_name) values ('PF', 'French Polynesia'); +insert into iso_countries (iso_code, country_name) values ('TF', 'French Southern Territories'); +insert into iso_countries (iso_code, country_name) values ('GA', 'Gabon'); +insert into iso_countries (iso_code, country_name) values ('GM', 'Gambia'); +insert into iso_countries (iso_code, country_name) values ('GE', 'Georgia'); +insert into iso_countries (iso_code, country_name) values ('DE', 'Germany'); +insert into iso_countries (iso_code, country_name) values ('GH', 'Ghana'); +insert into iso_countries (iso_code, country_name) values ('GI', 'Gibraltar'); +insert into iso_countries (iso_code, country_name) values ('GR', 'Greece'); +insert into iso_countries (iso_code, country_name) values ('GL', 'Greenland'); +insert into iso_countries (iso_code, country_name) values ('GD', 'Grenada'); +insert into iso_countries (iso_code, country_name) values ('GP', 'Guadeloupe'); +insert into iso_countries (iso_code, country_name) values ('GU', 'Guam'); +insert into iso_countries (iso_code, country_name) values ('GT', 'Guatemala'); +insert into iso_countries (iso_code, country_name) values ('GN', 'Guinea'); +insert into iso_countries (iso_code, country_name) values ('GW', 'Guinea-Bissau'); +insert into iso_countries (iso_code, country_name) values ('GY', 'Guyana'); +insert into iso_countries (iso_code, country_name) values ('HT', 'Haiti'); +insert into iso_countries (iso_code, country_name) values ('HM', 'Heard Island and Mcdonald Islands'); +insert into iso_countries (iso_code, country_name) values ('VA', 'Holy See (Vatican City State)'); +insert into iso_countries (iso_code, country_name) values ('HN', 'Honduras'); +insert into iso_countries (iso_code, country_name) values ('HK', 'Hong Kong'); +insert into iso_countries (iso_code, country_name) values ('HU', 'Hungary'); +insert into iso_countries (iso_code, country_name) values ('IS', 'Iceland'); +insert into iso_countries (iso_code, country_name) values ('IN', 'India'); +insert into iso_countries (iso_code, country_name) values ('ID', 'Indonesia'); +insert into iso_countries (iso_code, country_name) values ('IR', 'Iran, Islamic Republic of'); +insert into iso_countries (iso_code, country_name) values ('IQ', 'Iraq'); +insert into iso_countries (iso_code, country_name) values ('IE', 'Ireland'); +insert into iso_countries (iso_code, country_name) values ('IL', 'Israel'); +insert into iso_countries (iso_code, country_name) values ('IT', 'Italy'); +insert into iso_countries (iso_code, country_name) values ('JM', 'Jamaica'); +insert into iso_countries (iso_code, country_name) values ('JP', 'Japan'); +insert into iso_countries (iso_code, country_name) values ('JO', 'Jordan'); +insert into iso_countries (iso_code, country_name) values ('KZ', 'Kazakhstan'); +insert into iso_countries (iso_code, country_name) values ('KE', 'Kenya'); +insert into iso_countries (iso_code, country_name) values ('KI', 'Kiribati'); +insert into iso_countries (iso_code, country_name) values ('KP', 'Korea, Democratic People''S Republic of'); +insert into iso_countries (iso_code, country_name) values ('KR', 'Korea, Republic of'); +insert into iso_countries (iso_code, country_name) values ('KW', 'Kuwait'); +insert into iso_countries (iso_code, country_name) values ('KG', 'Kyrgyzstan'); +insert into iso_countries (iso_code, country_name) values ('LA', 'Lao People''S Democratic Republic'); +insert into iso_countries (iso_code, country_name) values ('LV', 'Latvia'); +insert into iso_countries (iso_code, country_name) values ('LB', 'Lebanon'); +insert into iso_countries (iso_code, country_name) values ('LS', 'Lesotho'); +insert into iso_countries (iso_code, country_name) values ('LR', 'Liberia'); +insert into iso_countries (iso_code, country_name) values ('LY', 'Libyan Arab Jamahiriya'); +insert into iso_countries (iso_code, country_name) values ('LI', 'Liechtenstein'); +insert into iso_countries (iso_code, country_name) values ('LT', 'Lithuania'); +insert into iso_countries (iso_code, country_name) values ('LU', 'Luxembourg'); +insert into iso_countries (iso_code, country_name) values ('MO', 'Macao'); +insert into iso_countries (iso_code, country_name) values ('MK', 'Macedonia, the Former Yugoslav Republic of'); +insert into iso_countries (iso_code, country_name) values ('MG', 'Madagascar'); +insert into iso_countries (iso_code, country_name) values ('MW', 'Malawi'); +insert into iso_countries (iso_code, country_name) values ('MY', 'Malaysia'); +insert into iso_countries (iso_code, country_name) values ('MV', 'Maldives'); +insert into iso_countries (iso_code, country_name) values ('ML', 'Mali'); +insert into iso_countries (iso_code, country_name) values ('MT', 'Malta'); +insert into iso_countries (iso_code, country_name) values ('MH', 'Marshall Islands'); +insert into iso_countries (iso_code, country_name) values ('MQ', 'Martinique'); +insert into iso_countries (iso_code, country_name) values ('MR', 'Mauritania'); +insert into iso_countries (iso_code, country_name) values ('MU', 'Mauritius'); +insert into iso_countries (iso_code, country_name) values ('YT', 'Mayotte'); +insert into iso_countries (iso_code, country_name) values ('MX', 'Mexico'); +insert into iso_countries (iso_code, country_name) values ('FM', 'Micronesia, Federated States of'); +insert into iso_countries (iso_code, country_name) values ('MD', 'Moldova, Republic of'); +insert into iso_countries (iso_code, country_name) values ('MC', 'Monaco'); +insert into iso_countries (iso_code, country_name) values ('MN', 'Mongolia'); +insert into iso_countries (iso_code, country_name) values ('MS', 'Montserrat'); +insert into iso_countries (iso_code, country_name) values ('MA', 'Morocco'); +insert into iso_countries (iso_code, country_name) values ('MZ', 'Mozambique'); +insert into iso_countries (iso_code, country_name) values ('MM', 'Myanmar'); +insert into iso_countries (iso_code, country_name) values ('NA', 'Namibia'); +insert into iso_countries (iso_code, country_name) values ('NR', 'Nauru'); +insert into iso_countries (iso_code, country_name) values ('NP', 'Nepal'); +insert into iso_countries (iso_code, country_name) values ('NL', 'Netherlands'); +insert into iso_countries (iso_code, country_name) values ('AN', 'Netherlands Antilles'); +insert into iso_countries (iso_code, country_name) values ('NC', 'New Caledonia'); +insert into iso_countries (iso_code, country_name) values ('NZ', 'New Zealand'); +insert into iso_countries (iso_code, country_name) values ('NI', 'Nicaragua'); +insert into iso_countries (iso_code, country_name) values ('NE', 'Niger'); +insert into iso_countries (iso_code, country_name) values ('NG', 'Nigeria'); +insert into iso_countries (iso_code, country_name) values ('NU', 'Niue'); +insert into iso_countries (iso_code, country_name) values ('NF', 'Norfolk Island'); +insert into iso_countries (iso_code, country_name) values ('MP', 'Northern Mariana Islands'); +insert into iso_countries (iso_code, country_name) values ('NO', 'Norway'); +insert into iso_countries (iso_code, country_name) values ('OM', 'Oman'); +insert into iso_countries (iso_code, country_name) values ('PK', 'Pakistan'); +insert into iso_countries (iso_code, country_name) values ('PW', 'Palau'); +insert into iso_countries (iso_code, country_name) values ('PS', 'Palestinian Territory, Occupied'); +insert into iso_countries (iso_code, country_name) values ('PA', 'Panama'); +insert into iso_countries (iso_code, country_name) values ('PG', 'Papua New Guinea'); +insert into iso_countries (iso_code, country_name) values ('PY', 'Paraguay'); +insert into iso_countries (iso_code, country_name) values ('PE', 'Peru'); +insert into iso_countries (iso_code, country_name) values ('PH', 'Philippines'); +insert into iso_countries (iso_code, country_name) values ('PN', 'Pitcairn'); +insert into iso_countries (iso_code, country_name) values ('PL', 'Poland'); +insert into iso_countries (iso_code, country_name) values ('PT', 'Portugal'); +insert into iso_countries (iso_code, country_name) values ('PR', 'Puerto Rico'); +insert into iso_countries (iso_code, country_name) values ('QA', 'Qatar'); +insert into iso_countries (iso_code, country_name) values ('RE', 'Reunion'); +insert into iso_countries (iso_code, country_name) values ('RO', 'Romania'); +insert into iso_countries (iso_code, country_name) values ('RU', 'Russian Federation'); +insert into iso_countries (iso_code, country_name) values ('RW', 'Rwanda'); +insert into iso_countries (iso_code, country_name) values ('SH', 'Saint Helena'); +insert into iso_countries (iso_code, country_name) values ('KN', 'Saint Kitts and Nevis'); +insert into iso_countries (iso_code, country_name) values ('LC', 'Saint Lucia'); +insert into iso_countries (iso_code, country_name) values ('PM', 'Saint Pierre and Miquelon'); +insert into iso_countries (iso_code, country_name) values ('VC', 'Saint Vincent and the Grenadines'); +insert into iso_countries (iso_code, country_name) values ('WS', 'Samoa'); +insert into iso_countries (iso_code, country_name) values ('SM', 'San Marino'); +insert into iso_countries (iso_code, country_name) values ('ST', 'Sao Tome and Principe'); +insert into iso_countries (iso_code, country_name) values ('SA', 'Saudi Arabia'); +insert into iso_countries (iso_code, country_name) values ('SN', 'Senegal'); +insert into iso_countries (iso_code, country_name) values ('SC', 'Seychelles'); +insert into iso_countries (iso_code, country_name) values ('SL', 'Sierra Leone'); +insert into iso_countries (iso_code, country_name) values ('SG', 'Singapore'); +insert into iso_countries (iso_code, country_name) values ('SK', 'Slovakia'); +insert into iso_countries (iso_code, country_name) values ('SI', 'Slovenia'); +insert into iso_countries (iso_code, country_name) values ('SB', 'Solomon Islands'); +insert into iso_countries (iso_code, country_name) values ('SO', 'Somalia'); +insert into iso_countries (iso_code, country_name) values ('ZA', 'South Africa'); +insert into iso_countries (iso_code, country_name) values ('GS', 'South Georgia and the South Sandwich Islands'); +insert into iso_countries (iso_code, country_name) values ('ES', 'Spain'); +insert into iso_countries (iso_code, country_name) values ('LK', 'Sri Lanka'); +insert into iso_countries (iso_code, country_name) values ('SD', 'Sudan'); +insert into iso_countries (iso_code, country_name) values ('SR', 'Suriname'); +insert into iso_countries (iso_code, country_name) values ('SJ', 'Svalbard and Jan Mayen'); +insert into iso_countries (iso_code, country_name) values ('SZ', 'Swaziland'); +insert into iso_countries (iso_code, country_name) values ('SE', 'Sweden'); +insert into iso_countries (iso_code, country_name) values ('CH', 'Switzerland'); +insert into iso_countries (iso_code, country_name) values ('SY', 'Syrian Arab Republic'); +insert into iso_countries (iso_code, country_name) values ('TW', 'Taiwan, Province of China'); +insert into iso_countries (iso_code, country_name) values ('TJ', 'Tajikistan'); +insert into iso_countries (iso_code, country_name) values ('TZ', 'Tanzania, United Republic of'); +insert into iso_countries (iso_code, country_name) values ('TH', 'Thailand'); +insert into iso_countries (iso_code, country_name) values ('TL', 'Timor-Leste'); +insert into iso_countries (iso_code, country_name) values ('TG', 'Togo'); +insert into iso_countries (iso_code, country_name) values ('TK', 'Tokelau'); +insert into iso_countries (iso_code, country_name) values ('TO', 'Tonga'); +insert into iso_countries (iso_code, country_name) values ('TT', 'Trinidad and Tobago'); +insert into iso_countries (iso_code, country_name) values ('TN', 'Tunisia'); +insert into iso_countries (iso_code, country_name) values ('TR', 'Turkey'); +insert into iso_countries (iso_code, country_name) values ('TM', 'Turkmenistan'); +insert into iso_countries (iso_code, country_name) values ('TC', 'Turks and Caicos Islands'); +insert into iso_countries (iso_code, country_name) values ('TV', 'Tuvalu'); +insert into iso_countries (iso_code, country_name) values ('UG', 'Uganda'); +insert into iso_countries (iso_code, country_name) values ('UA', 'Ukraine'); +insert into iso_countries (iso_code, country_name) values ('AE', 'United Arab Emirates'); +insert into iso_countries (iso_code, country_name) values ('GB', 'United Kingdom'); +insert into iso_countries (iso_code, country_name) values ('US', 'United States'); +insert into iso_countries (iso_code, country_name) values ('UM', 'United States Minor Outlying Islands'); +insert into iso_countries (iso_code, country_name) values ('UY', 'Uruguay'); +insert into iso_countries (iso_code, country_name) values ('UZ', 'Uzbekistan'); +insert into iso_countries (iso_code, country_name) values ('VU', 'Vanuatu'); +insert into iso_countries (iso_code, country_name) values ('VE', 'Venezuela'); +insert into iso_countries (iso_code, country_name) values ('VN', 'Viet Nam'); +insert into iso_countries (iso_code, country_name) values ('VG', 'Virgin Islands, British'); +insert into iso_countries (iso_code, country_name) values ('VI', 'Virgin Islands, U.S.'); +insert into iso_countries (iso_code, country_name) values ('WF', 'Wallis and Futuna'); +insert into iso_countries (iso_code, country_name) values ('EH', 'Western Sahara'); +insert into iso_countries (iso_code, country_name) values ('YE', 'Yemen'); +insert into iso_countries (iso_code, country_name) values ('YU', 'Yugoslavia'); +insert into iso_countries (iso_code, country_name) values ('ZM', 'Zambia'); +insert into iso_countries (iso_code, country_name) values ('ZW', 'Zimbabwe'); +-- End diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/upgrade/address-upgrade-1.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/upgrade/address-upgrade-1.sql new file mode 100755 index 000000000..111f85480 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/default/upgrade/address-upgrade-1.sql @@ -0,0 +1,17 @@ +-- +-- Copyright (C) 2001-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +alter table ct_addresses add uri VARCHAR(250); diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se-create.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se-create.sql new file mode 100755 index 000000000..e21b5b304 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se-create.sql @@ -0,0 +1,22 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: oracle-se-create.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +@ ddl/oracle-se/create.sql +@ ddl/oracle-se/deferred.sql +@ default/insert-iso-countries.sql diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se/upgrade/address-upgrade-2.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se/upgrade/address-upgrade-2.sql new file mode 100755 index 000000000..e572d4160 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/oracle-se/upgrade/address-upgrade-2.sql @@ -0,0 +1,24 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: address-upgrade-2.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ + +alter table ct_addresses modify email varchar(75); +alter table ct_addresses drop column notes; +alter table ct_addresses add notes clob; + diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres-create.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres-create.sql new file mode 100755 index 000000000..c8628d5e6 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres-create.sql @@ -0,0 +1,24 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: postgres-create.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +begin; +\i ddl/postgres/create.sql +\i ddl/postgres/deferred.sql +\i default/insert-iso-countries.sql +end; diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres/upgrade/address-upgrade-2.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres/upgrade/address-upgrade-2.sql new file mode 100755 index 000000000..a461a9572 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/postgres/upgrade/address-upgrade-2.sql @@ -0,0 +1,50 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: address-upgrade-2.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ + +create table temp as select * from ct_addresses; +drop table ct_addresses; + +create table ct_addresses ( + address_id INTEGER not null + constraint ct_addresse_address_id_p_y1u3b + primary key, + -- referential constraint for address_id deferred due to circular dependencies + address VARCHAR(1000), + email VARCHAR(75), + fax VARCHAR(20), + iso_country_code CHAR(2), + -- referential constraint for iso_country_code deferred due to circular dependencies + mobile VARCHAR(20), + notes TEXT, + phone VARCHAR(20), + postal_code VARCHAR(20), + uri VARCHAR(250) +); +alter table ct_addresses add + constraint ct_addre_iso_coun_code_f_o8h8a foreign key (iso_country_code) + references iso_countries(iso_code); +alter table ct_addresses add + constraint ct_addresse_address_id_f__qv8u foreign key (address_id) + references cms_pages(item_id) on delete cascade; + +insert into ct_addresses (address_id, address, email, fax, iso_country_code, mobile, notes, phone, postal_code, uri) + select address_id, address, email, fax, iso_country_code, mobile, encode(notes, 'escape'), phone, postal_code, uri + from temp; +drop table temp; diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-1.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-1.sql new file mode 100755 index 000000000..d0c1de781 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-1.sql @@ -0,0 +1,20 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: oracle-se-1.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +@@ ../default/upgrade/address-upgrade-1.sql diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-2.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-2.sql new file mode 100755 index 000000000..48ef0aaa6 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/oracle-se-2.sql @@ -0,0 +1,20 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: oracle-se-2.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +@@ ../oracle-se/upgrade/address-upgrade-2.sql diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-1.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-1.sql new file mode 100755 index 000000000..cc0cab5a0 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-1.sql @@ -0,0 +1,22 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: postgres-1.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +begin; +\i ../default/upgrade/address-upgrade-1.sql +end; diff --git a/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-2.sql b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-2.sql new file mode 100755 index 000000000..23d2600e3 --- /dev/null +++ b/ccm-cms-types-simpleaddress/sql/ccm-cms-types-oldaddress/upgrade/postgres-2.sql @@ -0,0 +1,22 @@ +-- +-- Copyright (C) 2003-2004 Red Hat Inc. All Rights Reserved. +-- +-- This library is free software; you can redistribute it and/or +-- modify it under the terms of the GNU Lesser General Public License +-- as published by the Free Software Foundation; either version 2.1 of +-- the License, or (at your option) any later version. +-- +-- This library is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +-- Lesser General Public License for more details. +-- +-- You should have received a copy of the GNU Lesser General Public +-- License along with this library; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- +-- $Id: postgres-2.sql 1597 2007-07-10 16:27:26Z p_boy $ +-- $DateTime: 2004/08/17 23:15:09 $ +begin; +\i ../postgres/upgrade/address-upgrade-2.sql +end; diff --git a/ccm-cms-types-simpleaddress/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SimpleAddress.xml b/ccm-cms-types-simpleaddress/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SimpleAddress.xml new file mode 100755 index 000000000..72958ef1b --- /dev/null +++ b/ccm-cms-types-simpleaddress/src/WEB-INF/content-types/com/arsdigita/cms/contenttypes/SimpleAddress.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + diff --git a/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.config b/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.config new file mode 100755 index 000000000..ea39e9eec --- /dev/null +++ b/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.config @@ -0,0 +1,5 @@ + + + + diff --git a/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.load b/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.load new file mode 100755 index 000000000..1c3f0604b --- /dev/null +++ b/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.load @@ -0,0 +1,16 @@ + + + +
+
+ + + +
+ + + + + + + diff --git a/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.upgrade b/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.upgrade new file mode 100644 index 000000000..e11b21887 --- /dev/null +++ b/ccm-cms-types-simpleaddress/src/ccm-cms-types-simpleaddress.upgrade @@ -0,0 +1,5 @@ + + +