OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 86 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 86 Rev 153
Line 1... Line 1...
1
package org.openconcerto.modules.extensionbuilder;
1
package org.openconcerto.modules.extensionbuilder;
2
 
2
 
3
import java.awt.event.ActionEvent;
3
import java.awt.event.ActionEvent;
4
import java.io.IOException;
4
import java.io.IOException;
-
 
5
import java.sql.SQLException;
5
import java.util.ArrayList;
6
import java.util.ArrayList;
6
import java.util.List;
7
import java.util.List;
7
import java.util.Map;
8
import java.util.Map;
8
 
9
 
9
import javax.swing.AbstractAction;
10
import javax.swing.AbstractAction;
Line 34... Line 35...
34
        super(f);
35
        super(f);
35
 
36
 
36
    }
37
    }
37
 
38
 
38
    @Override
39
    @Override
39
    protected void install(DBContext ctxt) {
40
    protected void install(DBContext ctxt) throws SQLException, IOException {
40
        super.install(ctxt);
41
        super.install(ctxt);
41
        if (ctxt.getRoot().getTable(TABLE_NAME) == null) {
42
        if (ctxt.getRoot().getTable(TABLE_NAME) == null) {
42
            final SQLCreateTable createTable = ctxt.getCreateTable(TABLE_NAME);
43
            final SQLCreateTable createTable = ctxt.getCreateTable(TABLE_NAME);
43
            createTable.addVarCharColumn("IDENTIFIER", 256);
44
            createTable.addVarCharColumn("IDENTIFIER", 256);
44
            createTable.addVarCharColumn("XML", 30000);
45
            createTable.addVarCharColumn("XML", 30000);