Skip to content

Will generate SQL files using these steps for multitenant cloud model

Notifications You must be signed in to change notification settings

faveosuite/Cloud-update-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloud Updater

Generate migration tables in form of SQL queries

php artisan migrate --pretend

once that is generated move the SQL queries to a sql file by adding semicolon at the end of each migrate query.

Generate Seeder in the form of SQl

There is a script file placed in this repo use that code and place the eloquent seeder in between where a comment has been mentioned and run the seeder, This doesn't need to be run for plugins or modules since they already run on boot. After you run the seeder an SQL file will be created in storage/logs.

Hand that over to server team and each tenant will be updated by first running the migration sql file and then followed by Seeder sql

After that kubernetes cluster should roll out the updates for the file system, by following this cloud will receive an update with zero downtime

About

Will generate SQL files using these steps for multitenant cloud model

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages