Comments (9)
Is that why I get PostgreSQLSeverity.fatal 28000: role "dart" does not exist Detail: null Hint: null Table: null Column: null Constraint: null
when I do aqueduct db upgrade
?
That's when I'm using OSX 10.11.6 and the Postgres.app.
The 00000001_Initial.migration.dart generated by aqueduct db generate
is identical to the one generated on another Mac with macOS 10.12.1 where the aqueduct db upgrade
works fine.
from aqueduct.
I don't believe so, it sounds like the dart
user hasn't been created in your local database on the other machine. Have you run aqueduct setup
on both machines?
from aqueduct.
Thanks, anachlas. The solution was to take the postgres server down, then do aqueduct setup -c
and aqueduct db upgrade
.
from aqueduct.
Yes. I reproduced this too.
I created a project with CLI
and aqueduct db generate was ok for the first time
and then i added some field and generate it again
and all i get is...
class Migration2 extends Migration {
Future upgrade() async {
}
Future downgrade() async {
}
Future seed() async {
}
}
from aqueduct.
This is next on the list. All of the stuff to do it is there, just need to sew it all togethers and write the tests. Estimating it to be about two weeks from now. In the meantime, you can manually write the code in upgrade:
Future upgrade() async {
database.addColumn("table", new SchemaColumn("fieldName", ManagedPropertyType.String));
}
See the API ref for SchemaBuilder, which is the type of database
- a property all Migration
s have.
Make sure to run aqueduct db validate
. This ensures that all of the migration files will create the schema described by your ManagedObjects; it'll spit out every difference that it finds.
from aqueduct.
Still waiting for awesome migration feature.
from aqueduct.
You can get early access to this feature by installing the CLI from the open branch. The branch has a few more tests that need to be written, so it may have errors, but it'd be good to get your feedback regardless.
On your local machine, clone this repository and switch the jc/migrate
branch:
git clone https://github.com/stablekernel/aqueduct.git
cd aqueduct
git checkout jc/migrate
Then, while still inside this directory, activate this local copy in pub
:
pub global activate -spath .
From there, you should be able to run aqueduct db generate
in your project directory.
from aqueduct.
Work is completed in #234. Waiting for 2.0.3 release.
from aqueduct.
Completed in 2.0.3.
from aqueduct.
Related Issues (20)
- How to use ORM without http server HOT 1
- starting from existing db HOT 2
- Getting Socket exception after restarting the aqueduct app HOT 4
- Problems with aqueduct commands after flutter upgrade HOT 12
- How to install aqueduct on macOS? HOT 4
- How to I change aqueduct serve default port? HOT 5
- How can I create a push notification with aqueduct? HOT 2
- Unable to create project. HOT 1
- aqueduct db upgrade gives range error : Invalid value: Not in inclusive range 0..1114111: -1 HOT 2
- I think aqueduct need provide object transfer method like the AutoMapper
- [Feature request !!] any plans to return html templates instead of json ? HOT 1
- Dart 2.12 and new features HOT 1
- Use multiple query condition after join
- Dependency issues, new versions of googleapis are no longer compatible
- null-safety error on commands HOT 3
- Feature-Request: Replace mirrors with reflectable
- Here's how to fix your Heroku app (SSL) HOT 2
- Annotation @ManagedTableAttributes: Is not working. HOT 1
- Is this project no longer maintained
- Do you consider adding such a plug-in, please see the link below!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aqueduct.