OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 121 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 121 Rev 153
Line 1... Line 1...
1
package org.openconcerto.modules.card;
1
package org.openconcerto.modules.card;
2
 
2
 
3
import java.io.IOException;
3
import java.io.IOException;
-
 
4
import java.sql.SQLException;
4
import java.util.ArrayList;
5
import java.util.ArrayList;
5
import java.util.Arrays;
6
import java.util.Arrays;
6
import java.util.List;
7
import java.util.List;
7
 
8
 
8
import org.openconcerto.erp.config.MainFrame;
9
import org.openconcerto.erp.config.MainFrame;
Line 32... Line 33...
32
        super(f);
33
        super(f);
33
 
34
 
34
    }
35
    }
35
 
36
 
36
    @Override
37
    @Override
37
    protected void install(DBContext ctxt) {
38
    protected void install(DBContext ctxt) throws SQLException, IOException {
38
        super.install(ctxt);
39
        super.install(ctxt);
39
        // TODO use version to upgrade
40
        // TODO use version to upgrade
40
        if (!ctxt.getTablesPreviouslyCreated().contains(TABLE_NAME)) {
41
        if (!ctxt.getTablesPreviouslyCreated().contains(TABLE_NAME)) {
41
            final SQLCreateTable createTable = ctxt.getCreateTable(TABLE_NAME);
42
            final SQLCreateTable createTable = ctxt.getCreateTable(TABLE_NAME);
42
            createTable.addVarCharColumn("SERIAL", 64);
43
            createTable.addVarCharColumn("SERIAL", 64);