Simple question: inserting data right after table creation (on migration?)
Simple question: inserting data right after table creation (on migration?)
- Subject: Simple question: inserting data right after table creation (on migration?)
- From: Flavio Donadio <email@hidden>
- Date: Sun, 16 Dec 2012 12:23:59 -0200
Hello, people!
I think I already know the answer, but I need to check first...
I want to create a default user on my WO App when the app is first run. So, I need to create a User entity and insert it right after my tables are created, which is automatically done through a migration.
Is it safe to insert my code right after this?
userTable.create();
userTable.setPrimaryKey("id");
Or would I need something else? Is this right, optimal and/or safe?
Regards,
Flavio
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden