OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 150 Rev 153
Line 2... Line 2...
2
 
2
 
3
import static org.openconcerto.sql.TM.getTM;
3
import static org.openconcerto.sql.TM.getTM;
4
 
4
 
5
import java.awt.event.ActionEvent;
5
import java.awt.event.ActionEvent;
6
import java.io.IOException;
6
import java.io.IOException;
-
 
7
import java.sql.SQLException;
7
import java.util.ArrayList;
8
import java.util.ArrayList;
8
import java.util.HashSet;
9
import java.util.HashSet;
9
import java.util.List;
10
import java.util.List;
10
import java.util.Set;
11
import java.util.Set;
11
 
12
 
Line 127... Line 128...
127
    protected void setupComponents(ComponentsContext ctxt) {
128
    protected void setupComponents(ComponentsContext ctxt) {
128
 
129
 
129
    }
130
    }
130
 
131
 
131
    @Override
132
    @Override
132
    protected void install(DBContext ctxt) {
133
    protected void install(DBContext ctxt) throws SQLException, IOException {
133
        super.install(ctxt);
134
        super.install(ctxt);
134
        if (ctxt.getRoot().getTable(TABLE_SITE) == null) {
135
        if (ctxt.getRoot().getTable(TABLE_SITE) == null) {
135
            final SQLCreateTable createTableSite = ctxt.getCreateTable(TABLE_SITE);
136
            final SQLCreateTable createTableSite = ctxt.getCreateTable(TABLE_SITE);
136
            createTableSite.addVarCharColumn("NAME", 500);
137
            createTableSite.addVarCharColumn("NAME", 500);
137
            createTableSite.addForeignColumn("CLIENT");
138
            createTableSite.addForeignColumn("CLIENT");