All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alfresco.dbscripts.create.org.hibernate.dialect.H2Dialect.AlfrescoCreate-UsageTables.sql Maven / Gradle / Ivy

There is a newer version: 5.0
Show newest version
--
-- Title:      User usage tables
-- Database:   PostgreSQL
-- Since:      V3.4 Schema 4110
-- Author:     Derek Hulley
--
-- Please contact [email protected] if you need assistance with the upgrade.
--

CREATE SEQUENCE alf_usage_delta_seq START WITH 1 INCREMENT BY 1; -- (optional)
CREATE TABLE alf_usage_delta
(
    id INT8 NOT NULL,
    version INT8 NOT NULL,
    node_id INT8 NOT NULL,
    delta_size INT8 NOT NULL,
    PRIMARY KEY (id),
    CONSTRAINT fk_alf_usaged_n FOREIGN KEY (node_id) REFERENCES alf_node (id)
); -- (optional)
CREATE INDEX fk_alf_usaged_n ON alf_usage_delta (node_id); -- (optional)

--
-- Record script finish
--
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-UsageTables';
INSERT INTO alf_applied_patch
  (id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
  VALUES
  (
    'patch.db-V3.4-UsageTables', 'Manually executed script upgrade V3.4: Usage Tables',
    0, 113, -1, 114, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
  );




© 2015 - 2025 Weber Informatics LLC | Privacy Policy