Revision 1a251b19
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
sql/Pg-upgrade2/taxzone_sortkey.pl | ||
---|---|---|
15 | 15 |
|
16 | 16 |
my $query = qq|ALTER TABLE tax_zones ADD COLUMN sortkey INTEGER|; |
17 | 17 |
$self->db_query($query); |
18 |
$self->dbh->commit; |
|
19 | 18 |
|
20 | 19 |
my $sortkey = 1; |
21 | 20 |
$query = qq|SELECT * FROM tax_zones ORDER BY id|; |
... | ... | |
29 | 28 |
} |
30 | 29 |
$sth->finish; |
31 | 30 |
|
32 |
$self->dbh->commit; |
|
33 |
|
|
34 | 31 |
$query = qq|ALTER TABLE tax_zones ALTER COLUMN sortkey SET NOT NULL|; |
35 | 32 |
$self->db_query($query); |
36 | 33 |
|
Auch abrufbar als: Unified diff
PgUpgrade: nicht während eines Upgrades commiten