home *** CD-ROM | disk | FTP | other *** search
- if (exists (select * from sys.systable where table_name = 'RcvdRecipients')) then
- alter table "RcvdRecipients" rename "Forwarded_From" TO "Forwarded From";
- alter table "RcvdRecipients" delete primary key;
- alter table "RcvdRecipients" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "RcvdRecipients" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'RcvdMessages')) then
- alter table "RcvdMessages" rename "Send_Time" TO "Send Time";
- alter table "RcvdMessages" delete primary key;
- alter table "RcvdMessages" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "RcvdMessages" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'RcvdAttachments')) then
- alter table "RcvdAttachments" rename "Display_Name" TO "Display Name";
- alter table "RcvdAttachments" delete primary key;
- alter table "RcvdAttachments" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "RcvdAttachments" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'SentRecipients')) then
- alter table "SentRecipients" rename "Forwarded_From" TO "Forwarded From";
- alter table "SentRecipients" delete primary key;
- alter table "SentRecipients" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "SentRecipients" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'SentAttachments')) then
- alter table "SentAttachments" rename "Display_Name" TO "Display Name";
- alter table "SentAttachments" delete primary key;
- alter table "SentAttachments" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "SentAttachments" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'SentMessages')) then
- alter table "SentMessages" rename "Send_Time" TO "Send Time";
- alter table "SentMessages" delete primary key;
- alter table "SentMessages" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "SentMessages" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'EventLog')) then
- alter table "EventLog" rename "Event_Type" TO "Event Type";
- alter table "EventLog" rename "Operation_Type" TO "Operation Type";
- alter table "EventLog" delete primary key;
- alter table "EventLog" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "EventLog" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'ChngItems')) then
- alter table "ChngItems" delete primary key;
- alter table "ChngItems" modify "ID" default autoincrement;
- end if;
-
- if (exists (select * from sys.systable where table_name = 'RcvdData')) then
- alter table "RcvdData" delete primary key;
- alter table "RcvdData" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "RcvdData" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'SentData')) then
- alter table "SentData" delete primary key;
- alter table "SentData" modify "ID" default autoincrement;
- create unique index "KeyIndex" on "SentData" ("ID" ASC);
- end if;
-
- if (exists (select * from sys.systable where table_name = 'BinItems')) then
- alter table "BinItems" modify "ID" not null;
- alter table "BinItems" modify "ID" default autoincrement;
- end if;
-
- commit;