-- =============================================
-- Partner module time-column update for Oracle
-- Execute with:
-- sqlplus developer/dev123@localhost/XEPDB1 @partner_alter_date_oracle.sql
-- =============================================

WHENEVER SQLERROR EXIT SQL.SQLCODE;

PROMPT Alter ILDM_FEE_CUSTOMER_INFO.CREATE_TIME / UPDATE_TIME to DATE...
ALTER TABLE ILDM_FEE_CUSTOMER_INFO MODIFY (
    CREATE_TIME DATE,
    UPDATE_TIME DATE
);

PROMPT Alter SEAL_PARTNER_CONTACT.CREATE_TIME / UPDATE_TIME to DATE...
ALTER TABLE SEAL_PARTNER_CONTACT MODIFY (
    CREATE_TIME DATE,
    UPDATE_TIME DATE
);

PROMPT Verify column types...
SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, DATA_LENGTH
FROM USER_TAB_COLUMNS
WHERE TABLE_NAME IN ('ILDM_FEE_CUSTOMER_INFO', 'SEAL_PARTNER_CONTACT')
  AND COLUMN_NAME IN ('CREATE_TIME', 'UPDATE_TIME')
ORDER BY TABLE_NAME, COLUMN_NAME;
