Skip to content

Commit

Permalink
create db migration(#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-flo committed Jan 28, 2025
1 parent 8eabbde commit 72b78fa
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" 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/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
<changeSet author="iam-flo" id="1738063112622-1">
<createTable tableName="pull_request_bad_practice">
<column name="id" type="BIGINT">
<constraints nullable="false" primaryKey="true" primaryKeyName="pull_request_bad_practicePK"/>
</column>
<column name="description" type="VARCHAR(255)"/>
<column name="resolved" type="BOOLEAN">
<constraints nullable="false"/>
</column>
<column name="title" type="VARCHAR(255)"/>
<column name="pullrequest_id" type="BIGINT"/>
</createTable>
</changeSet>
<changeSet author="iam-flo" id="1738063112622-2">
<addForeignKeyConstraint baseColumnNames="pullrequest_id" baseTableName="pull_request_bad_practice" constraintName="FK3e8oyqf1a5g1bspal23e1r4nr" deferrable="false" initiallyDeferred="false" referencedColumnNames="id" referencedTableName="issue" validate="true"/>
</changeSet>
</databaseChangeLog>
1 change: 1 addition & 0 deletions server/application-server/src/main/resources/db/master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
<include file="./changelog/1732966971482_changelog.xml" relativeToChangelogFile="true"/>
<include file="./changelog/1733673611832_changelog.xml" relativeToChangelogFile="true"/>
<include file="./changelog/1737749442154_changelog.xml" relativeToChangelogFile="true"/>
<include file="./changelog/1738063112622_changelog.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<brn-collapsible>
<section hlmCard>
<div class="pl-6 pr-2">
<div class="pt-2 pl-6 pr-2">
<div class="flex justify-between items-center text-sm text-github-muted-foreground">
<span class="font-medium flex justify-center items-center space-x-1">
@if (isLoading()) {
Expand Down

0 comments on commit 72b78fa

Please sign in to comment.