{"id":18714911,"url":"https://github.com/griffio/sqldelight-postgres-01","last_synced_at":"2026-05-07T07:40:53.432Z","repository":{"id":210397169,"uuid":"725982838","full_name":"griffio/sqldelight-postgres-01","owner":"griffio","description":"sqldelight 2.1.x postgresql flywaydb example","archived":false,"fork":false,"pushed_at":"2024-12-06T09:32:08.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-28T09:39:34.694Z","etag":null,"topics":["flyway","kotlin","postgresql","sqldelight"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/griffio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-01T09:32:07.000Z","updated_at":"2024-12-06T09:32:12.000Z","dependencies_parsed_at":"2023-12-22T15:32:50.246Z","dependency_job_id":"f800c3d4-6c16-4f33-8986-9ceeeafefbf4","html_url":"https://github.com/griffio/sqldelight-postgres-01","commit_stats":{"total_commits":44,"total_committers":1,"mean_commits":44.0,"dds":0.0,"last_synced_commit":"41ba3dab29d730dcf02b6f33f81b06af72e0e336"},"previous_names":["griffio/sqldelight-postgres-01"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffio%2Fsqldelight-postgres-01","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffio%2Fsqldelight-postgres-01/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffio%2Fsqldelight-postgres-01/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/griffio%2Fsqldelight-postgres-01/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/griffio","download_url":"https://codeload.github.com/griffio/sqldelight-postgres-01/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576744,"owners_count":19662114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flyway","kotlin","postgresql","sqldelight"],"created_at":"2024-11-07T13:06:46.174Z","updated_at":"2026-05-07T07:40:53.410Z","avatar_url":"https://github.com/griffio.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SqlDelight 2.2.x Postgresql migrations with Flyway \n\nsee https://github.com/griffio/sqldelight-postgres-02 for Liquibase migrations\n\nsee https://github.com/griffio/sqldelight-pg-migration for \"simple\" migrations\n\nhttps://github.com/cashapp/sqldelight\n\nExamples of newer postgresql support in SqlDelight SNAPSHOT build from https://central.sonatype.com/repository/maven-snapshots\n\n*Migrations performed*\n* create sequence\n* alter sequence\n* add constraint foreign key\n* set default - \n* set not null\n* drop not null\n* drop column\n* rename column - \n* rename table\n* add check constraint\n* drop identity \n* alter identity \n\nTo find bugs/issues that need to be fixed/implemented\n\n*Issues*\n* rename column - error with validation\n  * MERGED https://github.com/cashapp/sqldelight/pull/4880\n* alter table ... alter column ... drop identity - support but need fixing refers to old column if column was renamed\n  * MERGED https://github.com/cashapp/sqldelight/pull/4902\n* alter table ... alter column ... set default - compilation error must be specified in insert statement\n  * MERGED https://github.com/cashapp/sqldelight/pull/4912\n* sqm files must not have post-fix numbers e.g. `V1_create_test_1.sqm` as this breaks the ordering\n\n*Not supported*\n* alter/drop sequence\n  * MERGED https://github.com/cashapp/sqldelight/pull/4920\n* alter table ... add constraint primary key ... (doesn't update data class property to non-nullable type)\n  * MERGED https://github.com/cashapp/sqldelight/issues/5018\n* add constraint check, foreign key `valid` and `not valid` clauses\n* alter column col_name add generated { always | by default } as identity { ( seq_option ) }\n  * MERGED https://github.com/cashapp/sqldelight/pull/4916\n* alter column column_name { set generated { always | by default } | set sequence_option | restart [ [ with ] restart ] }\n  * MERGED https://github.com/cashapp/sqldelight/pull/4916\n* alter table drop constraint [ if exists ] identifier [ restrict | cascade ]\n  * MERGED https://github.com/cashapp/sqldelight/issues/5288 \n* alter table add column [ if not exists ]\n  * MERGED https://github.com/cashapp/sqldelight/issues/5309\n\n*Bugs*\n* data class `import` missing in generated queries source when using star `INSERT INTO City (city_name) VALUES (?) RETURNING *;`\n  * MERGED https://github.com/cashapp/sqldelight/issues/4448\n* allows unknown columns with alter table ... alter column \u003cunknown name\u003e - must show compiler error `No column found to alter with name \u003cunknown name\u003e`\n  * MERGED https://github.com/cashapp/sqldelight/pull/4902\n* compiler error when functions are used as DEFAULT column values\n  * MERGED https://github.com/cashapp/sqldelight/pull/4934\n----\n\n```shell\n./gradlew build \u0026\u0026\n./gradlew flywayMigrate\n```\n\nFlyway db migrations\nhttps://documentation.red-gate.com/fd/gradle-task-184127407.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffio%2Fsqldelight-postgres-01","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgriffio%2Fsqldelight-postgres-01","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgriffio%2Fsqldelight-postgres-01/lists"}