From bf4c4edb12dc61b0231d2fa4e5005d8a89a592f1 Mon Sep 17 00:00:00 2001 From: z-Wind Date: Sat, 13 Apr 2024 14:59:14 +0800 Subject: [PATCH] add mysql/postgresql test to github action --- .github/workflows/ci.yml | 190 +++++++- makefile | 21 +- src/error.rs | 2 +- src/model/account.rs | 84 +++- src/model/split.rs | 20 +- src/query.rs | 56 ++- tests/db/mysql/complex_sample.gnucash.sql | 232 +++++----- .../db/postgresql/complex_sample.gnucash.sql | 431 ++++++------------ 8 files changed, 555 insertions(+), 481 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0d0e4a..3429bc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,14 +34,39 @@ jobs: - name: Rust Cache dependencies uses: Swatinem/rust-cache@v2 - - name: Clippy without Decimal + - name: Clippy --features sqlite,postgresql,mysql,xml run: cargo clippy --features sqlite,postgresql,mysql,xml --all-targets -- -D warnings - - name: Clippy with Decimal + + - name: Clippy --features sqlite + run: cargo clippy --features sqlite --all-targets -- -D warnings + + - name: Clippy --features postgresql + run: cargo clippy --features postgresql --all-targets -- -D warnings + + - name: Clippy --features mysql + run: cargo clippy --features mysql --all-targets -- -D warnings + + - name: Clippy --features xml + run: cargo clippy --features xml --all-targets -- -D warnings + + - name: Clippy --features sqlite,postgresql,mysql,xml,decimal run: cargo clippy --features sqlite,postgresql,mysql,xml,decimal --all-targets -- -D warnings + - name: Clippy --features sqlite,decimal + run: cargo clippy --features sqlite,decimal --all-targets -- -D warnings - test: - name: Test + - name: Clippy --features postgresql,decimal + run: cargo clippy --features postgresql,decimal --all-targets -- -D warnings + + - name: Clippy --features mysql,decimal + run: cargo clippy --features mysql,decimal --all-targets -- -D warnings + + - name: Clippy --features xml,decimal + run: cargo clippy --features xml,decimal --all-targets -- -D warnings + + + test_xml: + name: Test XML needs: [lint] runs-on: ${{ matrix.os }} strategy: @@ -50,6 +75,7 @@ jobs: - ubuntu-latest - macos-latest - windows-latest + steps: - uses: actions/checkout@v4 @@ -59,24 +85,148 @@ jobs: - name: Install latest nextest release uses: taiki-e/install-action@nextest - # - name: Run tests --features sqlite,postgresql,mysql,xml - # run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features sqlite,postgresql,mysql,xml - - name: Run tests --features sqlite - run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features sqlite - # - name: Run tests --features postgresql - # run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features postgresql - # - name: Run tests --features mysql - # run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features mysql - name: Run tests --features xml run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features xml - # - name: Run tests --features sqlite,postgresql,mysql,xml,decimal - # run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features sqlite,postgresql,mysql,xml,decimal - - name: Run tests --features sqlite,decimal - run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features sqlite,decimal - # - name: Run tests --features postgresql,decimal - # run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features postgresql,decimal - # - name: Run tests --features mysql,decimal - # run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features mysql,decimal + - name: Run tests --features xml,decimal run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features xml,decimal + - name: Run doc tests + run: | + cargo test --doc --features xml + cargo test --doc --features xml,decimal + + + test_sqlite: + name: Test SQLite + needs: [lint] + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Rust Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Install latest nextest release + uses: taiki-e/install-action@nextest + + - name: Check Schema + run: cargo check --features sqlite,schema --all-targets + env: + DATABASE_URL: "sqlite://tests/db/sqlite/complex_sample.gnucash?mode=ro" + + - name: Run tests --features sqlite + run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features sqlite + + - name: Run tests --features sqlite,decimal + run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features sqlite,decimal + + - name: Run doc tests + run: | + cargo test --doc --features sqlite + cargo test --doc --features sqlite,decimal + + test_mysql: + name: Test MySQL + needs: [lint] + runs-on: ubuntu-latest + + services: + mysql: + image: mysql:8.0 + ports: + - 3306:3306 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_USER: user + MYSQL_PASSWORD: secret + MYSQL_DATABASE: complex_sample.gnucash + options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 + + steps: + - uses: actions/checkout@v4 + + - name: Rust Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Install latest nextest release + uses: taiki-e/install-action@nextest + + - name: Prepare Database + run: | + mysql --version + mysql -u user --password=secret --host 127.0.0.1 --port 3306 complex_sample.gnucash < "${{ github.workspace }}/tests/db/mysql/complex_sample.gnucash.sql" + + - name: Check Schema + run: cargo check --features mysql,schema --all-targets + env: + DATABASE_URL: "mysql://user:secret@localhost/complex_sample.gnucash" + + - name: Run tests --features mysql + run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features mysql + + - name: Run tests --features mysql,decimal + run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features mysql,decimal + + - name: Run doc tests + run: | + cargo test --doc --features mysql + cargo test --doc --features mysql,decimal + + + test_postgresql: + name: Test PostgreSQL + needs: [lint] + runs-on: ubuntu-latest + + services: + postgres: + image: postgres:16.2 + env: + POSTGRES_USER: user + POSTGRES_PASSWORD: secret + POSTGRES_DB: complex_sample.gnucash + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + + steps: + - uses: actions/checkout@v4 + + - name: Rust Cache dependencies + uses: Swatinem/rust-cache@v2 + + - name: Install latest nextest release + uses: taiki-e/install-action@nextest + + - name: Prepare Database + run: | + psql --version + psql -d "postgresql://user:secret@localhost:5432/complex_sample.gnucash" < "${{ github.workspace }}/tests/db/postgresql/complex_sample.gnucash.sql" + + - name: Check Schema + run: cargo check --features postgresql,schema --all-targets + env: + DATABASE_URL: "postgresql://user:secret@localhost:5432/complex_sample.gnucash" + + - name: Run tests --features postgresql + run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features postgresql + + - name: Run tests --features postgresql,decimal + run: cargo nextest run --config-file ${{ github.workspace }}/.github/nextest.toml --profile ci --features postgresql,decimal + + - name: Run doc tests + run: | + cargo test --doc --features postgresql + cargo test --doc --features postgresql,decimal \ No newline at end of file diff --git a/makefile b/makefile index 88a2866..e1ae38b 100755 --- a/makefile +++ b/makefile @@ -22,15 +22,16 @@ check: cargo check --features sqlite,postgresql,mysql,xml,decimal --all-targets cargo clippy --features sqlite,postgresql,mysql,xml,decimal --all-targets checkschema: - DATABASE_URL=sqlite://tests/db/sqlite/complex_sample.gnucash?mode=ro; - cargo check --features sqlite,schema - DATABASE_URL=mysql://user:secret@localhost/complex_sample.gnucash; - cargo check --features mysql,schema - DATABASE_URL=postgresql://user:secret@localhost:5432/complex_sample.gnucash; - cargo check --features postgresql,schema + export DATABASE_URL=sqlite://tests/db/sqlite/complex_sample.gnucash?mode=ro + cargo check --features sqlite,schema --all-targets + export DATABASE_URL=mysql://user:secret@localhost/complex_sample.gnucash + cargo check --features mysql,schema --all-targets + export DATABASE_URL=postgresql://user:secret@localhost:5432/complex_sample.gnucash + cargo check --features postgresql,schema --all-targets publish: cargo publish --all-features -prepare: - cargo sqlx prepare --database-url sqlite://tests/db/sqlite/complex_sample.gnucash?mode=ro -- --tests --features sqlite,schema - cargo sqlx prepare --database-url mysql://user:secret@localhost/complex_sample.gnucash -- --tests --features mysql,schema - cargo sqlx prepare --database-url postgresql://user:secret@localhost:5432/complex_sample.gnucash -- --tests --features postgres,schema +backup: +# Using Gnucash to convert test files into MySQL and PostgreSQL formats, +# then dump them out, and restore them in the testing environment. + pg_dump -U user -f "tests/db/postgresql/complex_sample.gnucash.sql" complex_sample.gnucash + mysqldump -h localhost -u user -p complex_sample.gnucash > "tests/db/mysql/complex_sample.gnucash.sql" \ No newline at end of file diff --git a/src/error.rs b/src/error.rs index 3394143..b856c1e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -14,7 +14,7 @@ pub enum Error { #[error("I/O error: {0}")] IO(#[from] std::io::Error), - #[cfg(any(feature = "sqlite", feature = "postgres", feature = "mysql"))] + #[cfg(any(feature = "sqlite", feature = "postgresql", feature = "mysql"))] #[error("SQLx error: {0}")] Sql(#[from] sqlx::Error), diff --git a/src/model/account.rs b/src/model/account.rs index bfdd331..fbe28e0 100644 --- a/src/model/account.rs +++ b/src/model/account.rs @@ -276,9 +276,24 @@ mod tests { let children = account.children().await.unwrap(); assert_eq!(children.len(), 3); - assert_eq!(children[0].name, "Current"); - assert_eq!(children[1].name, "Fixed"); - assert_eq!(children[2].name, "Broker"); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Current"), + "children does not contains Current" + ); + assert!( + children.iter().map(|x| &x.name).any(|name| name == "Fixed"), + "children does not contains Fixed" + ); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Broker"), + "children does not contains Broker" + ); } #[tokio::test] @@ -452,9 +467,24 @@ mod tests { let children = account.children().await.unwrap(); assert_eq!(children.len(), 3); - assert_eq!(children[0].name, "Current"); - assert_eq!(children[1].name, "Fixed"); - assert_eq!(children[2].name, "Broker"); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Current"), + "children does not contains Current" + ); + assert!( + children.iter().map(|x| &x.name).any(|name| name == "Fixed"), + "children does not contains Fixed" + ); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Broker"), + "children does not contains Broker" + ); } #[tokio::test] @@ -628,9 +658,24 @@ mod tests { let children = account.children().await.unwrap(); assert_eq!(children.len(), 3); - assert_eq!(children[0].name, "Current"); - assert_eq!(children[1].name, "Fixed"); - assert_eq!(children[2].name, "Broker"); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Current"), + "children does not contains Current" + ); + assert!( + children.iter().map(|x| &x.name).any(|name| name == "Fixed"), + "children does not contains Fixed" + ); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Broker"), + "children does not contains Broker" + ); } #[tokio::test] @@ -809,9 +854,24 @@ mod tests { let children = account.children().await.unwrap(); assert_eq!(children.len(), 3); - assert_eq!(children[0].name, "Current"); - assert_eq!(children[1].name, "Fixed"); - assert_eq!(children[2].name, "Broker"); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Current"), + "children does not contains Current" + ); + assert!( + children.iter().map(|x| &x.name).any(|name| name == "Fixed"), + "children does not contains Fixed" + ); + assert!( + children + .iter() + .map(|x| &x.name) + .any(|name| name == "Broker"), + "children does not contains Broker" + ); } #[tokio::test] diff --git a/src/model/split.rs b/src/model/split.rs index b5bae13..29d4cdc 100644 --- a/src/model/split.rs +++ b/src/model/split.rs @@ -241,16 +241,16 @@ mod tests { let result = Split::from_with_query(&item, query); assert_eq!(result.guid, "guid"); - assert_eq!(result.tx_guid, "commodity_guid"); - assert_eq!(result.account_guid, "currency_guid"); - assert_eq!(result.memo, "currency_guid"); - assert_eq!(result.action, "currency_guid"); + assert_eq!(result.tx_guid, "tx_guid"); + assert_eq!(result.account_guid, "account_guid"); + assert_eq!(result.memo, "memo"); + assert_eq!(result.action, "action"); assert_eq!(result.reconcile_state, false); assert_eq!( result.reconcile_datetime, NaiveDateTime::parse_from_str("2014-12-24 10:59:00", "%Y-%m-%d %H:%M:%S").ok() ); - assert_eq!(result.lot_guid, "source"); + assert_eq!(result.lot_guid, "lot_guid"); #[cfg(not(feature = "decimal"))] assert_approx_eq!(f64, result.value, 100.0); #[cfg(feature = "decimal")] @@ -332,16 +332,16 @@ mod tests { let result = Split::from_with_query(&item, query); assert_eq!(result.guid, "guid"); - assert_eq!(result.tx_guid, "commodity_guid"); - assert_eq!(result.account_guid, "currency_guid"); - assert_eq!(result.memo, "currency_guid"); - assert_eq!(result.action, "currency_guid"); + assert_eq!(result.tx_guid, "tx_guid"); + assert_eq!(result.account_guid, "account_guid"); + assert_eq!(result.memo, "memo"); + assert_eq!(result.action, "action"); assert_eq!(result.reconcile_state, false); assert_eq!( result.reconcile_datetime, NaiveDateTime::parse_from_str("2014-12-24 10:59:00", "%Y-%m-%d %H:%M:%S").ok() ); - assert_eq!(result.lot_guid, "source"); + assert_eq!(result.lot_guid, "lot_guid"); #[cfg(not(feature = "decimal"))] assert_approx_eq!(f64, result.value, 100.0); #[cfg(feature = "decimal")] diff --git a/src/query.rs b/src/query.rs index 3c93b49..1890c6e 100644 --- a/src/query.rs +++ b/src/query.rs @@ -302,7 +302,13 @@ mod tests { let result = AccountQ::commodity_guid(query, "346629655191dcf59a7e2c2a85b70f69") .await .unwrap(); - assert_eq!(result[0].guid, "fcd795021c976ba75621ec39e75f6214"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "fcd795021c976ba75621ec39e75f6214"), + "result does not contains fcd795021c976ba75621ec39e75f6214" + ); } #[tokio::test] @@ -724,7 +730,13 @@ mod tests { let result = AccountQ::commodity_guid(query, "346629655191dcf59a7e2c2a85b70f69") .await .unwrap(); - assert_eq!(result[0].guid, "fcd795021c976ba75621ec39e75f6214"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "fcd795021c976ba75621ec39e75f6214"), + "result does not contains fcd795021c976ba75621ec39e75f6214" + ); } #[tokio::test] @@ -733,7 +745,13 @@ mod tests { let result = AccountQ::parent_guid(query, "fcd795021c976ba75621ec39e75f6214") .await .unwrap(); - assert_eq!(result[0].guid, "3bc319753945b6dba3e1928abed49e35"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "3bc319753945b6dba3e1928abed49e35"), + "result does not contains 3bc319753945b6dba3e1928abed49e35" + ); } #[tokio::test] @@ -1146,7 +1164,13 @@ mod tests { let result = AccountQ::commodity_guid(query, "346629655191dcf59a7e2c2a85b70f69") .await .unwrap(); - assert_eq!(result[0].guid, "fcd795021c976ba75621ec39e75f6214"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "fcd795021c976ba75621ec39e75f6214"), + "result does not contains fcd795021c976ba75621ec39e75f6214" + ); } #[tokio::test] @@ -1155,7 +1179,13 @@ mod tests { let result = AccountQ::parent_guid(query, "fcd795021c976ba75621ec39e75f6214") .await .unwrap(); - assert_eq!(result[0].guid, "3bc319753945b6dba3e1928abed49e35"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "3bc319753945b6dba3e1928abed49e35"), + "result does not contains 3bc319753945b6dba3e1928abed49e35" + ); } #[tokio::test] @@ -1571,7 +1601,13 @@ mod tests { async fn test_commodity_guid() { let query = setup().await; let result = AccountQ::commodity_guid(query, "EUR").await.unwrap(); - assert_eq!(result[0].guid, "fcd795021c976ba75621ec39e75f6214"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "fcd795021c976ba75621ec39e75f6214"), + "result does not contains fcd795021c976ba75621ec39e75f6214" + ); } #[tokio::test] @@ -1580,7 +1616,13 @@ mod tests { let result = AccountQ::parent_guid(query, "fcd795021c976ba75621ec39e75f6214") .await .unwrap(); - assert_eq!(result[0].guid, "3bc319753945b6dba3e1928abed49e35"); + assert!( + result + .iter() + .map(|x| &x.guid) + .any(|guid| guid == "3bc319753945b6dba3e1928abed49e35"), + "result does not contains 3bc319753945b6dba3e1928abed49e35" + ); } #[tokio::test] diff --git a/tests/db/mysql/complex_sample.gnucash.sql b/tests/db/mysql/complex_sample.gnucash.sql index 28b249e..3e5bfeb 100644 --- a/tests/db/mysql/complex_sample.gnucash.sql +++ b/tests/db/mysql/complex_sample.gnucash.sql @@ -1,13 +1,13 @@ --- MySQL dump 10.13 Distrib 5.5.62, for Win64 (AMD64) +-- MySQL dump 10.13 Distrib 8.0.36, for Win64 (x86_64) -- -- Host: localhost Database: complex_sample.gnucash -- ------------------------------------------------------ --- Server version 8.0.25 +-- Server version 8.0.36 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; @@ -21,17 +21,17 @@ DROP TABLE IF EXISTS `accounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `accounts` ( `guid` varchar(32) NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `account_type` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `account_type` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `commodity_guid` varchar(32) DEFAULT NULL, `commodity_scu` int NOT NULL, `non_std_scu` int NOT NULL, `parent_guid` varchar(32) DEFAULT NULL, - `code` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `description` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `code` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `description` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `hidden` int DEFAULT NULL, `placeholder` int DEFAULT NULL, PRIMARY KEY (`guid`) @@ -54,15 +54,15 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `billterms`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `billterms` ( `guid` varchar(32) NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `description` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `description` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `refcount` int NOT NULL, `invisible` int NOT NULL, `parent` varchar(32) DEFAULT NULL, - `type` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `type` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `duedays` int DEFAULT NULL, `discountdays` int DEFAULT NULL, `discount_num` bigint DEFAULT NULL, @@ -87,7 +87,7 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `books`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `books` ( `guid` varchar(32) NOT NULL, `root_account_guid` varchar(32) NOT NULL, @@ -112,7 +112,7 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `budget_amounts`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `budget_amounts` ( `id` int NOT NULL AUTO_INCREMENT, `budget_guid` varchar(32) NOT NULL, @@ -139,11 +139,11 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `budgets`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `budgets` ( `guid` varchar(32) NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `description` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `description` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `num_periods` int NOT NULL, PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; @@ -164,17 +164,17 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `commodities`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `commodities` ( `guid` varchar(32) NOT NULL, - `namespace` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `mnemonic` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `fullname` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `cusip` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `namespace` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `mnemonic` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `fullname` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `cusip` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `fraction` int NOT NULL, `quote_flag` int NOT NULL, - `quote_source` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `quote_tz` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `quote_source` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `quote_tz` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; /*!40101 SET character_set_client = @saved_cs_client */; @@ -195,12 +195,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `customers`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `customers` ( `guid` varchar(32) NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `notes` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `notes` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `active` int NOT NULL, `discount_num` bigint NOT NULL, `discount_denom` bigint NOT NULL, @@ -208,22 +208,22 @@ CREATE TABLE `customers` ( `credit_denom` bigint NOT NULL, `currency` varchar(32) NOT NULL, `tax_override` int NOT NULL, - `addr_name` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr1` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr2` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr3` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr4` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_fax` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_email` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_name` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_addr1` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_addr2` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_addr3` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_addr4` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_fax` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `shipaddr_email` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `addr_name` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr1` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr2` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr3` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr4` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_phone` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_fax` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_email` varchar(256) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_name` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_addr1` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_addr2` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_addr3` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_addr4` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_phone` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_fax` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `shipaddr_email` varchar(256) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `terms` varchar(32) DEFAULT NULL, `tax_included` int DEFAULT NULL, `taxtable` varchar(32) DEFAULT NULL, @@ -246,13 +246,13 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `employees`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `employees` ( `guid` varchar(32) NOT NULL, - `username` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `language` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `acl` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `username` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `language` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `acl` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `active` int NOT NULL, `currency` varchar(32) NOT NULL, `ccard_guid` varchar(32) DEFAULT NULL, @@ -260,14 +260,14 @@ CREATE TABLE `employees` ( `workday_denom` bigint NOT NULL, `rate_num` bigint NOT NULL, `rate_denom` bigint NOT NULL, - `addr_name` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr1` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr2` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr3` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr4` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_fax` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_email` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `addr_name` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr1` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr2` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr3` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr4` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_phone` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_fax` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_email` varchar(256) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; /*!40101 SET character_set_client = @saved_cs_client */; @@ -287,14 +287,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `entries`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `entries` ( `guid` varchar(32) NOT NULL, `date` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', `date_entered` datetime DEFAULT '1970-01-01 00:00:00', - `description` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `action` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `notes` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `description` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `action` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `notes` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `quantity_num` bigint DEFAULT NULL, `quantity_denom` bigint DEFAULT NULL, `i_acct` varchar(32) DEFAULT NULL, @@ -303,8 +303,8 @@ CREATE TABLE `entries` ( `i_discount_num` bigint DEFAULT NULL, `i_discount_denom` bigint DEFAULT NULL, `invoice` varchar(32) DEFAULT NULL, - `i_disc_type` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `i_disc_how` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `i_disc_type` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `i_disc_how` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `i_taxable` int DEFAULT NULL, `i_taxincluded` int DEFAULT NULL, `i_taxtable` varchar(32) DEFAULT NULL, @@ -339,7 +339,7 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `gnclock`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `gnclock` ( `Hostname` varchar(255) DEFAULT NULL, `PID` int DEFAULT NULL @@ -361,19 +361,19 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `invoices`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `invoices` ( `guid` varchar(32) NOT NULL, - `id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `date_opened` datetime DEFAULT '1970-01-01 00:00:00', `date_posted` datetime DEFAULT '1970-01-01 00:00:00', - `notes` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `notes` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `active` int NOT NULL, `currency` varchar(32) NOT NULL, `owner_type` int DEFAULT NULL, `owner_guid` varchar(32) DEFAULT NULL, `terms` varchar(32) DEFAULT NULL, - `billing_id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `billing_id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `post_txn` varchar(32) DEFAULT NULL, `post_lot` varchar(32) DEFAULT NULL, `post_acc` varchar(32) DEFAULT NULL, @@ -400,12 +400,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `jobs`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `jobs` ( `guid` varchar(32) NOT NULL, - `id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `reference` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `reference` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `active` int NOT NULL, `owner_type` int DEFAULT NULL, `owner_guid` varchar(32) DEFAULT NULL, @@ -428,7 +428,7 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `lots`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `lots` ( `guid` varchar(32) NOT NULL, `account_guid` varchar(32) DEFAULT NULL, @@ -452,12 +452,12 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `orders`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `orders` ( `guid` varchar(32) NOT NULL, - `id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `notes` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `reference` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `notes` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `reference` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `active` int NOT NULL, `date_opened` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', `date_closed` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', @@ -482,14 +482,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `prices`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `prices` ( `guid` varchar(32) NOT NULL, `commodity_guid` varchar(32) NOT NULL, `currency_guid` varchar(32) NOT NULL, `date` datetime NOT NULL DEFAULT '1970-01-01 00:00:00', - `source` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `type` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `source` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `type` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `value_num` bigint NOT NULL, `value_denom` bigint NOT NULL, PRIMARY KEY (`guid`) @@ -512,14 +512,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `recurrences`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `recurrences` ( `id` int NOT NULL AUTO_INCREMENT, `obj_guid` varchar(32) NOT NULL, `recurrence_mult` int NOT NULL, - `recurrence_period_type` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `recurrence_period_type` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `recurrence_period_start` date NOT NULL, - `recurrence_weekend_adjust` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `recurrence_weekend_adjust` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; /*!40101 SET character_set_client = @saved_cs_client */; @@ -539,10 +539,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `schedxactions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `schedxactions` ( `guid` varchar(32) NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `enabled` int NOT NULL, `start_date` date DEFAULT NULL, `end_date` date DEFAULT NULL, @@ -574,14 +574,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `slots`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `slots` ( `id` int NOT NULL AUTO_INCREMENT, `obj_guid` varchar(32) NOT NULL, - `name` varchar(4096) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(4096) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `slot_type` int NOT NULL, `int64_val` bigint DEFAULT NULL, - `string_val` varchar(4096) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `string_val` varchar(4096) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `double_val` double DEFAULT NULL, `timespec_val` datetime DEFAULT '1970-01-01 00:00:00', `guid_val` varchar(32) DEFAULT NULL, @@ -609,14 +609,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `splits`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `splits` ( `guid` varchar(32) NOT NULL, `tx_guid` varchar(32) NOT NULL, `account_guid` varchar(32) NOT NULL, - `memo` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `action` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `reconcile_state` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `memo` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `action` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `reconcile_state` varchar(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `reconcile_date` datetime DEFAULT '1970-01-01 00:00:00', `value_num` bigint NOT NULL, `value_denom` bigint NOT NULL, @@ -645,7 +645,7 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `taxtable_entries`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `taxtable_entries` ( `id` int NOT NULL AUTO_INCREMENT, `taxtable` varchar(32) NOT NULL, @@ -672,10 +672,10 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `taxtables`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `taxtables` ( `guid` varchar(32) NOT NULL, - `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `refcount` bigint NOT NULL, `invisible` int NOT NULL, `parent` varchar(32) DEFAULT NULL, @@ -698,14 +698,14 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `transactions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `transactions` ( `guid` varchar(32) NOT NULL, `currency_guid` varchar(32) NOT NULL, - `num` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `num` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `post_date` datetime DEFAULT '1970-01-01 00:00:00', `enter_date` datetime DEFAULT '1970-01-01 00:00:00', - `description` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `description` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, PRIMARY KEY (`guid`), KEY `tx_post_date_index` (`post_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; @@ -727,25 +727,25 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `vendors`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `vendors` ( `guid` varchar(32) NOT NULL, - `name` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `id` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, - `notes` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `name` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `id` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, + `notes` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `currency` varchar(32) NOT NULL, `active` int NOT NULL, `tax_override` int NOT NULL, - `addr_name` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr1` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr2` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr3` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_addr4` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_phone` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_fax` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, - `addr_email` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `addr_name` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr1` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr2` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr3` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_addr4` varchar(1024) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_phone` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_fax` varchar(128) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, + `addr_email` varchar(256) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `terms` varchar(32) DEFAULT NULL, - `tax_inc` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, + `tax_inc` varchar(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `tax_table` varchar(32) DEFAULT NULL, PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; @@ -766,9 +766,9 @@ UNLOCK TABLES; DROP TABLE IF EXISTS `versions`; /*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; +/*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `versions` ( - `table_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `table_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, `table_version` int NOT NULL, PRIMARY KEY (`table_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; @@ -783,10 +783,6 @@ LOCK TABLES `versions` WRITE; INSERT INTO `versions` VALUES ('accounts',1),('billterms',2),('books',1),('budgets',1),('budget_amounts',1),('commodities',1),('customers',2),('employees',2),('entries',4),('Gnucash',3000011),('Gnucash-Resave',19920),('invoices',4),('jobs',1),('lots',2),('orders',1),('prices',3),('recurrences',2),('schedxactions',1),('slots',4),('splits',5),('taxtables',2),('taxtable_entries',3),('transactions',4),('vendors',1); /*!40000 ALTER TABLE `versions` ENABLE KEYS */; UNLOCK TABLES; - --- --- Dumping routines for database 'complex_sample.gnucash' --- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; @@ -797,4 +793,4 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2021-05-31 11:04:04 +-- Dump completed on 2024-04-13 15:29:39 diff --git a/tests/db/postgresql/complex_sample.gnucash.sql b/tests/db/postgresql/complex_sample.gnucash.sql index c66db3f..907bd8c 100644 --- a/tests/db/postgresql/complex_sample.gnucash.sql +++ b/tests/db/postgresql/complex_sample.gnucash.sql @@ -2,8 +2,8 @@ -- PostgreSQL database dump -- --- Dumped from database version 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) --- Dumped by pg_dump version 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1) +-- Dumped from database version 16.2 +-- Dumped by pg_dump version 16.2 SET statement_timeout = 0; SET lock_timeout = 0; @@ -21,7 +21,7 @@ SET default_tablespace = ''; SET default_table_access_method = heap; -- --- Name: accounts; Type: TABLE; Schema: public; Owner: postgres +-- Name: accounts; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.accounts ( @@ -39,10 +39,10 @@ CREATE TABLE public.accounts ( ); -ALTER TABLE public.accounts OWNER TO postgres; +ALTER TABLE public.accounts OWNER TO "user"; -- --- Name: billterms; Type: TABLE; Schema: public; Owner: postgres +-- Name: billterms; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.billterms ( @@ -61,10 +61,10 @@ CREATE TABLE public.billterms ( ); -ALTER TABLE public.billterms OWNER TO postgres; +ALTER TABLE public.billterms OWNER TO "user"; -- --- Name: books; Type: TABLE; Schema: public; Owner: postgres +-- Name: books; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.books ( @@ -74,10 +74,10 @@ CREATE TABLE public.books ( ); -ALTER TABLE public.books OWNER TO postgres; +ALTER TABLE public.books OWNER TO "user"; -- --- Name: budget_amounts; Type: TABLE; Schema: public; Owner: postgres +-- Name: budget_amounts; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.budget_amounts ( @@ -90,10 +90,10 @@ CREATE TABLE public.budget_amounts ( ); -ALTER TABLE public.budget_amounts OWNER TO postgres; +ALTER TABLE public.budget_amounts OWNER TO "user"; -- --- Name: budget_amounts_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- Name: budget_amounts_id_seq; Type: SEQUENCE; Schema: public; Owner: user -- CREATE SEQUENCE public.budget_amounts_id_seq @@ -105,17 +105,17 @@ CREATE SEQUENCE public.budget_amounts_id_seq CACHE 1; -ALTER TABLE public.budget_amounts_id_seq OWNER TO postgres; +ALTER SEQUENCE public.budget_amounts_id_seq OWNER TO "user"; -- --- Name: budget_amounts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres +-- Name: budget_amounts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: user -- ALTER SEQUENCE public.budget_amounts_id_seq OWNED BY public.budget_amounts.id; -- --- Name: budgets; Type: TABLE; Schema: public; Owner: postgres +-- Name: budgets; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.budgets ( @@ -126,10 +126,10 @@ CREATE TABLE public.budgets ( ); -ALTER TABLE public.budgets OWNER TO postgres; +ALTER TABLE public.budgets OWNER TO "user"; -- --- Name: commodities; Type: TABLE; Schema: public; Owner: postgres +-- Name: commodities; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.commodities ( @@ -145,10 +145,10 @@ CREATE TABLE public.commodities ( ); -ALTER TABLE public.commodities OWNER TO postgres; +ALTER TABLE public.commodities OWNER TO "user"; -- --- Name: customers; Type: TABLE; Schema: public; Owner: postgres +-- Name: customers; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.customers ( @@ -185,10 +185,10 @@ CREATE TABLE public.customers ( ); -ALTER TABLE public.customers OWNER TO postgres; +ALTER TABLE public.customers OWNER TO "user"; -- --- Name: employees; Type: TABLE; Schema: public; Owner: postgres +-- Name: employees; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.employees ( @@ -215,10 +215,10 @@ CREATE TABLE public.employees ( ); -ALTER TABLE public.employees OWNER TO postgres; +ALTER TABLE public.employees OWNER TO "user"; -- --- Name: entries; Type: TABLE; Schema: public; Owner: postgres +-- Name: entries; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.entries ( @@ -256,10 +256,10 @@ CREATE TABLE public.entries ( ); -ALTER TABLE public.entries OWNER TO postgres; +ALTER TABLE public.entries OWNER TO "user"; -- --- Name: gnclock; Type: TABLE; Schema: public; Owner: postgres +-- Name: gnclock; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.gnclock ( @@ -268,10 +268,10 @@ CREATE TABLE public.gnclock ( ); -ALTER TABLE public.gnclock OWNER TO postgres; +ALTER TABLE public.gnclock OWNER TO "user"; -- --- Name: invoices; Type: TABLE; Schema: public; Owner: postgres +-- Name: invoices; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.invoices ( @@ -296,10 +296,10 @@ CREATE TABLE public.invoices ( ); -ALTER TABLE public.invoices OWNER TO postgres; +ALTER TABLE public.invoices OWNER TO "user"; -- --- Name: jobs; Type: TABLE; Schema: public; Owner: postgres +-- Name: jobs; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.jobs ( @@ -313,10 +313,10 @@ CREATE TABLE public.jobs ( ); -ALTER TABLE public.jobs OWNER TO postgres; +ALTER TABLE public.jobs OWNER TO "user"; -- --- Name: lots; Type: TABLE; Schema: public; Owner: postgres +-- Name: lots; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.lots ( @@ -326,10 +326,10 @@ CREATE TABLE public.lots ( ); -ALTER TABLE public.lots OWNER TO postgres; +ALTER TABLE public.lots OWNER TO "user"; -- --- Name: orders; Type: TABLE; Schema: public; Owner: postgres +-- Name: orders; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.orders ( @@ -345,10 +345,10 @@ CREATE TABLE public.orders ( ); -ALTER TABLE public.orders OWNER TO postgres; +ALTER TABLE public.orders OWNER TO "user"; -- --- Name: prices; Type: TABLE; Schema: public; Owner: postgres +-- Name: prices; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.prices ( @@ -363,10 +363,10 @@ CREATE TABLE public.prices ( ); -ALTER TABLE public.prices OWNER TO postgres; +ALTER TABLE public.prices OWNER TO "user"; -- --- Name: recurrences; Type: TABLE; Schema: public; Owner: postgres +-- Name: recurrences; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.recurrences ( @@ -379,10 +379,10 @@ CREATE TABLE public.recurrences ( ); -ALTER TABLE public.recurrences OWNER TO postgres; +ALTER TABLE public.recurrences OWNER TO "user"; -- --- Name: recurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- Name: recurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: user -- CREATE SEQUENCE public.recurrences_id_seq @@ -394,17 +394,17 @@ CREATE SEQUENCE public.recurrences_id_seq CACHE 1; -ALTER TABLE public.recurrences_id_seq OWNER TO postgres; +ALTER SEQUENCE public.recurrences_id_seq OWNER TO "user"; -- --- Name: recurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres +-- Name: recurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: user -- ALTER SEQUENCE public.recurrences_id_seq OWNED BY public.recurrences.id; -- --- Name: schedxactions; Type: TABLE; Schema: public; Owner: postgres +-- Name: schedxactions; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.schedxactions ( @@ -425,10 +425,10 @@ CREATE TABLE public.schedxactions ( ); -ALTER TABLE public.schedxactions OWNER TO postgres; +ALTER TABLE public.schedxactions OWNER TO "user"; -- --- Name: slots; Type: TABLE; Schema: public; Owner: postgres +-- Name: slots; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.slots ( @@ -447,10 +447,10 @@ CREATE TABLE public.slots ( ); -ALTER TABLE public.slots OWNER TO postgres; +ALTER TABLE public.slots OWNER TO "user"; -- --- Name: slots_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- Name: slots_id_seq; Type: SEQUENCE; Schema: public; Owner: user -- CREATE SEQUENCE public.slots_id_seq @@ -462,17 +462,17 @@ CREATE SEQUENCE public.slots_id_seq CACHE 1; -ALTER TABLE public.slots_id_seq OWNER TO postgres; +ALTER SEQUENCE public.slots_id_seq OWNER TO "user"; -- --- Name: slots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres +-- Name: slots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: user -- ALTER SEQUENCE public.slots_id_seq OWNED BY public.slots.id; -- --- Name: splits; Type: TABLE; Schema: public; Owner: postgres +-- Name: splits; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.splits ( @@ -491,10 +491,10 @@ CREATE TABLE public.splits ( ); -ALTER TABLE public.splits OWNER TO postgres; +ALTER TABLE public.splits OWNER TO "user"; -- --- Name: taxtable_entries; Type: TABLE; Schema: public; Owner: postgres +-- Name: taxtable_entries; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.taxtable_entries ( @@ -507,10 +507,10 @@ CREATE TABLE public.taxtable_entries ( ); -ALTER TABLE public.taxtable_entries OWNER TO postgres; +ALTER TABLE public.taxtable_entries OWNER TO "user"; -- --- Name: taxtable_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres +-- Name: taxtable_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: user -- CREATE SEQUENCE public.taxtable_entries_id_seq @@ -522,17 +522,17 @@ CREATE SEQUENCE public.taxtable_entries_id_seq CACHE 1; -ALTER TABLE public.taxtable_entries_id_seq OWNER TO postgres; +ALTER SEQUENCE public.taxtable_entries_id_seq OWNER TO "user"; -- --- Name: taxtable_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres +-- Name: taxtable_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: user -- ALTER SEQUENCE public.taxtable_entries_id_seq OWNED BY public.taxtable_entries.id; -- --- Name: taxtables; Type: TABLE; Schema: public; Owner: postgres +-- Name: taxtables; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.taxtables ( @@ -544,10 +544,10 @@ CREATE TABLE public.taxtables ( ); -ALTER TABLE public.taxtables OWNER TO postgres; +ALTER TABLE public.taxtables OWNER TO "user"; -- --- Name: transactions; Type: TABLE; Schema: public; Owner: postgres +-- Name: transactions; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.transactions ( @@ -560,10 +560,10 @@ CREATE TABLE public.transactions ( ); -ALTER TABLE public.transactions OWNER TO postgres; +ALTER TABLE public.transactions OWNER TO "user"; -- --- Name: vendors; Type: TABLE; Schema: public; Owner: postgres +-- Name: vendors; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.vendors ( @@ -588,10 +588,10 @@ CREATE TABLE public.vendors ( ); -ALTER TABLE public.vendors OWNER TO postgres; +ALTER TABLE public.vendors OWNER TO "user"; -- --- Name: versions; Type: TABLE; Schema: public; Owner: postgres +-- Name: versions; Type: TABLE; Schema: public; Owner: user -- CREATE TABLE public.versions ( @@ -600,38 +600,38 @@ CREATE TABLE public.versions ( ); -ALTER TABLE public.versions OWNER TO postgres; +ALTER TABLE public.versions OWNER TO "user"; -- --- Name: budget_amounts id; Type: DEFAULT; Schema: public; Owner: postgres +-- Name: budget_amounts id; Type: DEFAULT; Schema: public; Owner: user -- ALTER TABLE ONLY public.budget_amounts ALTER COLUMN id SET DEFAULT nextval('public.budget_amounts_id_seq'::regclass); -- --- Name: recurrences id; Type: DEFAULT; Schema: public; Owner: postgres +-- Name: recurrences id; Type: DEFAULT; Schema: public; Owner: user -- ALTER TABLE ONLY public.recurrences ALTER COLUMN id SET DEFAULT nextval('public.recurrences_id_seq'::regclass); -- --- Name: slots id; Type: DEFAULT; Schema: public; Owner: postgres +-- Name: slots id; Type: DEFAULT; Schema: public; Owner: user -- ALTER TABLE ONLY public.slots ALTER COLUMN id SET DEFAULT nextval('public.slots_id_seq'::regclass); -- --- Name: taxtable_entries id; Type: DEFAULT; Schema: public; Owner: postgres +-- Name: taxtable_entries id; Type: DEFAULT; Schema: public; Owner: user -- ALTER TABLE ONLY public.taxtable_entries ALTER COLUMN id SET DEFAULT nextval('public.taxtable_entries_id_seq'::regclass); -- --- Data for Name: accounts; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: accounts; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.accounts (guid, name, account_type, commodity_guid, commodity_scu, non_std_scu, parent_guid, code, description, hidden, placeholder) FROM stdin; @@ -660,7 +660,7 @@ f6c0cd00ec04169a44f170181882adab Template Root ROOT \N 0 0 \N 0 0 -- --- Data for Name: billterms; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: billterms; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.billterms (guid, name, description, refcount, invisible, parent, type, duedays, discountdays, discount_num, discount_denom, cutoff) FROM stdin; @@ -668,7 +668,7 @@ COPY public.billterms (guid, name, description, refcount, invisible, parent, typ -- --- Data for Name: books; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: books; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.books (guid, root_account_guid, root_template_guid) FROM stdin; @@ -677,7 +677,7 @@ COPY public.books (guid, root_account_guid, root_template_guid) FROM stdin; -- --- Data for Name: budget_amounts; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: budget_amounts; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.budget_amounts (id, budget_guid, account_guid, period_num, amount_num, amount_denom) FROM stdin; @@ -685,7 +685,7 @@ COPY public.budget_amounts (id, budget_guid, account_guid, period_num, amount_nu -- --- Data for Name: budgets; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: budgets; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.budgets (guid, name, description, num_periods) FROM stdin; @@ -693,7 +693,7 @@ COPY public.budgets (guid, name, description, num_periods) FROM stdin; -- --- Data for Name: commodities; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: commodities; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.commodities (guid, namespace, mnemonic, fullname, cusip, fraction, quote_flag, quote_source, quote_tz) FROM stdin; @@ -706,7 +706,7 @@ d821d6776fde9f7c2d01b67876406fd3 CURRENCY ADF Andorran Franc 950 100 0 currency -- --- Data for Name: customers; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: customers; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.customers (guid, name, id, notes, active, discount_num, discount_denom, credit_num, credit_denom, currency, tax_override, addr_name, addr_addr1, addr_addr2, addr_addr3, addr_addr4, addr_phone, addr_fax, addr_email, shipaddr_name, shipaddr_addr1, shipaddr_addr2, shipaddr_addr3, shipaddr_addr4, shipaddr_phone, shipaddr_fax, shipaddr_email, terms, tax_included, taxtable) FROM stdin; @@ -714,7 +714,7 @@ COPY public.customers (guid, name, id, notes, active, discount_num, discount_den -- --- Data for Name: employees; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: employees; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.employees (guid, username, id, language, acl, active, currency, ccard_guid, workday_num, workday_denom, rate_num, rate_denom, addr_name, addr_addr1, addr_addr2, addr_addr3, addr_addr4, addr_phone, addr_fax, addr_email) FROM stdin; @@ -722,7 +722,7 @@ COPY public.employees (guid, username, id, language, acl, active, currency, ccar -- --- Data for Name: entries; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: entries; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.entries (guid, date, date_entered, description, action, notes, quantity_num, quantity_denom, i_acct, i_price_num, i_price_denom, i_discount_num, i_discount_denom, invoice, i_disc_type, i_disc_how, i_taxable, i_taxincluded, i_taxtable, b_acct, b_price_num, b_price_denom, bill, b_taxable, b_taxincluded, b_taxtable, b_paytype, billable, billto_type, billto_guid, order_guid) FROM stdin; @@ -730,7 +730,7 @@ COPY public.entries (guid, date, date_entered, description, action, notes, quant -- --- Data for Name: gnclock; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: gnclock; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.gnclock (hostname, pid) FROM stdin; @@ -738,7 +738,7 @@ COPY public.gnclock (hostname, pid) FROM stdin; -- --- Data for Name: invoices; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: invoices; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.invoices (guid, id, date_opened, date_posted, notes, active, currency, owner_type, owner_guid, terms, billing_id, post_txn, post_lot, post_acc, billto_type, billto_guid, charge_amt_num, charge_amt_denom) FROM stdin; @@ -746,7 +746,7 @@ COPY public.invoices (guid, id, date_opened, date_posted, notes, active, currenc -- --- Data for Name: jobs; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: jobs; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.jobs (guid, id, name, reference, active, owner_type, owner_guid) FROM stdin; @@ -754,7 +754,7 @@ COPY public.jobs (guid, id, name, reference, active, owner_type, owner_guid) FRO -- --- Data for Name: lots; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: lots; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.lots (guid, account_guid, is_closed) FROM stdin; @@ -762,7 +762,7 @@ COPY public.lots (guid, account_guid, is_closed) FROM stdin; -- --- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.orders (guid, id, notes, reference, active, date_opened, date_closed, owner_type, owner_guid) FROM stdin; @@ -770,7 +770,7 @@ COPY public.orders (guid, id, notes, reference, active, date_opened, date_closed -- --- Data for Name: prices; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: prices; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.prices (guid, commodity_guid, currency_guid, date, source, type, value_num, value_denom) FROM stdin; @@ -783,7 +783,7 @@ c266e6ce9bdf8832bf88360df524669e 346629655191dcf59a7e2c2a85b70f69 5f586908098232 -- --- Data for Name: recurrences; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: recurrences; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.recurrences (id, obj_guid, recurrence_mult, recurrence_period_type, recurrence_period_start, recurrence_weekend_adjust) FROM stdin; @@ -791,7 +791,7 @@ COPY public.recurrences (id, obj_guid, recurrence_mult, recurrence_period_type, -- --- Data for Name: schedxactions; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: schedxactions; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.schedxactions (guid, name, enabled, start_date, end_date, last_occur, num_occur, rem_occur, auto_create, auto_notify, adv_creation, adv_notify, instance_count, template_act_guid) FROM stdin; @@ -799,16 +799,16 @@ COPY public.schedxactions (guid, name, enabled, start_date, end_date, last_occur -- --- Data for Name: slots; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: slots; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.slots (id, obj_guid, name, slot_type, int64_val, string_val, double_val, timespec_val, guid_val, numeric_val_num, numeric_val_denom, gdate_val) FROM stdin; -1 7d4ef4044fd30f41d08914a8174c2f5b features 9 0 \N \N 1970-01-01 00:00:00 93187837476a4f008bad34cff13ae4b4 0 1 \N -2 93187837476a4f008bad34cff13ae4b4 features/ISO-8601 formatted date strings in SQLite3 databases. 4 0 Use ISO formatted date-time strings in SQLite3 databases (requires at least GnuCash 2.6.20) \N 1970-01-01 00:00:00 \N 0 1 \N -3 7d4ef4044fd30f41d08914a8174c2f5b options 9 0 \N \N 1970-01-01 00:00:00 0d4e51bfe0374a3192cf7cd196176d13 0 1 \N -4 0d4e51bfe0374a3192cf7cd196176d13 options/Accounts 9 0 \N \N 1970-01-01 00:00:00 464928d59a334579922f356594602a60 0 1 \N -5 464928d59a334579922f356594602a60 options/Accounts/Use Trading Accounts 4 0 t \N 1970-01-01 00:00:00 \N 0 1 \N -6 0d4e51bfe0374a3192cf7cd196176d13 options/Budgeting 9 0 \N \N 1970-01-01 00:00:00 4a6cd557a8e543bfab54d62c07a5dc0c 0 1 \N +1 7d4ef4044fd30f41d08914a8174c2f5b features 9 0 \N \N 1970-01-01 00:00:00 fce6a886a9204dbab6b2ff1e45c49faa 0 1 \N +2 fce6a886a9204dbab6b2ff1e45c49faa features/ISO-8601 formatted date strings in SQLite3 databases. 4 0 Use ISO formatted date-time strings in SQLite3 databases (requires at least GnuCash 2.6.20) \N 1970-01-01 00:00:00 \N 0 1 \N +3 7d4ef4044fd30f41d08914a8174c2f5b options 9 0 \N \N 1970-01-01 00:00:00 8c289969313f47dca3f2529cca5a0e63 0 1 \N +4 8c289969313f47dca3f2529cca5a0e63 options/Accounts 9 0 \N \N 1970-01-01 00:00:00 75aa9359d50e4d2a9388d1cddf774b39 0 1 \N +5 75aa9359d50e4d2a9388d1cddf774b39 options/Accounts/Use Trading Accounts 4 0 t \N 1970-01-01 00:00:00 \N 0 1 \N +6 8c289969313f47dca3f2529cca5a0e63 options/Budgeting 9 0 \N \N 1970-01-01 00:00:00 de347c6285ee4cd08b54eea78dd9b9b4 0 1 \N 7 7d4ef4044fd30f41d08914a8174c2f5b remove-color-not-set-slots 4 0 true \N 1970-01-01 00:00:00 \N 0 1 \N 8 fcd795021c976ba75621ec39e75f6214 placeholder 4 0 true \N 1970-01-01 00:00:00 \N 0 1 \N 9 3bc319753945b6dba3e1928abed49e35 placeholder 4 0 true \N 1970-01-01 00:00:00 \N 0 1 \N @@ -821,7 +821,7 @@ COPY public.slots (id, obj_guid, name, slot_type, int64_val, string_val, double_ -- --- Data for Name: splits; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: splits; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.splits (guid, tx_guid, account_guid, memo, action, reconcile_state, reconcile_date, value_num, value_denom, quantity_num, quantity_denom, lot_guid) FROM stdin; @@ -854,7 +854,7 @@ c8eb859a307babbb2fdf66871cf4c0a8 59d9b60221a4615e74f8e489dceff58b 96ed7a45459fb5 -- --- Data for Name: taxtable_entries; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: taxtable_entries; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.taxtable_entries (id, taxtable, account, amount_num, amount_denom, type) FROM stdin; @@ -862,7 +862,7 @@ COPY public.taxtable_entries (id, taxtable, account, amount_num, amount_denom, t -- --- Data for Name: taxtables; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: taxtables; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.taxtables (guid, name, refcount, invisible, parent) FROM stdin; @@ -870,7 +870,7 @@ COPY public.taxtables (guid, name, refcount, invisible, parent) FROM stdin; -- --- Data for Name: transactions; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: transactions; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.transactions (guid, currency_guid, num, post_date, enter_date, description) FROM stdin; @@ -889,7 +889,7 @@ a5924cd14525c307cc5862c97361b031 346629655191dcf59a7e2c2a85b70f69 2018-02-21 10 -- --- Data for Name: vendors; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: vendors; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.vendors (guid, name, id, notes, currency, active, tax_override, addr_name, addr_addr1, addr_addr2, addr_addr3, addr_addr4, addr_phone, addr_fax, addr_email, terms, tax_inc, tax_table) FROM stdin; @@ -897,11 +897,11 @@ COPY public.vendors (guid, name, id, notes, currency, active, tax_override, addr -- --- Data for Name: versions; Type: TABLE DATA; Schema: public; Owner: postgres +-- Data for Name: versions; Type: TABLE DATA; Schema: public; Owner: user -- COPY public.versions (table_name, table_version) FROM stdin; -Gnucash 4000005 +Gnucash 5000004 Gnucash-Resave 19920 books 1 commodities 1 @@ -929,35 +929,35 @@ vendors 1 -- --- Name: budget_amounts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- Name: budget_amounts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: user -- SELECT pg_catalog.setval('public.budget_amounts_id_seq', 1, false); -- --- Name: recurrences_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- Name: recurrences_id_seq; Type: SEQUENCE SET; Schema: public; Owner: user -- SELECT pg_catalog.setval('public.recurrences_id_seq', 1, false); -- --- Name: slots_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- Name: slots_id_seq; Type: SEQUENCE SET; Schema: public; Owner: user -- SELECT pg_catalog.setval('public.slots_id_seq', 14, true); -- --- Name: taxtable_entries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres +-- Name: taxtable_entries_id_seq; Type: SEQUENCE SET; Schema: public; Owner: user -- SELECT pg_catalog.setval('public.taxtable_entries_id_seq', 1, false); -- --- Name: accounts accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: accounts accounts_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.accounts @@ -965,7 +965,7 @@ ALTER TABLE ONLY public.accounts -- --- Name: billterms billterms_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: billterms billterms_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.billterms @@ -973,7 +973,7 @@ ALTER TABLE ONLY public.billterms -- --- Name: books books_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: books books_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.books @@ -981,7 +981,7 @@ ALTER TABLE ONLY public.books -- --- Name: budget_amounts budget_amounts_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: budget_amounts budget_amounts_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.budget_amounts @@ -989,7 +989,7 @@ ALTER TABLE ONLY public.budget_amounts -- --- Name: budgets budgets_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: budgets budgets_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.budgets @@ -997,7 +997,7 @@ ALTER TABLE ONLY public.budgets -- --- Name: commodities commodities_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: commodities commodities_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.commodities @@ -1005,7 +1005,7 @@ ALTER TABLE ONLY public.commodities -- --- Name: customers customers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: customers customers_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.customers @@ -1013,7 +1013,7 @@ ALTER TABLE ONLY public.customers -- --- Name: employees employees_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: employees employees_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.employees @@ -1021,7 +1021,7 @@ ALTER TABLE ONLY public.employees -- --- Name: entries entries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: entries entries_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.entries @@ -1029,7 +1029,7 @@ ALTER TABLE ONLY public.entries -- --- Name: invoices invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: invoices invoices_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.invoices @@ -1037,7 +1037,7 @@ ALTER TABLE ONLY public.invoices -- --- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: jobs jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.jobs @@ -1045,7 +1045,7 @@ ALTER TABLE ONLY public.jobs -- --- Name: lots lots_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: lots lots_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.lots @@ -1053,7 +1053,7 @@ ALTER TABLE ONLY public.lots -- --- Name: orders orders_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: orders orders_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.orders @@ -1061,7 +1061,7 @@ ALTER TABLE ONLY public.orders -- --- Name: prices prices_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: prices prices_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.prices @@ -1069,7 +1069,7 @@ ALTER TABLE ONLY public.prices -- --- Name: recurrences recurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: recurrences recurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.recurrences @@ -1077,7 +1077,7 @@ ALTER TABLE ONLY public.recurrences -- --- Name: schedxactions schedxactions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: schedxactions schedxactions_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.schedxactions @@ -1085,7 +1085,7 @@ ALTER TABLE ONLY public.schedxactions -- --- Name: slots slots_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: slots slots_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.slots @@ -1093,7 +1093,7 @@ ALTER TABLE ONLY public.slots -- --- Name: splits splits_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: splits splits_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.splits @@ -1101,7 +1101,7 @@ ALTER TABLE ONLY public.splits -- --- Name: taxtable_entries taxtable_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: taxtable_entries taxtable_entries_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.taxtable_entries @@ -1109,7 +1109,7 @@ ALTER TABLE ONLY public.taxtable_entries -- --- Name: taxtables taxtables_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: taxtables taxtables_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.taxtables @@ -1117,7 +1117,7 @@ ALTER TABLE ONLY public.taxtables -- --- Name: transactions transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: transactions transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.transactions @@ -1125,7 +1125,7 @@ ALTER TABLE ONLY public.transactions -- --- Name: vendors vendors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: vendors vendors_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.vendors @@ -1133,7 +1133,7 @@ ALTER TABLE ONLY public.vendors -- --- Name: versions versions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres +-- Name: versions versions_pkey; Type: CONSTRAINT; Schema: public; Owner: user -- ALTER TABLE ONLY public.versions @@ -1141,208 +1141,33 @@ ALTER TABLE ONLY public.versions -- --- Name: slots_guid_index; Type: INDEX; Schema: public; Owner: postgres +-- Name: slots_guid_index; Type: INDEX; Schema: public; Owner: user -- CREATE INDEX slots_guid_index ON public.slots USING btree (obj_guid); -- --- Name: splits_account_guid_index; Type: INDEX; Schema: public; Owner: postgres +-- Name: splits_account_guid_index; Type: INDEX; Schema: public; Owner: user -- CREATE INDEX splits_account_guid_index ON public.splits USING btree (account_guid); -- --- Name: splits_tx_guid_index; Type: INDEX; Schema: public; Owner: postgres +-- Name: splits_tx_guid_index; Type: INDEX; Schema: public; Owner: user -- CREATE INDEX splits_tx_guid_index ON public.splits USING btree (tx_guid); -- --- Name: tx_post_date_index; Type: INDEX; Schema: public; Owner: postgres +-- Name: tx_post_date_index; Type: INDEX; Schema: public; Owner: user -- CREATE INDEX tx_post_date_index ON public.transactions USING btree (post_date); --- --- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres --- - -GRANT USAGE ON SCHEMA public TO "user"; - - --- --- Name: TABLE accounts; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.accounts TO "user"; - - --- --- Name: TABLE billterms; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.billterms TO "user"; - - --- --- Name: TABLE books; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.books TO "user"; - - --- --- Name: TABLE budget_amounts; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.budget_amounts TO "user"; - - --- --- Name: TABLE budgets; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.budgets TO "user"; - - --- --- Name: TABLE commodities; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.commodities TO "user"; - - --- --- Name: TABLE customers; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.customers TO "user"; - - --- --- Name: TABLE employees; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.employees TO "user"; - - --- --- Name: TABLE entries; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.entries TO "user"; - - --- --- Name: TABLE gnclock; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.gnclock TO "user"; - - --- --- Name: TABLE invoices; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.invoices TO "user"; - - --- --- Name: TABLE jobs; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.jobs TO "user"; - - --- --- Name: TABLE lots; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.lots TO "user"; - - --- --- Name: TABLE orders; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.orders TO "user"; - - --- --- Name: TABLE prices; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.prices TO "user"; - - --- --- Name: TABLE recurrences; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.recurrences TO "user"; - - --- --- Name: TABLE schedxactions; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.schedxactions TO "user"; - - --- --- Name: TABLE slots; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.slots TO "user"; - - --- --- Name: TABLE splits; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.splits TO "user"; - - --- --- Name: TABLE taxtable_entries; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.taxtable_entries TO "user"; - - --- --- Name: TABLE taxtables; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.taxtables TO "user"; - - --- --- Name: TABLE transactions; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.transactions TO "user"; - - --- --- Name: TABLE vendors; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.vendors TO "user"; - - --- --- Name: TABLE versions; Type: ACL; Schema: public; Owner: postgres --- - -GRANT SELECT ON TABLE public.versions TO "user"; - - -- -- PostgreSQL database dump complete --