Skip to content

Commit

Permalink
added postgres 16.0 support (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: souravbiswassanto <saurov@appscode.com>
  • Loading branch information
souravbiswassanto authored Nov 17, 2023
1 parent 981242a commit 74232e9
Show file tree
Hide file tree
Showing 9 changed files with 2,820 additions and 0 deletions.
22 changes: 22 additions & 0 deletions role_scripts/16/primary/db.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

# Copyright AppsCode Inc. and Contributors
#
# Licensed under the AppsCode Free Trial License 1.0.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Free-Trial-1.0.0.md
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

psql -c 'create database test;'
psql -c 'CREATE TABLE fruits( id SERIAL PRIMARY KEY, name VARCHAR NOT NULL );'
while true; do
sleep 1
psql -c "INSERT INTO fruits(name) VALUES('Orange');"
done
Loading

0 comments on commit 74232e9

Please sign in to comment.