This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/share/ddl/PostgreSQL/upgrade/6-7/001-auto.sql
2017-09-13 15:32:56 +01:00

15 lines
314 B
PL/PgSQL

-- Convert schema 'share/ddl/_source/deploy/6/001-auto.yml' to 'share/ddl/_source/deploy/7/001-auto.yml':;
;
BEGIN;
;
ALTER TABLE leaderboard_values ALTER COLUMN value TYPE numeric(100,0) USING value * 100000;
;
ALTER TABLE transactions ALTER COLUMN value TYPE numeric(100,0) USING value * 100000;
;
COMMIT;