-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-189: streamline ENTITY_ATTRIBUTE_TEMP temp table (#3119)
- Loading branch information
Showing
4 changed files
with
82 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../dsde/rawls/liquibase/changesets/20241106_streamline_entity_attr_temp_table_procedure.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<databaseChangeLog logicalFilePath="dummy" | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> | ||
|
||
<changeSet logicalFilePath="dummy" author="davidan" id="streamline_entity_attr_temp_table"> | ||
<createProcedure replaceIfExists="true" procedureName="createEntityAttributeTempTable"> | ||
CREATE PROCEDURE createEntityAttributeTempTable () | ||
BEGIN | ||
create temporary table ENTITY_ATTRIBUTE_TEMP ( | ||
id bigint unsigned NOT NULL AUTO_INCREMENT primary key, | ||
namespace varchar(32) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, | ||
name varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_bin NOT NULL, | ||
value_string text, | ||
value_json longtext, | ||
value_number double DEFAULT NULL, | ||
value_boolean bit(1) DEFAULT NULL, | ||
value_entity_ref bigint unsigned DEFAULT NULL, | ||
list_index int DEFAULT NULL, | ||
list_length int DEFAULT NULL, | ||
owner_id bigint unsigned NOT NULL, | ||
deleted bit(1) DEFAULT false, | ||
deleted_date timestamp NULL DEFAULT NULL | ||
); | ||
END | ||
</createProcedure> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
32 changes: 32 additions & 0 deletions
32
...de/rawls/liquibase/changesets/20241106_streamline_workspace_attr_temp_table_procedure.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<databaseChangeLog logicalFilePath="dummy" | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> | ||
|
||
<changeSet logicalFilePath="dummy" author="davidan" id="streamline_workspace_attr_temp_table"> | ||
<createProcedure replaceIfExists="true" procedureName="createWorkspaceAttributeTempTable"> | ||
CREATE PROCEDURE createWorkspaceAttributeTempTable () | ||
BEGIN | ||
create temporary table WORKSPACE_ATTRIBUTE_TEMP ( | ||
id bigint unsigned NOT NULL AUTO_INCREMENT primary key, | ||
namespace varchar(32) NOT NULL, | ||
name varchar(200) NOT NULL, | ||
value_string text, | ||
value_json longtext, | ||
value_number double DEFAULT NULL, | ||
value_boolean bit(1) DEFAULT NULL, | ||
value_entity_ref bigint unsigned DEFAULT NULL, | ||
list_index int DEFAULT NULL, | ||
list_length int DEFAULT NULL, | ||
owner_id BINARY(16) NOT NULL, | ||
deleted bit(1) DEFAULT false, | ||
deleted_date timestamp NULL DEFAULT NULL | ||
); | ||
END | ||
</createProcedure> | ||
</changeSet> | ||
|
||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters