You need to first designate a different index as "primary" before you can drop the existing index. The data admin tool has a menu option for doing so:
Database Schema Admin DataServer Utilities PRO/SQL Tools
┌──────────────────────────────────────────────────────────────────────────────┐
│Name: CustNum PRIMARY UNIQUE ACTIVE
│ ┌──────────────────────────────────┐
│Area: │ Cust_Index │
│ └──────────────────────────────────┘
┌─────────────────────────────┐┌───────────────────────────────────────────────┐
│ Comments ││Seq Field Name Type Asc Abbr│
│ CountryPost ││─── ───────────────────── ─────────── ──── ────│
│ CustNum ││ 1 CustNum integer Asc No │
│ Name ││ │
│ SalesRep ││ │
│ ││ │
│ ││ │
└─────────────────────────────┘└───────────────────────────────────────────────┘
│ Next Prev First Last Rename Add Delete ChangePrimary Uniqueness
└──── MakeInactive Browse SwitchTable GoField ROWID Undo ChangeLocal Exit
Index Editor Data Dictionary
Database: s2k (PROGRESS) Table: Customer
Change the Primary Index of this table.
(Your screen may look different depending on what version of Progress you are running and whether or not it is Windows. But the functionality is the same...)
If you do not have another index you will first need to create one.
--> adedict/_delete.p at line 1874 (adedict/_delete.r)
.psql
? I'm guessing, but I'd be willing to bet that the field you're trying to delete is aFOREIGN KEY
in another table - do a search for this! See here.