]> ruin.nu Git - ndwebbie.git/commitdiff
Convert alliance and galaxies score/value to bigint
authorMichael Andreen <harv@ruin.nu>
Sat, 3 Oct 2020 15:30:08 +0000 (17:30 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 3 Oct 2020 15:30:08 +0000 (17:30 +0200)
database/bigint.sql [new file with mode: 0644]

diff --git a/database/bigint.sql b/database/bigint.sql
new file mode 100644 (file)
index 0000000..396e4fb
--- /dev/null
@@ -0,0 +1,6 @@
+BEGIN;
+       DROP VIEW alliance_resources;
+       ALTER TABLE alliance_stats ALTER COLUMN score TYPE bigint;
+       ALTER TABLE galaxies ALTER COLUMN score TYPE bigint, ALTER COLUMN value TYPE bigint;
+       \ir views/alliances_resources.sql
+commit;