aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-20 01:43:49 +0300
committerGravatar Vitaly Takmazov2022-12-20 01:58:27 +0300
commit1d3c7f3583cd5807f1c619fad1f379e895c4bdce (patch)
treecee757ecdc78c433ba7bd5553c89212e8d543504 /src/main
parenta3bb23ba498de4a71406e3b050a436619554271b (diff)
Update social tokens field size in the database
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/db/specific/h2/V1.25__update_tokens_size.sql3
-rw-r--r--src/main/resources/db/specific/mariadb/V1.25__update_tokens_size.sql3
-rw-r--r--src/main/resources/db/specific/postgresql/V1.25__update_tokens_size.sql3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/main/resources/db/specific/h2/V1.25__update_tokens_size.sql b/src/main/resources/db/specific/h2/V1.25__update_tokens_size.sql
new file mode 100644
index 00000000..05eefe24
--- /dev/null
+++ b/src/main/resources/db/specific/h2/V1.25__update_tokens_size.sql
@@ -0,0 +1,3 @@
+ALTER TABLE vk MODIFY COLUMN access_token VARCHAR(255);
+ALTER TABLE twitter MODIFY COLUMN access_token VARCHAR(255);
+ALTER TABLE facebook MODIFY COLUMN access_token VARCHAR(255); \ No newline at end of file
diff --git a/src/main/resources/db/specific/mariadb/V1.25__update_tokens_size.sql b/src/main/resources/db/specific/mariadb/V1.25__update_tokens_size.sql
new file mode 100644
index 00000000..05eefe24
--- /dev/null
+++ b/src/main/resources/db/specific/mariadb/V1.25__update_tokens_size.sql
@@ -0,0 +1,3 @@
+ALTER TABLE vk MODIFY COLUMN access_token VARCHAR(255);
+ALTER TABLE twitter MODIFY COLUMN access_token VARCHAR(255);
+ALTER TABLE facebook MODIFY COLUMN access_token VARCHAR(255); \ No newline at end of file
diff --git a/src/main/resources/db/specific/postgresql/V1.25__update_tokens_size.sql b/src/main/resources/db/specific/postgresql/V1.25__update_tokens_size.sql
new file mode 100644
index 00000000..a1c7bbac
--- /dev/null
+++ b/src/main/resources/db/specific/postgresql/V1.25__update_tokens_size.sql
@@ -0,0 +1,3 @@
+ALTER TABLE vk ALTER COLUMN access_token TYPE character varying(255);
+ALTER TABLE twitter ALTER COLUMN access_token TYPE character varying(255);
+ALTER TABLE facebook ALTER COLUMN access_token TYPE character varying(255); \ No newline at end of file