Skip to content

Commit

Permalink
refactor(crowdsource): db migration script
Browse files Browse the repository at this point in the history
refs #1674
  • Loading branch information
jo-elimu committed Jul 11, 2024
1 parent 8994d3b commit 6cd2dfe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/main/resources/META-INF/jpa-schema-export.sql
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@
create table AudioContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down Expand Up @@ -334,7 +333,6 @@
create table ImageContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand All @@ -358,7 +356,6 @@
create table LetterContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down Expand Up @@ -406,7 +403,6 @@
create table LetterSoundCorrespondenceContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down Expand Up @@ -448,7 +444,6 @@
create table NumberContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down Expand Up @@ -493,7 +488,6 @@
create table SoundContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down Expand Up @@ -529,7 +523,6 @@
create table StoryBookContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down Expand Up @@ -666,7 +659,6 @@
create table WordContributionEvent (
id bigint not null auto_increment,
comment varchar(1000),
platform varchar(255),
revisionNumber integer,
time datetime,
timeSpentMs bigint,
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/db/migration/2004004.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 2.4.4

ALTER TABLE `AudioContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `ImageContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `LetterContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `LetterSoundCorrespondenceContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `NumberContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `SoundContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `StoryBookContributionEvent` DROP COLUMN `platform`;
ALTER TABLE `WordContributionEvent` DROP COLUMN `platform`;

0 comments on commit 6cd2dfe

Please sign in to comment.