diff --git a/.github/workflows/example.yaml b/.github/workflows/example.yaml index 0751eb8..a1c9d28 100644 --- a/.github/workflows/example.yaml +++ b/.github/workflows/example.yaml @@ -38,8 +38,7 @@ jobs: command: psqldef version: latest config-file: examples/psqldef.yaml - baseline-schema-file: examples/psqldef-current.sql - schema-file: examples/psqldef-desired.sql + schema-file: examples/psqldef-current.sql pg-user: postgres pg-password: postgres pg-host: localhost @@ -76,8 +75,7 @@ jobs: command: mysqldef version: latest config-file: examples/mysqldef.yaml - baseline-schema-file: examples/mysqldef-current.sql - schema-file: examples/mysqldef-desired.sql + schema-file: examples/mysqldef-current.sql mysql-user: root mysql-password: testpass mysql-host: 127.0.0.1 @@ -100,8 +98,7 @@ jobs: command: sqlite3def version: latest config-file: examples/sqlite3def.yaml - baseline-schema-file: examples/sqlite3def-current.sql - schema-file: examples/sqlite3def-desired.sql + schema-file: examples/sqlite3def-current.sql sqlite-database: test.db github-token: ${{ github.token }} @@ -139,8 +136,7 @@ jobs: command: mssqldef version: latest config-file: examples/mssql.yaml - baseline-schema-file: examples/mssqldef-current.sql - schema-file: examples/mssqldef-desired.sql + schema-file: examples/mssqldef-current.sql mssql-user: SA mssql-password: Passw0rd mssql-host: localhost diff --git a/examples/mssqldef-current.sql b/examples/mssqldef-current.sql index ec4183d..059ff1a 100644 --- a/examples/mssqldef-current.sql +++ b/examples/mssqldef-current.sql @@ -1,6 +1,8 @@ CREATE TABLE users ( id BIGINT PRIMARY KEY, username NVARCHAR(255) NOT NULL, - created_at DATETIME2 NOT NULL, - updated_at DATETIME2 NOT NULL -); \ No newline at end of file + email NVARCHAR(255) NULL, + created_at DATETIME2 NOT NULL +); + +CREATE INDEX idx_users_email ON users(email); \ No newline at end of file diff --git a/examples/mysqldef-current.sql b/examples/mysqldef-current.sql index 54d8795..690f438 100644 --- a/examples/mysqldef-current.sql +++ b/examples/mysqldef-current.sql @@ -1,6 +1,8 @@ CREATE TABLE users ( id BIGINT PRIMARY KEY, username VARCHAR(255) NOT NULL, - created_at TIMESTAMP NOT NULL, - updated_at TIMESTAMP NOT NULL -); \ No newline at end of file + email VARCHAR(255) NULL, + created_at TIMESTAMP NOT NULL +); + +CREATE INDEX idx_users_email ON users(email); \ No newline at end of file diff --git a/examples/psqldef-current.sql b/examples/psqldef-current.sql index 54d8795..690f438 100644 --- a/examples/psqldef-current.sql +++ b/examples/psqldef-current.sql @@ -1,6 +1,8 @@ CREATE TABLE users ( id BIGINT PRIMARY KEY, username VARCHAR(255) NOT NULL, - created_at TIMESTAMP NOT NULL, - updated_at TIMESTAMP NOT NULL -); \ No newline at end of file + email VARCHAR(255) NULL, + created_at TIMESTAMP NOT NULL +); + +CREATE INDEX idx_users_email ON users(email); \ No newline at end of file diff --git a/examples/sqlite3def-current.sql b/examples/sqlite3def-current.sql index fcc11df..faf3672 100644 --- a/examples/sqlite3def-current.sql +++ b/examples/sqlite3def-current.sql @@ -1,6 +1,8 @@ CREATE TABLE users ( id INTEGER PRIMARY KEY, username TEXT NOT NULL, - created_at TEXT NOT NULL, - updated_at TEXT NOT NULL -); \ No newline at end of file + email TEXT NULL, + created_at TEXT NOT NULL +); + +CREATE INDEX idx_users_email ON users(email); \ No newline at end of file