Skip to content

Commit

Permalink
Remove references to postgres and use mysql consistently for guide
Browse files Browse the repository at this point in the history
closes #1161
  • Loading branch information
wetted committed Nov 18, 2022
1 parent 415095a commit 51097ab
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion guides/micronaut-flyway/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"apps": [
{
"name": "default",
"features": ["graalvm","data-jdbc","flyway","postgres", "management"]
"features": ["graalvm","data-jdbc","flyway","mysql", "management"]
}
]
}
6 changes: 3 additions & 3 deletions guides/micronaut-flyway/micronaut-flyway.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ common:cli-or-launch.adoc[]
[source,bash]
----
mn create-app example.micronaut.micronautguide \
--features=data-jdbc,postgres,flyway \
--features=data-jdbc,mysql,flyway \
--build=@build@ --lang=@lang@
----

common:build-lang-arguments.adoc[]

common:default-package.adoc[]

NOTE: If you use https://launch.micronaut.io[Micronaut Launch], select "Micronaut Application" as application type and add `postgres`, `data-jdbc`, and `flyway` as features.
NOTE: If you use https://launch.micronaut.io[Micronaut Launch], select "Micronaut Application" as application type and add `mysql`, `data-jdbc`, and `flyway` as features.

common:annotationprocessors.adoc[]

Expand Down Expand Up @@ -116,7 +116,7 @@ test:FlywayEndpointTest[]
callout:micronaut-test[1]
callout:http-client[2]

common:test-resources-postgres.adoc[]
common:test-resources-mysql-datasource.adoc[]

common:testApp.adoc[]

Expand Down
6 changes: 3 additions & 3 deletions guides/micronaut-flyway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ micronaut:
#tag::datasource[]
datasources:
default:
driverClassName: org.postgresql.Driver # <1>
dialect: POSTGRES # <2>
schema-generate: NONE # <3>
driverClassName: com.mysql.cj.jdbc.Driver # <1>
db-type: mysql
dialect: MYSQL # <2>
#end::datasource[]
---
#tag::flyway[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ALTER TABLE person ALTER COLUMN age DROP NOT NULL;
ALTER TABLE person MODIFY age int default null;

0 comments on commit 51097ab

Please sign in to comment.