Skip to content

Commit 0ca9c62

Browse files
committed
fix: add analyzed_chunks table and remove obsolete changelog files
1 parent d53642c commit 0ca9c62

File tree

6 files changed

+45
-111
lines changed

6 files changed

+45
-111
lines changed

src/main/resources/db/changelog/001-changelog.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,50 @@
130130
<column name="error_message" type="TEXT"/>
131131
</createTable>
132132
</changeSet>
133+
<changeSet id="1710000000000-2" author="harmonia">
134+
<preConditions onFail="MARK_RAN">
135+
<not>
136+
<tableExists tableName="analyzed_chunks"/>
137+
</not>
138+
</preConditions>
139+
<createTable tableName="analyzed_chunks">
140+
<column name="chunk_id" type="UUID">
141+
<constraints primaryKey="true" nullable="false"/>
142+
</column>
143+
<column name="participation_id" type="UUID">
144+
<constraints nullable="false"/>
145+
</column>
146+
<column name="chunk_identifier" type="VARCHAR(255)"/>
147+
<column name="author_email" type="VARCHAR(255)"/>
148+
<column name="author_name" type="VARCHAR(255)"/>
149+
<column name="classification" type="VARCHAR(255)"/>
150+
<column name="effort_score" type="DOUBLE"/>
151+
<column name="reasoning" type="TEXT"/>
152+
<column name="commit_shas" type="TEXT"/>
153+
<column name="commit_messages" type="TEXT"/>
154+
<column name="timestamp" type="TIMESTAMP"/>
155+
<column name="lines_changed" type="INT"/>
156+
<column name="is_bundled" type="BOOLEAN"/>
157+
<column name="chunk_index" type="INT"/>
158+
<column name="total_chunks" type="INT"/>
159+
<column name="is_error" type="BOOLEAN"/>
160+
<column name="error_message" type="TEXT"/>
161+
</createTable>
162+
<addForeignKeyConstraint
163+
baseTableName="analyzed_chunks"
164+
baseColumnNames="participation_id"
165+
constraintName="fk_analyzed_chunks_participation"
166+
referencedTableName="participations"
167+
referencedColumnNames="team_participation_id"/>
168+
<createIndex tableName="analyzed_chunks" indexName="idx_analyzed_chunks_participation">
169+
<column name="participation_id"/>
170+
</createIndex>
171+
</changeSet>
172+
<changeSet id="1736466000-1" author="harmonia">
173+
<addColumn tableName="participations">
174+
<column name="cqi" type="DOUBLE"/>
175+
<column name="is_suspicious" type="BOOLEAN"/>
176+
</addColumn>
177+
</changeSet>
133178

134179
</databaseChangeLog>

src/main/resources/db/changelog/002-changelog.xml

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/main/resources/db/changelog/003-changelog.xml

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/main/resources/db/changelog/004-changelog.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/resources/db/changelog/005-changelog.xml

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/resources/db/changelog/db.changelog-master.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66
objectQuotingStrategy="QUOTE_ONLY_RESERVED_WORDS">
77

88
<include file="db/changelog/001-changelog.xml"/>
9-
<include file="db/changelog/002-changelog.xml"/>
10-
<include file="db/changelog/003-changelog.xml"/>
11-
<include file="db/changelog/004-changelog.xml"/>
12-
<include file="db/changelog/005-changelog.xml"/>
139

1410
</databaseChangeLog>

0 commit comments

Comments
 (0)