mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
dialect/sql/schema: optimize code and add website documents (#748)
This commit is contained in:
@@ -986,7 +986,7 @@ func templateMetaTmpl() (*asset, error) {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
var _templateMigrateMigrateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x56\x5d\x6f\x1b\x37\x16\x7d\x9e\xf9\x15\x67\x67\x77\xb3\x52\x20\x73\x1c\x2f\x0a\xb4\x6e\xfc\x90\xda\x4e\x21\xb4\x75\x53\x38\x41\xfa\x18\x6a\x78\x67\x86\x30\x87\x54\x48\x8e\x64\x41\xd0\x7f\x2f\x48\xce\xe8\x23\x4e\x90\x3e\xb4\xa8\x5f\x04\x5f\x5e\x9e\x73\xef\x39\x97\xe4\x6c\xb7\xe5\xf3\xfc\xda\x2c\x37\x56\x36\xad\xc7\xc5\xf9\x8b\xef\xce\x96\x96\x1c\x69\x8f\xd7\xbc\xa2\x85\x31\x0f\x98\xeb\x8a\xe1\x95\x52\x88\x49\x0e\x61\xdd\xae\x48\xb0\xfc\x6d\x2b\x1d\x9c\xe9\x6d\x45\xa8\x8c\x20\x48\x07\x25\x2b\xd2\x8e\x04\x7a\x2d\xc8\xc2\xb7\x84\x57\x4b\x5e\xb5\x84\x0b\x76\x3e\xae\xa2\x36\xbd\x16\xb9\xd4\x71\xfd\xe7\xf9\xf5\xed\xdd\xfd\x2d\x6a\xa9\x08\x43\xcc\x1a\xe3\x21\xa4\xa5\xca\x1b\xbb\x81\xa9\xe1\x8f\xc8\xbc\x25\x62\xf9\xf3\x72\xb7\xcb\xf3\xed\x16\x82\x6a\xa9\x09\x45\x27\x1b\xcb\x3d\x15\x48\xf1\x33\xac\xa5\x6f\x41\x8f\x9e\xb4\xc0\x7f\x50\xbc\xe1\xd5\x03\x6f\xa8\x38\xca\x3c\xdb\xed\xf2\x6c\xbb\x85\xa7\x6e\xa9\xb8\x27\x14\x2d\x71\x41\xb6\x00\x0b\x28\xdb\x2d\xc2\xde\x80\x27\xbb\xa5\xb1\x1e\x93\x3c\x2b\x2a\xa3\x3d\x3d\xfa\x22\xcf\x8a\xba\xf3\x45\x9e\x67\x45\x23\x7d\xdb\x2f\x58\x65\xba\xb2\x1e\x84\x2b\x49\xfb\x52\x48\xae\xa8\x8a\xa9\x5f\x49\x29\xdd\x47\x55\xba\xaa\xa5\x8e\x17\xf9\x34\xcf\x57\xdc\x06\xb2\xb2\xc4\x7b\xe9\xdb\x1f\x95\x59\x70\xf5\x4e\xcb\x8f\x3d\xcd\x6f\xe0\xc8\xbb\xa8\x53\xaf\xe5\x8a\xac\xe3\x0a\x52\x38\x98\xa5\x97\x46\x3b\x78\x13\x17\x53\x97\xd2\x68\x16\x71\xe6\x83\x88\x29\x2b\x98\x45\x9a\x2f\x14\x89\x19\x82\xe1\xfb\x6c\xac\xa5\x52\xe0\x4a\x99\x2a\x28\xc2\xf1\xe2\xe5\xcb\xff\x5f\xc0\x72\xdd\x50\x04\xaa\x4d\x32\x36\x52\xd6\x20\x5e\xb5\x01\x41\xfa\x0d\x26\x3e\x20\x4e\x13\xe1\x9d\xf1\x04\xdf\x72\x7f\xc2\x5b\x71\xad\x8d\xc7\x82\xc0\x97\x4b\x25\x49\xc0\x68\xc4\x6d\x2e\x25\x73\x65\x89\x8b\x0d\xe8\x51\x3a\xcf\xf2\xec\x33\xfd\x5f\x21\x29\xc5\x9e\xae\xed\x25\xbb\xb1\x66\x79\x6d\x54\xdf\xe9\x83\x5c\xc2\x9a\x25\xaa\x14\x1c\xca\xf9\x2b\xb4\x8a\xb0\x46\x89\x01\xda\x45\x88\xd8\xcb\x9a\x2c\xa1\x0f\xe7\x21\x88\xb6\x30\xbe\x45\x2d\x49\x09\x07\xae\x05\x48\x34\xe4\x18\xe2\x39\x12\x54\xf3\x5e\xf9\x68\x5e\xcd\x95\xa3\xa1\xf3\xa3\x36\x4e\xba\x3e\xc4\x4f\x3a\x9e\x6b\x41\x8f\x9f\x34\x2c\x63\xec\xef\xe8\x37\x22\xd3\xa7\xfd\xa6\xf3\x28\xc6\xb3\x3c\x14\xfd\xe5\x36\x4f\x46\xa5\x8f\x3e\xa2\x32\xda\x79\xcb\xa5\xf6\x0e\xfc\x08\xb3\x77\x52\x37\xf8\xf0\xee\x6e\xfe\xdb\xbb\x5b\xcc\xef\x6e\x6e\x7f\xff\x30\x8b\x10\x41\x50\xdf\x92\xa5\xda\x58\x9a\x41\xfa\xff\x85\xbb\xaa\x32\x5d\x47\x5a\x90\x08\x84\xa9\xa7\x93\x4e\xbd\x41\x43\x1e\x9d\xb1\xc3\x6c\x2b\x7a\x94\x0b\xa9\xc2\x30\x9f\xd4\x8f\xaa\x0d\x07\xc0\x1d\xd9\x92\xb4\x7e\xe2\x4a\x0c\xef\x4d\x79\x2d\x1f\x7d\x6f\xe9\x60\x49\x28\x4f\x36\xfa\xec\x81\x36\xb0\xa4\x79\x17\x1a\xfa\x82\x39\x58\xb7\xa4\xd1\x2f\x1b\xcb\x85\xd4\x4d\x04\x0d\x7e\xd4\xd6\x74\x58\x9d\xb3\x17\xec\x1c\x13\xe9\x5c\x4f\x67\xff\xbe\xf8\xf6\x9b\x29\xc3\xcd\x91\xbe\xde\xf6\xe3\x14\x8d\x55\x9c\x14\x3b\x04\x73\x00\x18\xab\x8d\xc5\xb5\x3f\xd1\x66\x9c\x00\x87\xca\x12\xf7\xa1\xc8\x54\x79\x1b\x2b\x97\x1a\x42\x28\x86\xb9\x86\x33\x1d\xa1\xe2\x8e\xb0\xa6\xe0\xd5\x88\x17\x4e\x79\xb8\x45\xd6\x49\xfc\xde\xd1\x31\xc2\xd3\x52\x87\x4a\x8f\x2a\x38\xad\xf6\xb0\x10\xee\xc7\xb2\xc4\x7d\x32\x46\x26\x5d\x5f\xbd\x99\xc7\x43\x36\x96\x3b\x1b\x65\xd4\x4d\x9c\x8d\x30\xb4\xcb\xf8\xcf\x88\x9a\xfb\xcd\x92\x46\x14\xe7\x6d\x5f\x79\x6c\xf3\x4c\xd8\x15\xc6\xbf\xe1\x72\x66\x37\x36\xdc\xb3\x79\xb6\xbf\x6f\xe7\x37\x58\x18\xa3\xf2\x5d\xac\xe4\x8e\xd6\x03\x4c\x64\x27\x07\x0e\x4d\xeb\xfd\xe8\x28\x49\xda\xb3\xbc\xee\x75\x75\xc8\x9d\x04\xa2\x53\x82\x29\x9e\x0f\x38\x5b\x58\xf2\xbd\xd5\x78\x96\x02\x5b\x61\x57\x97\x10\x76\xb5\x43\xa2\xbc\x8e\x44\x07\x3e\xa5\x46\x36\x4b\xe9\x99\x74\x03\xe1\xc4\x8d\xa8\xd3\x61\xd7\xa4\xf2\x8f\x18\x5e\x31\x76\x9d\x7e\x67\x61\x06\x1d\x18\x63\x83\x3a\xbf\xa4\x37\xf2\xd7\x38\x99\x53\x90\xb5\xc6\x06\x79\x86\xb7\x73\x16\x22\xb8\xdc\x5b\x74\x47\xeb\x61\xc7\xc4\x31\x61\x57\x09\x8f\x31\x36\xcd\x33\x59\xc7\xe4\x7f\x5d\x41\x4b\x15\x30\xb2\xa1\xb9\xba\xf3\xec\x36\x00\xd7\x93\x22\xbc\x85\x03\xf6\x25\xfe\xbb\x2a\x22\xc1\x34\xcf\x76\xf9\x98\x3d\xac\xb2\x43\x13\x33\xbc\x8d\x33\x1a\x69\x92\x2e\xef\xad\xf4\xf4\xd6\x60\x1d\x7e\xdd\x67\x0e\x70\x18\xb7\x35\xa4\x76\x9e\xb8\x08\xef\x97\xed\xb5\x0e\x73\xe1\x5b\xea\xc0\x1b\x1e\x96\xd2\xe5\xc9\x3d\x5f\xf0\x70\x45\x95\x65\x80\x1e\xfb\xb8\xbc\x1a\x1d\xbd\x1f\xc6\x33\x71\x4e\x46\x49\x7f\xe0\xd5\x43\x63\xc3\x37\xce\x64\x3a\x83\x71\xec\xde\x0b\xd3\xfb\xe9\xf7\xa7\x32\x94\x65\x96\x29\xd3\xb0\xd7\xdc\x73\x35\x89\xdd\x06\x96\x5d\xa0\x7b\xe2\xdc\x9e\xe3\x73\xd6\xad\x21\x4d\xaa\xc2\xfe\x69\x1f\xc3\xf4\x5d\x5e\xe1\x99\x3b\xea\x21\x4d\x61\x30\x28\x81\x5d\x62\x3d\xcb\xb3\x2c\x85\x2f\x91\x8c\x8d\x96\x7c\x7d\x0a\xfe\xa1\x19\x38\x7c\xb2\xfd\x11\x00\x00\xff\xff\xdf\x68\xca\x7a\xde\x0a\x00\x00")
|
||||
var _templateMigrateMigrateTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x56\xdf\x6f\xdb\xb6\x1a\x7d\x96\xfe\x8a\x73\x75\xef\xed\xb5\x0b\x87\x4a\x73\x31\x60\xcb\x9a\x87\x2e\x49\x07\x63\x5b\xd6\x21\x2d\xba\xc7\xd2\xe2\x27\x89\x08\x45\xba\x24\x65\xc7\x30\xfc\xbf\x0f\x24\x25\xff\x68\x5a\x74\x0f\x1b\xd6\x97\xa0\xe4\xa7\x73\xbe\x73\xce\x47\xd2\xdb\x6d\xf9\x3c\xbf\x36\xcb\x8d\x95\x4d\xeb\x71\x71\xfe\xe2\xbb\xb3\xa5\x25\x47\xda\xe3\x35\xaf\x68\x61\xcc\x03\xe6\xba\x62\x78\xa5\x14\x62\x91\x43\xd8\xb7\x2b\x12\x2c\x7f\xdb\x4a\x07\x67\x7a\x5b\x11\x2a\x23\x08\xd2\x41\xc9\x8a\xb4\x23\x81\x5e\x0b\xb2\xf0\x2d\xe1\xd5\x92\x57\x2d\xe1\x82\x9d\x8f\xbb\xa8\x4d\xaf\x45\x2e\x75\xdc\xff\x79\x7e\x7d\x7b\x77\x7f\x8b\x5a\x2a\xc2\xb0\x66\x8d\xf1\x10\xd2\x52\xe5\x8d\xdd\xc0\xd4\xf0\x47\x64\xde\x12\xb1\xfc\x79\xb9\xdb\xe5\xf9\x76\x0b\x41\xb5\xd4\x84\xa2\x93\x8d\xe5\x9e\x0a\xa4\xf5\x33\xac\xa5\x6f\x41\x8f\x9e\xb4\xc0\x7f\x50\xbc\xe1\xd5\x03\x6f\xa8\x38\xaa\x3c\xdb\xed\xf2\x6c\xbb\x85\xa7\x6e\xa9\xb8\x27\x14\x2d\x71\x41\xb6\x00\x0b\x28\xdb\x2d\xc2\xb7\x01\x4f\x76\x4b\x63\x3d\x26\x79\x56\x54\x46\x7b\x7a\xf4\x45\x9e\x15\x75\xe7\x8b\x3c\xcf\x8a\x46\xfa\xb6\x5f\xb0\xca\x74\x65\x3d\x18\x57\x92\xf6\xa5\x90\x5c\x51\x15\x4b\xbf\x52\x52\xba\x8f\xaa\x74\x55\x4b\x1d\x2f\xf2\x69\x9e\xaf\xb8\x0d\x64\x65\x89\xf7\xd2\xb7\x3f\x2a\xb3\xe0\xea\x9d\x96\x1f\x7b\x9a\xdf\xc0\x91\x77\xd1\xa7\x5e\xcb\x15\x59\xc7\x15\xa4\x70\x30\x4b\x2f\x8d\x76\xf0\x26\x6e\x26\x95\xd2\x68\x16\x71\xe6\x83\x89\xa9\x2a\x84\x45\x9a\x2f\x14\x89\x19\x42\xe0\xfb\x6a\xac\xa5\x52\xe0\x4a\x99\x2a\x38\xc2\xf1\xe2\xe5\xcb\xff\x5f\xc0\x72\xdd\x50\x04\xaa\x4d\x0a\x36\x52\xd6\x20\x5e\xb5\x01\x41\xfa\x0d\x26\x3e\x20\x4e\x13\xe1\x9d\xf1\x04\xdf\x72\x7f\xc2\x5b\x71\xad\x8d\xc7\x82\xc0\x97\x4b\x25\x49\xc0\x68\xc4\xcf\x5c\x2a\xe6\xca\x12\x17\x1b\xd0\xa3\x74\x9e\xe5\xd9\x67\xf4\x5f\x21\x39\xc5\x9e\xee\xed\x2d\xbb\xb1\x66\x79\x6d\x54\xdf\xe9\x83\x5d\xc2\x9a\x25\xaa\xb4\x38\xb4\xf3\x57\x78\x15\x61\x8d\x12\x03\xb4\x8b\x10\x51\xcb\x9a\x2c\xa1\x0f\xe7\x21\x98\xb6\x30\xbe\x45\x2d\x49\x09\x07\xae\x05\x48\x34\xe4\x18\xe2\x39\x12\x54\xf3\x5e\xf9\x18\x5e\xcd\x95\xa3\x41\xf9\x91\x8c\x13\xd5\x87\xf5\x13\xc5\x73\x2d\xe8\xf1\x13\xc1\x32\xae\xfd\x1d\x7a\x23\x32\x7d\xaa\x37\x9d\x47\x31\x9e\xe5\xa1\xe9\x2f\xcb\x3c\x19\x95\x3e\xe6\x88\xca\x68\xe7\x2d\x97\xda\x3b\xf0\x23\xcc\xde\x49\xdd\xe0\xc3\xbb\xbb\xf9\x6f\xef\x6e\x31\xbf\xbb\xb9\xfd\xfd\xc3\x2c\x42\x04\x43\x7d\x4b\x96\x6a\x63\x69\x06\xe9\xff\x17\xee\xaa\xca\x74\x1d\x69\x41\x22\x10\x26\x4d\x27\x4a\xbd\x41\x43\x1e\x9d\xb1\xc3\x6c\x2b\x7a\x94\x0b\xa9\xc2\x30\x9f\xf4\x8f\xaa\x0d\x07\xc0\x1d\xc5\x92\xbc\x7e\x92\x4a\x5c\xde\x87\xf2\x5a\x3e\xfa\xde\xd2\x21\x92\xd0\x9e\x6c\xf4\xd9\x03\x6d\x60\x49\xf3\x2e\x08\xfa\x42\x38\x58\xb7\xa4\xd1\x2f\x1b\xcb\x85\xd4\x4d\x04\x0d\x79\xd4\xd6\x74\x58\x9d\xb3\x17\xec\x1c\x13\xe9\x5c\x4f\x67\xff\xbe\xf8\xf6\x9b\x29\xc3\xcd\x91\xbf\xde\xf6\xe3\x14\x8d\x5d\x9c\x34\x3b\x2c\xe6\x00\x30\x76\x9b\x9a\xfb\x89\x36\xe3\x04\x38\x54\x96\xb8\x0f\x4d\x1e\x77\x2e\x35\x84\x50\x0c\x73\x0d\x67\x3a\x42\xc5\x1d\x61\x4d\x21\xab\x11\x2f\x9c\xf2\x70\x8b\xac\x93\xf9\xbd\x3b\xd1\xfe\xb4\xd5\xa1\xd3\xa3\x0e\x4e\xbb\x3d\x6c\x84\xfb\xb1\x2c\x71\x9f\x82\x91\xc9\xd7\x57\x6f\xe6\xf1\x90\x8d\xed\xce\x46\x1b\x75\x13\x67\x23\x0c\xed\x32\xfe\x67\x44\xcd\xfd\x66\x49\x23\x8a\xf3\xb6\xaf\x3c\xb6\x79\x26\xec\x0a\xe3\xbf\xe1\x72\x66\x37\x36\xdc\xb3\x79\xb6\xbf\x6f\xe7\x37\x58\x18\xa3\xf2\x5d\xec\xe4\x8e\xd6\x03\x4c\x64\x27\x07\x0e\x4d\xeb\xfd\xe8\x28\x49\xda\xb3\xbc\xee\x75\x75\xa8\x9d\x04\xa2\x53\x82\x29\x9e\x0f\x38\x5b\x58\xf2\xbd\xd5\x78\x96\x16\xb6\xc2\xae\x2e\x21\xec\x6a\x87\x44\x79\x1d\x89\x0e\x7c\x4a\x8d\x6c\x96\xd2\x33\xe9\x06\xc2\x89\x1b\x51\xa7\xc3\x57\x93\xca\x3f\x62\x78\xc5\xd8\x75\xfa\x3b\x0b\x33\xe8\xc0\x18\x1b\xdc\xf9\x25\xbd\x91\xbf\xc6\xc9\x9c\x82\xac\x35\x36\xd8\x33\xbc\x9d\xb3\xb0\x82\xcb\x7d\x44\x77\xb4\x1e\xbe\x98\x38\x26\xec\x2a\xe1\x31\xc6\xa6\x79\x26\xeb\x58\xfc\xaf\x2b\x68\xa9\x02\x46\x36\x88\xab\x3b\xcf\x6e\x03\x70\x3d\x29\xc2\x5b\x38\x60\x5f\xe2\xbf\xab\x22\x12\x4c\xf3\x6c\x97\x8f\xd5\xc3\x2e\x3b\x88\x98\xe1\x6d\x9c\xd1\x48\x93\x7c\x79\x6f\xa5\xa7\xb7\x06\xeb\xf0\xd7\x7d\xe6\x00\x87\x71\x5b\x43\x6a\xe7\x89\x8b\xf0\x7e\xd9\x5e\xeb\x30\x17\xbe\xa5\x0e\xbc\xe1\x61\x2b\x5d\x9e\xdc\xf3\x05\x0f\x57\x54\x59\x06\xe8\x51\xc7\xe5\xd5\x98\xe8\xfd\x30\x9e\x89\x73\x32\x5a\xfa\x03\xaf\x1e\x1a\x1b\x7e\xe3\x4c\xa6\x33\x18\xc7\xee\xbd\x30\xbd\x9f\x7e\x7f\x6a\x43\x59\x66\x99\x32\x0d\x7b\xcd\x3d\x57\x93\xa8\x36\xb0\xec\x02\xdd\x93\xe4\xf6\x1c\x9f\x8b\x6e\x0d\x69\x52\x17\xf6\x4f\xe7\x18\xa6\xef\xf2\x0a\xcf\xdc\x91\x86\x34\x85\x21\xa0\x04\x76\x89\xf5\x2c\xcf\xb2\xb4\x7c\x89\x14\x6c\x8c\xe4\xeb\x53\xf0\x0f\xcd\xc0\xe1\x27\xdb\x1f\x01\x00\x00\xff\xff\x5b\x94\x52\xdf\xde\x0a\x00\x00")
|
||||
|
||||
func templateMigrateMigrateTmplBytes() ([]byte, error) {
|
||||
return bindataRead(
|
||||
|
||||
@@ -38,9 +38,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
@@ -35,9 +35,9 @@ var (
|
||||
// WithFixture sets the foreign-key renaming option to the migration when upgrading
|
||||
// ent from v0.1.0 (issue-#285). Defaults to true.
|
||||
WithFixture = schema.WithFixture
|
||||
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
|
||||
// not allowed to use foreigh-key. Defaults to true
|
||||
WithForeighKeys = schema.WithForeighKeys
|
||||
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
|
||||
// not allowed to use foreign-key. Defaults to true
|
||||
WithForeignKeys = schema.WithForeignKeys
|
||||
)
|
||||
|
||||
// Schema is the API for creating, migrating and dropping a schema.
|
||||
|
||||
Reference in New Issue
Block a user