-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from europeana/MET-1775_Fix_for_data_set_assi…
…gnments_by_revision_id_table Met 1775 fix for data set assignments by revision id table
- Loading branch information
Showing
9 changed files
with
320 additions
and
47 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
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
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
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
19 changes: 19 additions & 0 deletions
19
...ions/service/mcs/V13/V13_1__create_table_data_set_assignments_by_revision_id_buckets.java
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,19 @@ | ||
package migrations.service.mcs.V13; | ||
|
||
import com.contrastsecurity.cassandra.migration.api.JavaMigration; | ||
import com.datastax.driver.core.Session; | ||
|
||
public class V13_1__create_table_data_set_assignments_by_revision_id_buckets implements JavaMigration { | ||
|
||
@Override | ||
public void migrate(Session session) throws Exception { | ||
|
||
session.execute( | ||
"CREATE TABLE data_set_assignments_by_revision_id_buckets (\n" + | ||
" object_id varchar,\n" + | ||
" bucket_id timeuuid,\n" + | ||
" rows_count counter,\n" + | ||
" PRIMARY KEY (object_id, bucket_id)\n" + | ||
") WITH comment='Keep track of number of rows in a bucket for provider and dataset id assignments.';\n"); | ||
} | ||
} |
Oops, something went wrong.