Search in sources :

Example 1 with Comments

use of social.Comments in project common by zenlunatics.

the class Minutes method init.

// --------------------------------------------------------------------------
@Override
public void init(DBConnection db) {
    JDBCTable table_def = new JDBCTable().add(new JDBCColumn("date", Types.DATE)).add(new JDBCColumn("summary", Types.VARCHAR)).add(new JDBCColumn("text", Types.VARCHAR)).add(new JDBCColumn("_timestamp_", Types.TIMESTAMP)).add(new JDBCColumn("_owner_", "people"));
    for (JDBCColumn column : m_columns) table_def.add(column);
    addColumns(table_def);
    db.getTable(m_table, true).createMissingColumns(table_def, db).dropExtraColumns(table_def, db);
    db.createManyTable(m_table, m_table + "_attachments", "filename VARCHAR");
    m_site.addModule(new Comments(m_table, m_site, db), db);
}
Also used : JDBCTable(db.JDBCTable) Comments(social.Comments) JDBCColumn(db.JDBCColumn)

Aggregations

JDBCColumn (db.JDBCColumn)1 JDBCTable (db.JDBCTable)1 Comments (social.Comments)1