chore(schema): Change token length + index
This commit is contained in:
		
							parent
							
								
									225c4dcd58
								
							
						
					
					
						commit
						43198c1814
					
				| 
						 | 
					@ -7,7 +7,7 @@ class TokensSchema extends Schema {
 | 
				
			||||||
    this.create('tokens', table => {
 | 
					    this.create('tokens', table => {
 | 
				
			||||||
      table.increments()
 | 
					      table.increments()
 | 
				
			||||||
      table.integer('user_id').unsigned().references('id').inTable('users')
 | 
					      table.integer('user_id').unsigned().references('id').inTable('users')
 | 
				
			||||||
      table.string('token', 40).notNullable().unique()
 | 
					      table.string('token', 255).notNullable().unique().index()
 | 
				
			||||||
      table.string('type', 80).notNullable()
 | 
					      table.string('type', 80).notNullable()
 | 
				
			||||||
      table.boolean('is_revoked').defaultTo(false)
 | 
					      table.boolean('is_revoked').defaultTo(false)
 | 
				
			||||||
      table.timestamps()
 | 
					      table.timestamps()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user