Created a bash script for mix commands generating database schemas and migrating
This commit is contained in:
		
							
								
								
									
										11
									
								
								mixology.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								mixology.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
#! /bin/bash
 | 
			
		||||
set -euo pipefail
 | 
			
		||||
 | 
			
		||||
mix phx.gen.schema User users name:string username:string password:string email:string dob:date gender_type:enum:trans:cis:nb gender_id:enum:fem:masc:combined:fluid:none bio:text affil:array:map perms:array:integer user_token:string pub_keys:map
 | 
			
		||||
mix ecto.migrate
 | 
			
		||||
mix phx.gen.schema Post posts title:string:unique abst:text auth_id:references:users rev_id:references:users slug:string content:text tags:array:string cat:string ledit:utc_datetime
 | 
			
		||||
mix ecto.migrate
 | 
			
		||||
mix phx.gen.schema Folio folios user_id:references:users resume:map showcase:map theme_uri:string
 | 
			
		||||
mix ecto.migrate
 | 
			
		||||
mix phx.gen.schema Comment comments post_id:references:posts reply_to:references:comments slug:string tripcode:string:unique content:text ledit:utc_datetime
 | 
			
		||||
mix ecto.migrate
 | 
			
		||||
		Reference in New Issue
	
	Block a user