finish plugin function
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
||||
|
||||
<changeSet id="20260702143000-1" author="system">
|
||||
<createSequence sequenceName="sis_media_seq" startValue="1" incrementBy="1"/>
|
||||
</changeSet>
|
||||
|
||||
<changeSet id="20260702143000-2" author="system">
|
||||
<createTable tableName="sis_media">
|
||||
<column name="id" type="bigint">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="original_filename" type="varchar(500)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="stored_filename" type="varchar(500)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="file_url" type="varchar(1000)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="mime_type" type="varchar(100)"/>
|
||||
<column name="file_size" type="bigint"/>
|
||||
<column name="alt_text" type="varchar(500)"/>
|
||||
<column name="media_type" type="varchar(20)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="created_by" type="varchar(50)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="created_date" type="timestamp"/>
|
||||
<column name="last_modified_by" type="varchar(50)"/>
|
||||
<column name="last_modified_date" type="timestamp"/>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<databaseChangeLog
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
|
||||
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
||||
|
||||
<!--
|
||||
Added the entity Plugin.
|
||||
-->
|
||||
<changeSet id="20260702144700-1" author="antigravity">
|
||||
<createTable tableName="sis_plugin">
|
||||
<column name="id" type="bigint">
|
||||
<constraints primaryKey="true" nullable="false"/>
|
||||
</column>
|
||||
<column name="plugin_key" type="varchar(100)">
|
||||
<constraints nullable="false" unique="true" uniqueConstraintName="ux_sis_plugin__plugin_key"/>
|
||||
</column>
|
||||
<column name="name" type="varchar(255)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="description" type="varchar(1000)">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="version" type="varchar(50)">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="author" type="varchar(255)">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="status" type="varchar(20)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<!-- Audit fields -->
|
||||
<column name="created_by" type="varchar(50)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="created_date" type="timestamp"/>
|
||||
<column name="last_modified_by" type="varchar(50)"/>
|
||||
<column name="last_modified_date" type="timestamp"/>
|
||||
</createTable>
|
||||
|
||||
<createSequence sequenceName="sis_plugin_seq" startValue="1" incrementBy="1"/>
|
||||
|
||||
<!-- Insert sample plugin -->
|
||||
<insert tableName="sis_plugin">
|
||||
<column name="id" valueSequenceNext="sis_plugin_seq"/>
|
||||
<column name="plugin_key" value="sampleplugin"/>
|
||||
<column name="name" value="Sample Plugin"/>
|
||||
<column name="description" value="A sample plugin to demonstrate the HookManager."/>
|
||||
<column name="version" value="1.0.0"/>
|
||||
<column name="author" value="Admin"/>
|
||||
<column name="status" value="ACTIVE"/>
|
||||
<column name="created_by" value="system"/>
|
||||
<column name="created_date" valueDate="CURRENT_TIMESTAMP"/>
|
||||
</insert>
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
@@ -26,6 +26,8 @@
|
||||
<include file="config/liquibase/changelog/20260629084709_add_page_layout.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20260629163500_add_wordpress_roles.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20260629165300_add_totp_to_user.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20260702143000_add_media_entity.xml" relativeToChangelogFile="false"/>
|
||||
<include file="config/liquibase/changelog/20260702144700_add_plugin_entity.xml" relativeToChangelogFile="false"/>
|
||||
<!-- jhipster-needle-liquibase-add-changelog - JHipster will add liquibase changelogs here -->
|
||||
<!-- jhipster-needle-liquibase-add-constraints-changelog - JHipster will add liquibase constraints changelogs here -->
|
||||
<!-- jhipster-needle-liquibase-add-incremental-changelog - JHipster will add incremental liquibase changelogs here -->
|
||||
|
||||
Reference in New Issue
Block a user