Compare commits
19 Commits
Author | SHA1 | Date |
---|---|---|
Maxime Rainville | a60fc4cf24 | |
Steve Boyd | d2fbce5319 | |
Steve Boyd | beb0f84f2d | |
Guy Sartorelli | 6d5c35116a | |
Steve Boyd | 41fd4718a2 | |
Steve Boyd | 448828c20a | |
Guy Sartorelli | faf9d033ff | |
Steve Boyd | d7b4ccb202 | |
Guy Sartorelli | c9bce8fe57 | |
Sabina Talipova | 4bbabf2421 | |
Steve Boyd | 22e3951244 | |
Steve Boyd | 321d0d853b | |
Steve Boyd | 222f20529c | |
Steve Boyd | c46272e751 | |
Steve Boyd | a709a741b0 | |
Robbie Averill | a7c3450d43 | |
Robbie Averill | 0be39423a3 | |
Maxime Rainville | 3e38f845e3 | |
Ingo Schommer | 66376db094 |
|
@ -0,0 +1,25 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: CI
|
||||
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
|
||||
with:
|
||||
# set phpunit to false to prevent automatic generation of mysql phpunit jobs
|
||||
phpunit: false
|
||||
extra_jobs: |
|
||||
- php: 7.4
|
||||
db: pgsql
|
||||
phpunit: true
|
||||
composer_args: --prefer-lowest
|
||||
- php: 8.0
|
||||
db: pgsql
|
||||
phpunit: true
|
||||
- php: 8.1
|
||||
db: pgsql
|
||||
phpunit: true
|
|
@ -0,0 +1,16 @@
|
|||
name: Dispatch CI
|
||||
|
||||
on:
|
||||
# At 12:20 PM UTC, only on Thursday and Friday
|
||||
schedule:
|
||||
- cron: '20 12 * * 4,5'
|
||||
|
||||
jobs:
|
||||
dispatch-ci:
|
||||
name: Dispatch CI
|
||||
# Only run cron on the silverstripe account
|
||||
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Dispatch CI
|
||||
uses: silverstripe/gha-dispatch-ci@v1
|
|
@ -0,0 +1,17 @@
|
|||
name: Keepalive
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# The 4th of every month at 10:50am UTC
|
||||
schedule:
|
||||
- cron: '50 10 4 * *'
|
||||
|
||||
jobs:
|
||||
keepalive:
|
||||
name: Keepalive
|
||||
# Only run cron on the silverstripe account
|
||||
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Keepalive
|
||||
uses: silverstripe/gha-keepalive@v1
|
|
@ -1,15 +0,0 @@
|
|||
inherit: true
|
||||
|
||||
build:
|
||||
nodes:
|
||||
analysis:
|
||||
tests:
|
||||
override: [php-scrutinizer-run]
|
||||
|
||||
checks:
|
||||
php:
|
||||
code_rating: true
|
||||
duplication: true
|
||||
|
||||
filter:
|
||||
paths: [code/*, tests/*]
|
40
.travis.yml
40
.travis.yml
|
@ -1,40 +0,0 @@
|
|||
version: ~> 1.0
|
||||
|
||||
import:
|
||||
- silverstripe/silverstripe-travis-shared:config/provision/standard.yml
|
||||
|
||||
env:
|
||||
global:
|
||||
- DB=PGSQL
|
||||
|
||||
# Using a custom jobs matrix as every DB=PGSQL and there is alternating PHPUNIT_SUITE's
|
||||
jobs:
|
||||
fast_finish: true
|
||||
include:
|
||||
- php: 7.1
|
||||
env:
|
||||
- REQUIRE_INSTALLER="4.5.x-dev"
|
||||
- PHPCS_TEST=1
|
||||
- PHPUNIT_TEST=1
|
||||
- PHPUNIT_SUITE="framework"
|
||||
- php: 7.2
|
||||
env:
|
||||
- REQUIRE_INSTALLER="4.6.x-dev"
|
||||
- PHPUNIT_COVERAGE_TEST=1
|
||||
- PHPUNIT_SUITE="postgresql"
|
||||
- php: 7.3
|
||||
env:
|
||||
- REQUIRE_INSTALLER="4.7.x-dev"
|
||||
- PHPUNIT_TEST=1
|
||||
- PHPUNIT_SUITE="framework"
|
||||
- php: 7.4
|
||||
env:
|
||||
- REQUIRE_INSTALLER="4.x-dev"
|
||||
- PHPUNIT_TEST=1
|
||||
- PHPUNIT_SUITE="postgresql"
|
||||
- php: 8.0
|
||||
env:
|
||||
- REQUIRE_INSTALLER="4.x-dev"
|
||||
- PHPUNIT_TEST=1
|
||||
- PHPUNIT_SUITE="framework"
|
||||
- COMPOSER_INSTALL_ARG=--ignore-platform-reqs
|
16
README.md
16
README.md
|
@ -1,15 +1,11 @@
|
|||
# PostgreSQL Module Module
|
||||
|
||||
[![Build Status](https://travis-ci.org/silverstripe/silverstripe-postgresql.png?branch=master)](https://travis-ci.org/silverstripe/silverstripe-postgresql)
|
||||
[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
|
||||
|
||||
## Maintainer Contact
|
||||
|
||||
* Sam Minnee (Nickname: sminnee) <sam@silverstripe.com>
|
||||
[![CI](https://github.com/silverstripe/silverstripe-postgresql/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-postgresql/actions/workflows/ci.yml)
|
||||
[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
|
||||
|
||||
## Requirements
|
||||
|
||||
* SilverStripe 4.0
|
||||
* Silverstripe 4.0
|
||||
* PostgreSQL >=9.2
|
||||
* Note: PostgreSQL 10 has not been tested
|
||||
|
||||
|
@ -47,6 +43,12 @@ See [docs/en](docs/en/README.md) for more information about configuring the modu
|
|||
All column and table names must be double-quoted. PostgreSQL automatically
|
||||
lower-cases columns, and your queries will fail if you don't.
|
||||
|
||||
Collations have known issues when installed on Alpine, MacOS X and BSD derivatives
|
||||
(see [PostgreSQL FAQ](https://wiki.postgresql.org/wiki/FAQ#Why_do_my_strings_sort_incorrectly.3F)).
|
||||
We do not support such installations, although they still may work correctly for you.
|
||||
As a workaround for PostgreSQL 10+ you could manually switch to ICU collations (e.g. und-x-icu).
|
||||
There are no known workarounds for PostgreSQL <10.
|
||||
|
||||
Ts_vector columns are not automatically detected by the built-in search
|
||||
filters. That means if you're doing a search through the CMS on a ModelAdmin
|
||||
object, it will use LIKE queries which are very slow. If you're writing your
|
||||
|
|
|
@ -19,10 +19,9 @@
|
|||
"silverstripe/vendor-plugin": "^1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"sminnee/phpunit": "^5.7",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"squizlabs/php_codesniffer": "^3"
|
||||
},
|
||||
"extra": { },
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"SilverStripe\\PostgreSQL\\": "code/",
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||
|
||||
<testsuite name="Default">
|
||||
|
|
Loading…
Reference in New Issue