How to truncate restart Identity and cascade in pydal

140 Views Asked by At

What am I doing wrong? I am sure its just a simpile sytanx error.

Help is appreciated

db.venues.truncate("RESTARTIDENTITYCASCADE")
1

There are 1 best solutions below

0
On

It looks like your command is all globed together without spaces. This link shows the command as:

db.venues.truncate('RESTART IDENTITY CASCADE')