Comments (7)
In migrations in 2018_10_08_002853_add_department_class_teacher_to_users_table.php file instead of this:
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['department']);
});
do this:
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['department_id']);
});
from unifiedtransform.
In case anybody else wants to use fake data for testing, activating all databse seeds won't work at the moment because of either student_id or teacher_id must not be NULL. This is the setup that helped me to get as much data as possible without any errors:
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(SchoolsTableSeeder::class);
$this->call(ClassesTableSeeder::class);
$this->call(SectionsTableSeeder::class);
$this->call(UsersTableSeeder::class);
// $this->call(AttendancesTableSeeder::class);
$this->call(SyllabusesTableSeeder::class);
$this->call(NoticesTableSeeder::class);
$this->call(EventsTableSeeder::class);
$this->call(FeesTableSeeder::class);
// $this->call(HomeworksTableSeeder::class);
$this->call(RoutinesTableSeeder::class);
// $this->call(NotificationsTableSeeder::class);
$this->call(ExamsTableSeeder::class);
$this->call(GradesystemsTableSeeder::class);
// $this->call(CoursesTableSeeder::class);
// $this->call(GradesTableSeeder::class);
// $this->call(FeedbacksTableSeeder::class);
$this->call(FormsTableSeeder::class);
$this->call(BooksTableSeeder::class);
$this->call(MessagesTableSeeder::class);
$this->call(FaqsTableSeeder::class);
$this->call(IssuedbooksTableSeeder::class);
$this->call(AccountsTableSeeder::class);
$this->call(AccountSectorsTableSeeder::class);
// $this->call(StudentinfosTableSeeder::class);
// $this->call(StudentboardexamsTableSeeder::class);
}
}
from unifiedtransform.
@rowild I applied @shone83 's fix using a new pull request
from unifiedtransform.
Applied the fix manually, but when running the migrate:refresh 2x in a row, I get this error:
In Grammar.php line 36:
Array to string conversion
I can't find any Grammar.php file...
from unifiedtransform.
This fix does not work. Please test with all seeds and run migrate:refresh at least twice and you'll see that there are still troubles.
from unifiedtransform.
@rowild I forgot to uncomment a factory line from user seeder class after a certain test case. Now all my Seedings are working. Please take a look. Now I've updated the it via pull request.
from unifiedtransform.
This issue is solved, so I close it. Thank you, @changeweg.
from unifiedtransform.
Related Issues (20)
- payment menu HOT 1
- mysql: [Warning] World-writable config file '/etc/mysql/my.cnf' is ignored. HOT 1
- I can't delete any information HOT 4
- Error - ROUTINE HOT 2
- Documents HOT 2
- Hosting on 00web HOT 1
- Does UT only work with docker? Where is the tutorial without docker? HOT 17
- Add Teacher & Add Student Feature Not Showing HOT 1
- Help needed for V1. HOT 17
- How to translate Brazilian Portuguese HOT 4
- reset password not working
- How to login as a teacher and student?
- Issue with purify folder.
- You bish
- Meeting Request HOT 1
- Polite Inquiry
- Missing directory vendor
- Base table or view not found: 1146 Table 'unified.role_has_permissions' doesn't exist
- 🚨Potential Stored Cross-Site Scripting HOT 2
- suggestions
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 unifiedtransform.