forked from Olympic/NTO-2025-Backend-TeamTask
36 lines
1.6 KiB
XML
36 lines
1.6 KiB
XML
<?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"
|
|
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
|
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd
|
|
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
|
|
|
|
<changeSet id="2025-11-05--0001-employee" author="anepretimov">
|
|
<preConditions onFail="MARK_RAN">
|
|
<not>
|
|
<tableExists tableName="employee"/>
|
|
</not>
|
|
</preConditions>
|
|
|
|
<createTable tableName="employee">
|
|
<column name="id" type="BIGINT" autoIncrement="true">
|
|
<constraints primaryKey="true" nullable="false"/>
|
|
</column>
|
|
|
|
<column name="name" type="VARCHAR(100)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
|
|
<column name="code" type="VARCHAR(100)">
|
|
<constraints nullable="false" unique="true"/>
|
|
</column>
|
|
|
|
<column name="photo_url" type="VARCHAR(100)"/>
|
|
</createTable>
|
|
</changeSet>
|
|
|
|
</databaseChangeLog> |