feat: change document commnet db type to text (#182)

This commit is contained in:
vran 2022-05-17 12:07:54 +08:00 committed by GitHub
parent d345fee98f
commit 02c76cdbba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View File

@ -86,7 +86,7 @@ public class TableColumnDocument extends TableImpl<TableColumnDocumentRecord> {
/**
* The column <code>databasir.table_column_document.comment</code>.
*/
public final TableField<TableColumnDocumentRecord, String> COMMENT = createField(DSL.name("comment"), SQLDataType.VARCHAR(512), this, "");
public final TableField<TableColumnDocumentRecord, String> COMMENT = createField(DSL.name("comment"), SQLDataType.CLOB, this, "");
/**
* The column <code>databasir.table_column_document.default_value</code>.

View File

@ -74,7 +74,7 @@ public class TableDocument extends TableImpl<TableDocumentRecord> {
/**
* The column <code>databasir.table_document.comment</code>.
*/
public final TableField<TableDocumentRecord, String> COMMENT = createField(DSL.name("comment"), SQLDataType.VARCHAR(512), this, "");
public final TableField<TableDocumentRecord, String> COMMENT = createField(DSL.name("comment"), SQLDataType.CLOB, this, "");
/**
* The column <code>databasir.table_document.create_at</code>.

View File

@ -6,14 +6,15 @@ package com.databasir.dao.tables.records;
import com.databasir.dao.tables.DatabaseType;
import com.databasir.dao.tables.pojos.DatabaseTypePojo;
import java.time.LocalDateTime;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record13;
import org.jooq.Row13;
import org.jooq.impl.UpdatableRecordImpl;
import java.time.LocalDateTime;
/**
* customer database types

View File

@ -0,0 +1,4 @@
ALTER TABLE databasir.table_document
MODIFY COLUMN `comment` TEXT DEFAULT NULL;
ALTER TABLE databasir.table_column_document
MODIFY COLUMN `comment` TEXT DEFAULT NULL;