update travis pg

This commit is contained in:
Tobe O 2019-01-23 17:11:10 -05:00
parent d356375af5
commit 599104f353
2 changed files with 5 additions and 3 deletions

View file

@ -4,4 +4,6 @@ before_script:
- psql -c 'create database angel_orm_test;' -U postgres - psql -c 'create database angel_orm_test;' -U postgres
- psql -c "CREATE USER angel_orm WITH PASSWORD 'angel_orm';" -U postgres - psql -c "CREATE USER angel_orm WITH PASSWORD 'angel_orm';" -U postgres
services: services:
- postgresql - postgresql
addons:
postgresql: "9.4"

View file

@ -62,7 +62,7 @@ abstract class _Car extends Model {
abstract class _NoMigrations extends Model {} abstract class _NoMigrations extends Model {}
``` ```
Models can use the `@Alias()` annotation; `package:angel_orm` obeys it. Models can use the `@SerializableField()` annotation; `package:angel_orm` obeys it.
After building, you'll have access to a `Query` class with strongly-typed methods that After building, you'll have access to a `Query` class with strongly-typed methods that
allow to run asynchronous queries without a headache. allow to run asynchronous queries without a headache.
@ -159,7 +159,7 @@ abstract class _Author extends Model {
@HasMany(localKey: 'id', foreignKey: 'author_id', cascadeOnDelete: true) @HasMany(localKey: 'id', foreignKey: 'author_id', cascadeOnDelete: true)
List<Book> books; List<Book> books;
@Alias('writing_utensil') @SerializableField(alias: 'writing_utensil')
@hasOne @hasOne
Pen pen; Pen pen;
} }