Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
newid is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Jun 15, 2017
1 parent bfe87bc commit 258032b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
pass
from pprint import pprint # NOQA
from coaster.sqlalchemy import BaseMixin
from coaster import newid
from coaster.utils import buid

from flask import Flask
from nodular import * # NOQA


class User(BaseMixin, db.Model):
__tablename__ = 'user'
userid = db.Column(db.Unicode(22), nullable=False, default=newid, unique=True)
userid = db.Column(db.Unicode(22), nullable=False, default=buid, unique=True)
username = db.Column(db.Unicode(250), nullable=True)


Expand Down

0 comments on commit 258032b

Please sign in to comment.