generated from giis-uniovi/samples-giis-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated metamodels and models to article terminology (#114)
- Loading branch information
1 parent
4dcfb4b
commit b31029c
Showing
67 changed files
with
287 additions
and
306 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FOR $1,$2,$3 = SELECT idAuthor, idBook, title FROM table1BeforeChange | ||
INSERT INTO table1(idAuthor, idBook, title) VALUES ($1, $2, $3); | ||
FOR $1,$2 = SELECT idAuthor, idBook FROM table1BeforeChange | ||
INSERT INTO table1(idAuthor, idBook) VALUES ($1, $2); |
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
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testCustomV1NewColumn-dataMigration.xmi
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table2"> | ||
<migcol> | ||
<ColTo Data="title" Key="idBook" DataTable="table2"/> | ||
<ColFrom Data="title" Key="idBook" DataTable="table1"/> | ||
<MigrateTo Data="title" Key="idBook" DataTable="table2"/> | ||
<MigrateFrom Data="title" Key="idBook" DataTable="table1"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testCustomV2TwoNewColumnSourceTwoTables-dataMigration.xmi
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table2"> | ||
<migcol> | ||
<ColTo Data="title" Key="idBook" DataTable="table2"/> | ||
<ColFrom Data="title" Key="idBook" DataTable="table1"/> | ||
<MigrateTo Data="title" Key="idBook" DataTable="table2"/> | ||
<MigrateFrom Data="title" Key="idBook" DataTable="table1"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="publisher" Key="idBook" DataTable="table2"/> | ||
<ColFrom Data="publisher" Key="idBook" DataTable="table3"/> | ||
<MigrateTo Data="publisher" Key="idBook" DataTable="table2"/> | ||
<MigrateFrom Data="publisher" Key="idBook" DataTable="table3"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testCustomV3TwoNewColumnsUsingNMRelationship-dataMigration.xmi
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table2"> | ||
<migcol> | ||
<ColTo Data="title" Key="idAuthor" DataTable="table2" NewTableName="table2New"/> | ||
<ColFrom Data="title" Key="idAuthor" DataTable="table1"/> | ||
<MigrateTo Data="title" Key="idAuthor" DataTable="table2" NewTableName="table2New"/> | ||
<MigrateFrom Data="title" Key="idAuthor" DataTable="table1"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="idBook" Key="idAuthor" DataTable="table2" NewTableName="table2New"/> | ||
<ColFrom Data="idBook" Key="idAuthor" DataTable="table1"/> | ||
<MigrateTo Data="idBook" Key="idAuthor" DataTable="table2" NewTableName="table2New"/> | ||
<MigrateFrom Data="idBook" Key="idAuthor" DataTable="table1"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testCustomV4JoinTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table2"> | ||
<migcol> | ||
<ColTo Data="idBook" Key="idAuthor" DataTable="table1" NewTableName="table2new"/> | ||
<ColFrom Data="idBook" Key="idAuthor" DataTable="table1"/> | ||
<MigrateTo Data="idBook" Key="idAuthor" DataTable="table1" NewTableName="table2new"/> | ||
<MigrateFrom Data="idBook" Key="idAuthor" DataTable="table1"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="title" Key="idAuthor" DataTable="table1" NewTableName="table2new"/> | ||
<ColFrom Data="title" Key="idAuthor" DataTable="table1"/> | ||
<MigrateTo Data="title" Key="idAuthor" DataTable="table1" NewTableName="table2new"/> | ||
<MigrateFrom Data="title" Key="idAuthor" DataTable="table1"/> | ||
</migcol> | ||
</MigrationTable> |
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testCustomV5JoinTableKeyEntityInTargetTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table2"> | ||
<migcol> | ||
<ColTo Data="title" Key="idBook" DataTable="table1"/> | ||
<ColFrom Data="title" Key="idBook" DataTable="table1"/> | ||
<MigrateTo Data="title" Key="idBook" DataTable="table1"/> | ||
<MigrateFrom Data="title" Key="idBook" DataTable="table1"/> | ||
</migcol> | ||
</MigrationTable> |
12 changes: 6 additions & 6 deletions
12
modevo-transform/dat/bmk/testCustomV6CopyTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table1Copied"> | ||
<migcol> | ||
<ColTo Data="idAuthor" DataTable="table1Copied"/> | ||
<ColFrom Data="idAuthor" DataTable="table1"/> | ||
<MigrateTo Data="idAuthor" DataTable="table1Copied"/> | ||
<MigrateFrom Data="idAuthor" DataTable="table1"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="idBook" DataTable="table1Copied"/> | ||
<ColFrom Data="idBook" DataTable="table1"/> | ||
<MigrateTo Data="idBook" DataTable="table1Copied"/> | ||
<MigrateFrom Data="idBook" DataTable="table1"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="title" DataTable="table1Copied"/> | ||
<ColFrom Data="title" DataTable="table1"/> | ||
<MigrateTo Data="title" DataTable="table1Copied"/> | ||
<MigrateFrom Data="title" DataTable="table1"/> | ||
</migcol> | ||
</MigrationTable> |
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
2 changes: 1 addition & 1 deletion
2
modevo-transform/dat/bmk/testCustomV8JoinColumn-dataMigration.xmi
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration"> | ||
<MigrationTable name="table1" joincol="/1"/> | ||
<JoinColumn ColTarget="completetitle" ColSource="title , subtitle"/> | ||
<MergeColumn ColTarget="completetitle" ColSource="title , subtitle"/> | ||
</xmi:XMI> |
12 changes: 4 additions & 8 deletions
12
modevo-transform/dat/bmk/testCustomV9RemovePK-dataMigration.xmi
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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="table1"> | ||
<migcol> | ||
<ColTo Data="idAuthor" DataTable="table1BeforeChange"/> | ||
<ColFrom Data="idAuthor" DataTable="table1BeforeChange"/> | ||
<MigrateTo Data="idAuthor" DataTable="table1"/> | ||
<MigrateFrom Data="idAuthor" DataTable="table1BeforeChange"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="idBook" DataTable="table1BeforeChange"/> | ||
<ColFrom Data="idBook" DataTable="table1BeforeChange"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="title" DataTable="table1BeforeChange"/> | ||
<ColFrom Data="title" DataTable="table1BeforeChange"/> | ||
<MigrateTo Data="idBook" DataTable="table1"/> | ||
<MigrateFrom Data="idBook" DataTable="table1BeforeChange"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testMindsV10NewTableMigrationFromOneTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="hidden_hashtags"> | ||
<migcol> | ||
<ColTo Data="hashtag" DataTable="hidden_hashtags"/> | ||
<ColFrom Data="hashtag" DataTable="user_hashtags"/> | ||
<MigrateTo Data="hashtag" DataTable="hidden_hashtags"/> | ||
<MigrateFrom Data="hashtag" DataTable="user_hashtags"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="admin_guid" DataTable="hidden_hashtags"/> | ||
<ColFrom Data="user_guid" DataTable="user_hashtags"/> | ||
<MigrateTo Data="admin_guid" DataTable="hidden_hashtags"/> | ||
<MigrateFrom Data="user_guid" DataTable="user_hashtags"/> | ||
</migcol> | ||
<migcol Description="It is not possible to migrate data to the column hidden_since as it is storing new data that is not stored in another table"/> | ||
</MigrationTable> |
12 changes: 6 additions & 6 deletions
12
modevo-transform/dat/bmk/testMindsV25NewTableMigrationFromOneTable-dataMigration.xmi
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
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testMindsV27NewTableMigrationFromOneTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="wire_support_tiers"> | ||
<migcol> | ||
<ColTo Data="address" DataTable="wire_support_tiers"/> | ||
<ColFrom Data="wallet_address" DataTable="withholdings"/> | ||
<MigrateTo Data="address" DataTable="wire_support_tiers"/> | ||
<MigrateFrom Data="wallet_address" DataTable="withholdings"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="user_guid" DataTable="wire_support_tiers"/> | ||
<ColFrom Data="user_guid" DataTable="withholdings"/> | ||
<MigrateTo Data="user_guid" DataTable="wire_support_tiers"/> | ||
<MigrateFrom Data="user_guid" DataTable="withholdings"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testMindsV3SplitColumn-dataMigration.xmi
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="comments"> | ||
<migcol Description="Migration needs to be performed from the old To Column to the From Column according to the deverloper's criteria"> | ||
<ColFrom Data="parent_guid" DataTable="comments"/> | ||
<ColToSplit Data="parent_guid_c1" DataTable="comments"/> | ||
<ColToSplit Data="parent_guid_c2" DataTable="comments"/> | ||
<ColToSplit Data="parent_guid_c3" DataTable="comments"/> | ||
<MigrateFrom Data="parent_guid" DataTable="comments"/> | ||
<MigrateToSplit Data="parent_guid_c1" DataTable="comments"/> | ||
<MigrateToSplit Data="parent_guid_c2" DataTable="comments"/> | ||
<MigrateToSplit Data="parent_guid_c3" DataTable="comments"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testMindsV9NewColumnsPreviousVersion-dataMigration.xmi
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
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testMindsV9NewTableMigrationFromOneTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="sendwyre_accounts"> | ||
<migcol> | ||
<ColTo Data="user_guid" DataTable="sendwyre_accounts"/> | ||
<ColFrom Data="key" DataTable="user"/> | ||
<MigrateTo Data="user_guid" DataTable="sendwyre_accounts"/> | ||
<MigrateFrom Data="key" DataTable="user"/> | ||
</migcol> | ||
<migcol Description="It is not possible to migrate data to the column sendwyre_account_id as it is storing new data that is not stored in another table"/> | ||
</MigrationTable> |
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testThingsBoardV11NewColumnNonKey-dataMigration.xmi
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="entity_view"> | ||
<migcol multipleMigration="true"> | ||
<ColTo Data="dev_type" Key="tenant_id , customer_id" DataTable="entity_view"/> | ||
<ColFrom Data="type" Key="tenant_id , customer_id" DataTable="device"/> | ||
<MigrateTo Data="dev_type" Key="tenant_id , customer_id" DataTable="entity_view"/> | ||
<MigrateFrom Data="type" Key="tenant_id , customer_id" DataTable="device"/> | ||
</migcol> | ||
</MigrationTable> |
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testThingsBoardV12NewColumnPK-dataMigration.xmi
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="entity_view2_old"> | ||
<migcol multipleMigration="true"> | ||
<ColTo Data="dev_type" Key="tenant_id , customer_id" DataTable="entity_view2_old" NewTableName="entity_view2"/> | ||
<ColFrom Data="type" Key="tenant_id , customer_id" DataTable="device"/> | ||
<MigrateTo Data="dev_type" Key="tenant_id , customer_id" DataTable="entity_view2_old" NewTableName="entity_view2"/> | ||
<MigrateFrom Data="type" Key="tenant_id , customer_id" DataTable="device"/> | ||
</migcol> | ||
</MigrationTable> |
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testThingsBoardV13NewColumnKeyInTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="entity_view_devpk"> | ||
<migcol> | ||
<ColTo Data="dev_type" Key="device_id" DataTable="entity_view_devpk"/> | ||
<ColFrom Data="type" Key="id" DataTable="device"/> | ||
<MigrateTo Data="dev_type" Key="device_id" DataTable="entity_view_devpk"/> | ||
<MigrateFrom Data="type" Key="id" DataTable="device"/> | ||
</migcol> | ||
</MigrationTable> |
8 changes: 4 additions & 4 deletions
8
modevo-transform/dat/bmk/testWireV2NewTableMigrationFromOneTable-dataMigration.xmi
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<MigrationTable xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="DataMigration" name="billing_team_member"> | ||
<migcol> | ||
<ColTo Data="team" DataTable="billing_team_member"/> | ||
<ColFrom Data="team" DataTable="user_team"/> | ||
<MigrateTo Data="team" DataTable="billing_team_member"/> | ||
<MigrateFrom Data="team" DataTable="user_team"/> | ||
</migcol> | ||
<migcol> | ||
<ColTo Data="user" DataTable="billing_team_member"/> | ||
<ColFrom Data="user" DataTable="user_team"/> | ||
<MigrateTo Data="user" DataTable="billing_team_member"/> | ||
<MigrateFrom Data="user" DataTable="user_team"/> | ||
</migcol> | ||
</MigrationTable> |
4 changes: 2 additions & 2 deletions
4
modevo-transform/dat/bmk/testWireV8NewTableMigrationFromPreviousVersion-dataMigration.xmi
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
Oops, something went wrong.